Fix migration for discount in invoice
bzr revid: ced-7cd141424ec232e01a7038b53ccf4e69a38938e8
This commit is contained in:
parent
27dd75b176
commit
cbb5303038
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue