I want to migrate product_id_change method of sale order line which is in version 7 to version 8 with new api.
Generally I seen we can't convert those onchange method in new api whose base method are written in old api, it will create issue while we calling base method with super.
I am getting error while doing this, error says you have passed 15 parameters to the method while 19 required.
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 ):
This is the declaration of method with old api. I want to keep this code completely in new api with super method calling.
Is there any hope to achieve this ?
Any help will be appreciated.
You can Migrate to version 8 this way