Hey i am upgrading a module from v12 to 13 and it get installed but a function in it now not working and it is as following
@api.model
def run(self, product_id, product_qty, product_uom, location_id, name,
origin, values):
if 'stock_request_id' in values and values.get('stock_request_id'):
req = self.env['stock.request'].browse(
values.get('stock_request_id'))
if req.order_id:
origin = req.order_id.name
return super().run(product_id, product_qty, product_uom, location_id,
name, origin, values)
error msg is
TypeError: run() takes 2 positional arguments but 8 were given
But its working in odoo12. Kindly help