Roberto, the problem with your proposed change is that if you use 'l10n_it_partially_deductible_vat' with standard addons, the call to super(account_tax, self).compute_all(cr, uid, taxes, price_unit, quantity, address_id, product, partner, force_excluded, context) will raise the same exception we are having here, because standard compute_all http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/view/7274/account/account.py#L2072 does not accept context argument.
This https://code.launchpad.net/~therp-nl/therp-backports/addons-6.1_lp1107889_supplier_invoice_rounding/+merge/145490 is the MP that added context to compute_all arguments. I'm going to ask there. -- You received this bug notification because you are a member of OpenERP Italia core devs, which is subscribed to OpenERP Italia. https://bugs.launchpad.net/bugs/1249237 Title: Context error in module l10n_it_partially_deductible_vat on ocb6.1 Status in OpenERP Italia: New Bug description: Revision addons ocb: revision 6812 of branch http://bazaar.launchpad.net/~ocb/ocb-addons/6.1 Revision addons openerp italia 240 branch lp:openobject-italia/6.1 The error in Compute Tax and Totals of an Invoice Error compute_all() got an unexpected keyword argument 'context' How to reproduce the error: - Create a new db without demo data and with the italian language - Install module l10n_it_partially_deductible_vat - At the and of the process chose Italy Chart Of Accounts from the menu - Save the default configuration and exit - Create a supplier with address and default account configuration - Create a stockable product with account configuration: Iva al 22% (credito) e Iva al 22% (debito) - Create a Supplier Invoice with the supplier and product created - Select Compute Taxes and Totals Solution in account.py di l10n_it_partially_deductible_vat substitue rows 77-78 with: def compute_all(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None, force_excluded=False, context=None): res = super(account_tax, self).compute_all(cr, uid, taxes, price_unit, quantity, address_id, product, partner, force_excluded, context) To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-italia/+bug/1249237/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openobject-italia-core-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~openobject-italia-core-devs More help : https://help.launchpad.net/ListHelp

