From cbb5303038c5e758b38bdb18965980a604d6e395 Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 17 Jan 2007 07:14:15 +0000 Subject: [PATCH] Fix migration for discount in invoice bzr revid: ced-7cd141424ec232e01a7038b53ccf4e69a38938e8 --- doc/migrate/3.4.0-4.0.0/post.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/migrate/3.4.0-4.0.0/post.py b/doc/migrate/3.4.0-4.0.0/post.py index ba1c9028f91..f62bd97e98a 100644 --- a/doc/migrate/3.4.0-4.0.0/post.py +++ b/doc/migrate/3.4.0-4.0.0/post.py @@ -86,5 +86,12 @@ cr.commit() cr.execute("delete from ir_ui_menu where (id not in (select parent_id from ir_ui_menu where parent_id is not null)) and (id not in (select res_id from ir_values where model='ir.ui.menu'))") cr.commit() +# ----------------------------------------- # +# add default value for discount in invoice # +# ----------------------------------------- # + +cr.execute("update account_invoice_line set discount=0.0 where discount is null;") +cr.commit() + cr.close()