[FIX] account.invoice.line: move context to last position in onchange methods
authorRaphael Collet <rco@openerp.com>
Tue, 9 Sep 2014 09:42:50 +0000 (11:42 +0200)
committerRaphael Collet <rco@openerp.com>
Tue, 9 Sep 2014 09:50:10 +0000 (11:50 +0200)
commitecd8b5222bacbde1cc7ea231f93547a85053aa3e
tree418d60155047b0e81dd3f04ae572e306774a24c4
parent5388eee32170ca003310e0f9f0c93d8a81bb233d
[FIX] account.invoice.line: move context to last position in onchange methods

The methods product_id_change() and uos_id_change() have been converted to the
new api, and now use the decorator @multi.  When invoked with the old api, by
convention the methods will take the last argument as the context.  But this
will not work properly for those methods, as the context is passed in another
position.  In order to avoid an argument swap in the api wrapper, we moved the
context to its expected position.

Fixes #1943
addons/account/account_invoice.py
addons/account/account_invoice_view.xml
addons/account_analytic_default/account_analytic_default.py
addons/account_analytic_plans/account_analytic_plans.py
addons/account_anglo_saxon/invoice.py