Siirry sisältöön
Odoo Menu
  • Kirjaudu sisään
  • Kokeile ilmaiseksi
  • Sovellukset
    Talous
    • Kirjanpito
    • Laskutus
    • Kulut
    • Datataulukot (BI)
    • Asiakirjat
    • Allekirjoita
    Myynti
    • CRM
    • Myynti
    • Kassajärjestelmä myymälään
    • Kassajärjestelmä ravintolaan
    • Tilaukset
    • Vuokraus
    Verkkosivut
    • Verkkosivun Rakennustyökalu
    • Verkkokauppa
    • Blogi
    • Foorumi
    • Livechat
    • Verkko-oppiminen
    Toimitusketju
    • Varastointi
    • Tuotanto
    • Tuotteen elinkaaren hallinta (PLM)
    • Ostot
    • Huolto
    • Laatu
    Henkilöstöhallinto
    • Työntekijät
    • Rekrytointi
    • Vapaat
    • Arvioinnit
    • Suositukset
    • Kuljetuskalusto
    Markkinointi
    • Somemarkkinointi
    • Sähköpostimarkkinointi
    • Tekstiviestimarkkinointi
    • Tapahtumat
    • Markkinoinnin automaatio
    • Kyselyt
    Palvelut
    • Projekti
    • Työaikakirjaukset
    • Kenttähuolto
    • Asiakaspalvelu
    • Suunnittelu
    • Ajanvaraukset
    Tuottavuus
    • Viestintä
    • Hyväksynnät
    • IoT
    • IP-puhe
    • Tietokirjasto
    • WhatsApp
    Kolmannen osapuolen sovellukset Odoo-Studio Odoo-Pilvialusta
  • Toimialat
    Vähittäiskauppa
    • Kirjakauppa
    • Vaatekauppa
    • Huonekaluliike
    • Ruokakauppa
    • Laitteistokauppa
    • Lelukauppa
    Ruoka & Majoitus
    • Baari ja Pubi
    • Ravintola
    • Pikaruoka
    • Majatalo
    • Juomien jakelija
    • Hotelli
    Kiinteistöt
    • Kiinteistönvälitystoimisto
    • Arkkitehtitoimisto
    • Rakentaminen
    • Kiinteistönhallinta
    • Puutarhanhoito
    • Kiinteistön omistajien yhdistys
    Konsultointi
    • Tilitoimisto
    • Odoo-kumppani
    • Markkinointitoimisto
    • Lakitoimisto
    • Osaajahankinta
    • Tilintarkastus & sertifiointi
    Tuotanto
    • Tekstiili
    • Metalli
    • Huonekalut
    • Ruoka
    • Panimo
    • Yrityslahjat
    Terveys & Liikunta
    • Urheiluseura
    • Silmälasiliike
    • Kuntokeskus
    • Hyvinvointialan ammattilaiset
    • Apteekki
    • Kampaamo
    Kaupat
    • Yleismies
    • IT-laitteisto & Tuki
    • Aurinkoenergiajärjestelmät
    • Suutari
    • Siivoustarvikkeet
    • LVI-palvelut
    Muut
    • Voittoa tavoittelematon järjestö
    • Ympäristötoimisto
    • Mainostaulujen vuokraus  
    • Valokuvaus
    • Leasing-pyörät
    • Ohjelmistojen jälleenmyyjä
    Selaa kaikkia toimialoja
  • Yhteisö
    Opi
    • Tutoriaalit
    • Dokumentaatio
    • Todistukset
    • Koulutus
    • Blogi
    • Podcast
    Kannusta kouluttautumaan
    • Koulutusohjelmat
    • Scale Up! Liiketoimintapeli
    • Vieraile Odoolla
    Hanki ohjelmisto
    • Lataa
    • Vertaile versioita
    • Julkaisut
    Tee yhteistyötä
    • Github
    • Foorumi
    • Tapahtumat
    • Käännökset
    • Ryhdy kumppaniksi
    • Kumppanipalvelut
    • Rekisteröi tilitoimistosi
    Hanki palveluja
    • Löydä kumppani
    • Löydä kirjanpitäjä
    • Varaa asiantuntijatapaaminen
    • Implementaatiopalvelut
    • Asiakasreferenssit
    • Tuki
    • Versionkorotukset
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Varaa demo
  • Hinnoittelu
  • Asiakaspalvelu

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Kirjanpito
  • Varastointi
  • PoS
  • Projekti
  • MRP
