Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

POS field does not exists in model res.config.settings error when modifying inherited view

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
configurationviewsconfigpoint_of_salePoint Of Sale
2 Răspunsuri
2207 Vizualizări
Imagine profil
Dobar Tecnologias Dobartec EIRL

Hi to all. 


I'm making some fields hidden or not available to users than can access the settings menu. I can make it work inheriting the module's res.config.settings view and setting the fields or sections I do not want to show to that users invisible, or assigning it to another specific group; it's working ok for the res.config.settings, base_setup and invoicing modules. 


However, when I try to do the same with POS, any field, block, setting, or any other part of the view raises an error stating i.e. "Field "pos_auto_validate_terminal_payment" does not exist in model "res.config.settings""

Below the inherited view code in full: 

<?xml version="1.0" encoding="utf-8"?>

<odoo>

<data>

<record id="pos_res_config_settings_view_form_inherited" model="ir.ui.view">

<field name="name">my_module.pos_res_config_settings_view_form</field>

<field name="model">res.config.settings</field>

<field name="inherit_id" ref="point_of_sale.res_config_settings_view_form"/>

<field name="arch" type="xml">

<xpath expr="//field[@name='pos_auto_validate_terminal_payment']" position="attributes">

<attribute name="invisible">1</attribute>

</xpath>

</field>

</record>

</data>

</odoo>

Below an extract of the log of the module update intent: 

2025-08-06 20:31:57,213 98382 ERROR ? odoo.modules.registry: Failed to load registry 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 481, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 229, in load_module_graph
    load_data(env, idref, mode, kind='data', package=package)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 73, in load_data
    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 627, in convert_file
    convert_xml_import(env, module, fp, idref, mode, noupdate)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 693, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 613, in parse
    self._tag_root(de)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 556, in _tag_root
    f(rec)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 567, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo.tools.convert.ParseError: while parsing /workspace/my_module/views/point_of_sale.res_config_settings_view_form.xml:4
Error while validating view near:

                            <block title="Companies" name="companies_setting_container">
                                <field name="company_id" invisible="1"/>
                                <setting id="company_details_settings">
                                    <field name="company_name" nolabel="1" class="fw-bold"/>
                                    <br/>

Field "pos_auto_validate_terminal_payment" does not exist in model "res.config.settings"

View error context:
{'file': '/workspace/my_module/views/point_of_sale.res_config_settings_view_form.xml',
'line': 52,
'name': 'my_module.pos_res_config_settings_view_form',
'view': ir.ui.view(1504,),
'view.model': 'res.config.settings',
'view.parent': ir.ui.view(1081,),
'xmlid': 'pos_res_config_settings_view_form_inherited'}

2025-08-06 20:31:57,214 - ERROR - Exception during request handling.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 2213, in __call__
    response = request._serve_db()
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1766, in _serve_db
    self.registry = Registry(self.db).check_signaling()
                    ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in __new__
    return cls.new(db_name)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 481, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 229, in load_module_graph
    load_data(env, idref, mode, kind='data', package=package)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 73, in load_data
    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 627, in convert_file
    convert_xml_import(env, module, fp, idref, mode, noupdate)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 693, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 613, in parse
    self._tag_root(de)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 556, in _tag_root
    f(rec)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 567, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo.tools.convert.ParseError: while parsing /workspace/my_module/views/point_of_sale.res_config_settings_view_form.xml:4
Error while validating view near:

                            <block title="Companies" name="companies_setting_container">
                                <field name="company_id" invisible="1"/>
                                <setting id="company_details_settings">
                                    <field name="company_name" nolabel="1" class="fw-bold"/>
                                    <br/>

Field "pos_auto_validate_terminal_payment" does not exist in model "res.config.settings"

