I'm facing an issue with extending the res.partner model in Odoo. I want to create a custom field named in res.partner model as bank_tag and the custom field doesn't appear. Larger module neutrovis_localisation has two sub-module which is neutrovis_ar_ap and neutrovis_invoice_note as its sub-module. Sub-module neutrovis_ar_ap works finely.
Sub-module (neutrovis_invoice_note) of a larger module (neutrovis_localisation):
- neutrovis_localisation/__init__.py:
from . import neutrovis_ar_ap #neglect, another sub-directory under neutrovis_localisation
from . import neutrovis_invoice_note - neutrovis_localisation/__manifest__.py:
{
'name': "Neutrovis Localisation",
'author': "Neutrovis",
'website': "https://www.neutrovis.asia",
'category': 'Localization',
'version': '1.0',
'depends': ['base', 'neutrovis_contact','account'],
'data': [
'neutrovis_ar_ap/security/accounting_access_rights.xml', #neglect, another sub-directory under neutrovis_localisation
],
'installable': True } - neutrovis_invoice_note/models/__init__.py:
from . import account - neutrovis_invoice_note/models/account.py:
from odoo import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
bank_tagging = fields.Char(string="Bank Tagging")
I've checked the module dependencies and initialization order, and there doesn't seem to be any conflicts with other modules or data files. I've also tried uninstalling and reinstalling the neutrovis_localisation module, but the issue persists.
Does anyone have any ideas on what could be causing this issue and how to resolve it?
Thank you in advance for your help.