Hii,
I have a custom field added in the header of the account.invoice. I have added the same custom filed to account.invoice.line.
When I create an Invoice directly or from PO I assign a value to this field.
How to pass custom field value to from invoice header to all lines?
I have done it overriding write() and onchage() methods but no luck on create() method.
How to pass it by overriding create() method.
I am doing it the following way but not working...
@api.model def create(self, values):
result = super(FFTAccountInvoice, self).create(values)
values.update({'invoice_line_ids': [(0, 0, {'shipment_id': result['shipment_id'].id})]})
return result