All apps
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Apua

Custom field not appearing in res.partner model when module is a sub-directory

Tilaa

Saat ilmoituksen, kun tähän viestiin ilmaantuu aktiviteettia

Tämä kysymys on merkitty
invoicemodelsaccountsubmodules
1 Vastaa
4968 Näkymät
Avatar
Izzat

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.


0
Avatar
Hylkää
Avatar
shubham shiroya
Paras vastaus

you can check the following points:

  1. Make sure that your module is installed and upgraded: Ensure that you have installed and upgraded the neutrovis_invoice_note module after making changes to the code. You can do this by restarting the Odoo server and updating the module list.

  2. Check the module dependency order: Verify that the neutrovis_invoice_note module is installed after its dependencies (base, neutrovis_contact, and account) are installed. The order of installation can affect the inheritance and field addition process.

  3. Verify the module structure: Double-check the file structure of your module to ensure that the file paths and names are correct. Confirm that the __init__.py and __manifest__.py files are placed in the correct directories. Also, ensure that the file names and class names are spelled correctly.

  4. Check for any other modules modifying res.partner: Ensure that there are no other modules in your Odoo instance that modify the res.partner model and conflict with your changes. Check if any other modules have overridden the same field or view where you are trying to add the bank_tagging field.

  5. Verify the field definition: Review the account.py file in the neutrovis_invoice_note module to ensure that the field definition is correct. Make sure the field name (bank_tagging) and model inheritance (_inherit) match the parent model (res.partner). Also, confirm that the account.py file is being imported correctly in the __init__.py file.

After making any changes, remember to restart the Odoo server, upgrade the module, and clear the browser cache to ensure the changes are properly reflected.

0
Avatar
Hylkää
Nautitko keskustelusta? Älä vain lue, vaan osallistu!

Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!

Rekisteröidy
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
Where does invoice sequence number come from? Ratkaistu
invoice models account invoicing odoov12
Avatar
Avatar
2
maalisk. 19
5458
Error : ValidateError Error occurred while validating the field(s) company_id: Account and Period must belong to the same compa
invoice account
Avatar
Avatar
1
maalisk. 15
6948
How to extend Accounting module in openerp7 ?
invoice account
Avatar
Avatar
1
maalisk. 15
6146
Export accounting entry of payment with linked invoice sequence number
invoice account payment
Avatar
Avatar
1
toukok. 25
1674
What is the xml id for the invoice creation form? Ratkaistu
invoice xml account
Avatar
Avatar
2
huhtik. 24
2013
Yhteisö
  • Tutoriaalit
  • Dokumentaatio
  • Foorumi
Avoin lähdekoodi
  • Lataa
  • Github
  • Runbot
  • Käännökset
Palvelut
  • Odoo.sh hosting
  • Tuki
  • Versionkorotus
  • Räätälöidyt kehitykset
  • Koulutus
  • Löydä kirjanpitäjä
  • Löydä kumppani
  • Ryhdy kumppaniksi
Meistä
  • Yrityksemme
  • Tavaramerkki
  • Ota yhteyttä
  • Työpaikat
  • Tapahtumat
  • Podcast
  • Blogi
  • Asiakkaat
  • Oikeudellinen ilmoitus • Yksityisyys
  • Tietoturva
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo on kokoelma avoimen lähdekoodin yrityssovelluksia, jotka kattavat kaikki yrityksesi tarpeet: asiakkuudenhallinta eli CRM, verkkokauppa, kirjanpito, varastointi, kassajärjestelmä, projektinhallinta, jne.

Odoon uniikki arvolupaus on olla samanaikaisesti erittäin helppokäyttöinen ja täysin integroitu.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now