View error context:
{'file': '/workspace/my_module/views/point_of_sale.res_config_settings_view_form.xml',
'line': 52,
'name': 'my_module.pos_res_config_settings_view_form',
'view': ir.ui.view(1504,),
'view.model': 'res.config.settings',
'view.parent': ir.ui.view(1081,),
'xmlid': 'pos_res_config_settings_view_form_inherited'}

2025-08-06 20:31:57,214 98382 ERROR ? odoo.http: Exception during request handling.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 2213, in __call__
    response = request._serve_db()
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1766, in _serve_db
    self.registry = Registry(self.db).check_signaling()
                    ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in __new__
    return cls.new(db_name)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 481, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 229, in load_module_graph
    load_data(env, idref, mode, kind='data', package=package)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 73, in load_data
    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 627, in convert_file
    convert_xml_import(env, module, fp, idref, mode, noupdate)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 693, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 613, in parse
    self._tag_root(de)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 556, in _tag_root
    f(rec)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 567, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo.tools.convert.ParseError: while parsing /workspace/my_module/views/point_of_sale.res_config_settings_view_form.xml:4
Error while validating view near:

                            <block title="Companies" name="companies_setting_container">
                                <field name="company_id" invisible="1"/>
                                <setting id="company_details_settings">
                                    <field name="company_name" nolabel="1" class="fw-bold"/>
                                    <br/>

Field "pos_auto_validate_terminal_payment" does not exist in model "res.config.settings"

View error context:
{'file': '/workspace/my_module/views/point_of_sale.res_config_settings_view_form.xml',
'line': 52,
'name': 'my_module.pos_res_config_settings_view_form',
'view': ir.ui.view(1504,),
'view.model': 'res.config.settings',
'view.parent': ir.ui.view(1081,),
'xmlid': 'pos_res_config_settings_view_form_inherited'}


I tried with many other fields, and happens the same. When I try with some block, or settings sections, raises the same error, reflecting it on the first field of the block or sections. 

Any help or advice on how to approach the error is appreciated.

0
Imagine profil
Abandonează
Imagine profil
D Enterprise
Cel mai bun răspuns

Hi,

Declare a dependency on point_of_sale in your manifest

You must explicitly declare a dependency on point_of_sale in your module's __manifest__.py. This ensures your module loads after point_of_sale, which will ensure the fields from PoS are already injected into res.config.settings.

Update your __manifest__.py:

{

    'name': 'My Module',

    'version': '1.0',

    'depends': [

        'base',

        'point_of_sale',  # Add this line!

    ],

    'data': [

        'views/point_of_sale.res_config_settings_view_form.xml',

    ],

}

Without this dependency, your module might load before point_of_sale, and the fields added by PoS into res.config.settings will not exist yet, leading to the error.


i hope it is helpfull

0
Imagine profil
Abandonează
Dobar Tecnologias Dobartec EIRL
Autor

Adding the dependency fixed the issue.

Thank you very much.

Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,


Try the following.


- Add 'point_of_sale' in the module dependencies (__manifest__.py file).

      'depends': ['base', 'point_of_sale']


- Instead of modifying individual fields, you can hide the entire POS settings block with a condition like:

      <xpath expr="//div[hasclass('pos_settings_block')]" position="attributes">

  <attribute name="groups">your_security_group</attribute>

</xpath>


Hope it helps

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
How can I to edit point of sale interface? Rezolvat
javascript views manifest point_of_sale Point Of Sale
Imagine profil
Imagine profil
2
ian. 25
3254
How to inherit point_of_sale action_pad.xml?
point_of_sale Point Of Sale
Imagine profil
Imagine profil
1
dec. 24
2519
Custom filter odoo 17
point_of_sale Point Of Sale
Imagine profil
0
dec. 24
1721
Can I comment the lines inside the configuration file? Rezolvat
configuration config
Imagine profil
Imagine profil
1
apr. 25
8008
Looking for a solution to "MODULE ERROR Adjusting the price is not allowed".
point_of_sale Point Of Sale
Imagine profil
Imagine profil
1
ian. 21
3161
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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