I wish to link(relate) two many2one lists, for example my custom module ng.machine
and account.invoice
the account one:
'machine_ids' : fields.one2many('ng.machine', 'invoice_ids', 'Gépek'),
the machine one:
'invoice_ids' : fields.one2many('account.invoice', 'machine_ids', 'Számlák'),
but this gives me an error.If i change the fields to many2one then until i try to save everything works. when i try to save gives me this error:
ProgrammingError: can't adapt type 'dict'
How can i make it so that the 2 one2many list can relate to each other? bassickly on the machine's page see all the invoice that it is mentioned, and on the invoice see all the machines it mentions.