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'm trying to call a product_id_change method becouse i'd like to change the currency in every sale order line by changing date_order. By using below code i'm getting an error : product_id_change() takes at least 6 arguments (5 given). Which arguments should i use?
for line in self.order_line:
I know that i have to this but i don't know which of these arguments i have to pass. This is def i want to call:
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False, context=None):
I'm using models.Model in version 8
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: 6/24/16, 3:59 AM|
|Seen: 610 times|
|Last updated: 6/24/16, 7:12 AM|