I have a M2O relation to account.move on a custom model:
invoice_id = fields.Many2one('account.move', string="Related invoices", ondelete='cascade', store=True)
and a O2M relation from account.move to my custom model:
rel_invoices = fields.One2many('inv.relations', 'id', string='Related Invoices', store=True)
But when I try to add related invoices, they are not saved.
How can I fix this?
Thank you