Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I try to extend the method product_id_change from the model account.invoice.line :
_inherit = 'account.invoice.line'
def product_id_change(self, product, uom_id, qty=0, name='', type_x='out_invoice',
partner_id=False, fposition_id=False, price_unit=False, currency_id=False,
res = super(account_invoice_line, self).product_id_change(self,product, uom_id, qty, name, type_x, partner_id, fposition_id, price_unit, currency_id, company_id)
But i'have this error when i call product_id_change with super : TypeError: product_id_change() takes at most 11 arguments (12 given) .
Have you an idea ?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/26/15, 7:07 AM|
|Seen: 833 times|
|Last updated: 4/2/15, 8:27 PM|