Hello,
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?
@api.onchange('date_order')
def change_currency_rate(self):
for line in self.order_line:
line.product_id_change()
product_id_change() takes at least 6 arguments (6 given)
?!?!?!! Odooooo whyyyyyyy