Hello. I have a method that works properly only if called from a button. But when its triggered by onchange it doesnt work properly
I think the problem is when i use onchange self looks like this: product.product(<odoo.models.NewId object at 0x7fa8abb809d0>,)
And when I call my methdo with button click self looks like this: product.product(1,)
I tried to do: origin = self._origin but did not work