Invoice totals not updated when a line is moved (store={...} bug?)
Bug #600547 reported by
Numérigraphe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 | |||
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Medium
|
Unassigned |
Bug Description
In 5.0.10, if you record an invoice with a line, and then you move the line to another invoice (with XML-RPC or custom object code), then the amounts of the invoices are not updated.
Lionel
Related branches
lp:~openerp-commiter/openobject-addons/trunk-dev-addons3-mtr1
- OpenERP R&D Team: Pending requested
-
Diff: 667 lines (+70/-70)41 files modifiedaccount_voucher/account_voucher.py (+1/-1)
account_voucher/i18n/account_voucher.pot (+1/-1)
account_voucher/i18n/ar.po (+1/-1)
account_voucher/i18n/bg.po (+1/-1)
account_voucher/i18n/bs.po (+1/-1)
account_voucher/i18n/ca.po (+3/-3)
account_voucher/i18n/cs.po (+1/-1)
account_voucher/i18n/de.po (+2/-2)
account_voucher/i18n/el.po (+3/-3)
account_voucher/i18n/es.po (+4/-4)
account_voucher/i18n/es_AR.po (+1/-1)
account_voucher/i18n/es_EC.po (+4/-4)
account_voucher/i18n/et.po (+1/-1)
account_voucher/i18n/fr.po (+2/-2)
account_voucher/i18n/hi.po (+1/-1)
account_voucher/i18n/hr.po (+1/-1)
account_voucher/i18n/hu.po (+2/-2)
account_voucher/i18n/id.po (+1/-1)
account_voucher/i18n/it.po (+3/-3)
account_voucher/i18n/ko.po (+1/-1)
account_voucher/i18n/lt.po (+3/-3)
account_voucher/i18n/mn.po (+1/-1)
account_voucher/i18n/nl.po (+1/-1)
account_voucher/i18n/nl_BE.po (+1/-1)
account_voucher/i18n/oc.po (+1/-1)
account_voucher/i18n/pl.po (+2/-2)
account_voucher/i18n/pt.po (+3/-3)
account_voucher/i18n/pt_BR.po (+2/-2)
account_voucher/i18n/ro.po (+3/-3)
account_voucher/i18n/ru.po (+1/-1)
account_voucher/i18n/sl.po (+1/-1)
account_voucher/i18n/sq.po (+1/-1)
account_voucher/i18n/sr.po (+2/-2)
account_voucher/i18n/sr@latin.po (+2/-2)
account_voucher/i18n/sv.po (+1/-1)
account_voucher/i18n/tlh.po (+1/-1)
account_voucher/i18n/tr.po (+3/-3)
account_voucher/i18n/uk.po (+1/-1)
account_voucher/i18n/vi.po (+1/-1)
account_voucher/i18n/zh_CN.po (+3/-3)
account_voucher/i18n/zh_TW.po (+1/-1)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
status: | New → Confirmed |
Changed in openobject-server: | |
importance: | Undecided → Medium |
Changed in openobject-server: | |
status: | Confirmed → Invalid |
assignee: | OpenERP's Framework R&D (openerp-dev-framework) → nobody |
To post a comment you must log in.
It's weird, cause the 'total' field of the invoices is 'watching' for changes on the invoice lines. The recomputation of the amount_ total field should be triggered if the lines of the invoice (the "invoice_line" field) change:
--- one2many( 'account. invoice. line', 'invoice_id', 'Invoice Lines', readonly=True, states= {'draft' :[('readonly' ,False) ]}), function( _amount_ all, method=True, digits=(16, int(config[ 'price_ accuracy' ])), string='Total',
'account. invoice' : (lambda self, cr, uid, ids, c={}: ids, ['invoice_line'], 20),
multi= 'all'),
...
'invoice_line': fields.
...
'amount_ total': fields.
store={
...
},
...
---
Maybe the problem here is that the change in the many2one (invoice_id on the lines) is not triggering the 'store' triggers on the one2many side (invoice_line in the invoice) as we would expect.