openobject-italia-core-devs team mailing list archive
-
openobject-italia-core-devs team
-
Mailing list archive
-
Message #01758
[Bug 1249237] Re: Context error in module l10n_it_partially_deductible_vat on ocb6.1
Ciao Roberto,
can you attach the traceback of the error too?
Thanks!
--
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
References