I want to merge my custom:modul iwth the account_accountant modul for customer invoices. I want to have some functions of my custom_modul in the form view page for customer invoices.
from odoo import fields, models, api
class Acc_Xinv(models.Model):
_name = 'acc.xinv'
_inherit = ['x.invoice', 'account.move']
transaction_ids = fields.Many2many('account.move.transaction', 'transaction_channel_profile', '?', '?')
class XInvoice(models.Model):
_name = 'x.invoice'
_inherit = ['mail.thread', 'mail.activity.mixin']
_description = "X-Invoice"
_recname = 'name'
_order = 'create_date desc'
a lot of custom fields and custom functions:
######
I know I have to create a new many2many field to merge my two models, but in account.move here there is no transaction_ids.
My questions : What id should I put in many2many field? What does the error means, if there is no such many2many field?