I created a Many2many field from my custom module and I wanted this field to display from another model but the fields inside from the other models is not the same values with my custom module. Images are here: https://jpst.it/2oHf2
custom.py
class CustomInherit(models.Model):
_inherit = "custom"
po_references = fields.Many2many("sale.order", "pdc_acc_payment_rel", "pdc_id", "pay_id", string="SI Number(s)")
account_payment.py
class account_payment(models.Model):
_inherit = "account.payment"
si_numbers = fields.Many2many("custom", "pdc_acc_payment_rel", "pay_id", "pdc_id", string="SI Number(s)")