Fix migration for discount in invoice

bzr revid: ced-7cd141424ec232e01a7038b53ccf4e69a38938e8
This commit is contained in:
ced 2007-01-17 07:14:15 +00:00
parent 27dd75b176
commit cbb5303038
1 changed files with 7 additions and 0 deletions

View File

@ -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()