Hello,
Any ideas on how to copy a purchase order line ?
I'm trying firstly to create an object vals and using create method but always got following errors like :
[object with reference: Purchase Order - purchase.order]
I tried :
self.copy(default={'product_id': self.product_id})
but no effect too.
What I'm trying to do is when I pass a value in the colum free unit of a purchase order line, this line should duplicate and takes custom values that I set programmatically.
I use an onchange method on free_unit for this.