Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

The error indicates that the action is either not defined properly or doesn't exist.

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
actionerrormenumenuitem
1 Rispondi
4509 Visualizzazioni
Avatar
Ankel Bega

I am trying to create a simple action for a menu item like below


I also got these simple menus that are related to the menu above:



But apparently odoo doesnt recognize the action I have creted and shows this error like below :
RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\convert.py", line 556, in _tag_root

    f(rec)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\convert.py", line 339, in _tag_menuitem

    menu = self.env['ir.ui.menu']._load_records([data], self.mode == 'update')

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\models.py", line 5064, in _load_records

    data['record']._load_records_write(data['values'])

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\models.py", line 4995, in _load_records_write

    self.write(values)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\addons\base\models\ir_ui_menu.py", line 176, in write

    return super(IrUiMenu, self).write(values)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\models.py", line 4424, in write

    field.write(self, value)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\fields.py", line 1121, in write

    cache_value = self.convert_to_cache(value, records)

                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\fields.py", line 2879, in convert_to_cache

    raise ValueError("Wrong value for %s: %r" % (self, value))

ValueError: Wrong value for ir.ui.menu.action: 'ir.actions.act.window,433'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\http.py", line 1783, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\service\model.py", line 133, in retrying

    result = func()

             ^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\http.py", line 1810, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\http.py", line 2014, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "c:\users\user\downloads\odoo-17.0\addons\website\models\ir_http.py", line 235, in _dispatch

    response = super()._dispatch(endpoint)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\addons\base\models\ir_http.py", line 222, in _dispatch

    result = endpoint(**request.params)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\http.py", line 759, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "c:\users\user\downloads\odoo-17.0\addons\web\controllers\dataset.py", line 28, in call_button

    action = self._call_kw(model, method, args, kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "c:\users\user\downloads\odoo-17.0\addons\web\controllers\dataset.py", line 20, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\api.py", line 468, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\api.py", line 453, in _call_kw_multi

    result = method(recs, *args, **kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\venv\Lib\site-packages\decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\addons\base\models\ir_module.py", line 75, in check_and_log

    return method(self, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\addons\base\models\ir_module.py", line 657, in button_immediate_upgrade

    return self._button_immediate_function(self.env.registry[self._name].button_upgrade)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\addons\base\models\ir_module.py", line 590, in _button_immediate_function

    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\venv\Lib\site-packages\decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\func.py", line 87, in locked

    return func(inst, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\modules\registry.py", line 114, in new

    odoo.modules.load_modules(registry, force_demo, status, update_module)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\modules\loading.py", line 476, in load_modules

    processed_modules += load_marked_modules(env, graph,

                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\modules\loading.py", line 364, in load_marked_modules

    loaded, processed = load_module_graph(

                        ^^^^^^^^^^^^^^^^^^

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\modules\loading.py", line 227, in load_module_graph

    load_data(env, idref, mode, kind='data', package=package)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\modules\loading.py", line 71, in load_data

    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\convert.py", line 627, in convert_file

    convert_xml_import(env, module, fp, idref, mode, noupdate)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\convert.py", line 693, in convert_xml_import

    obj.parse(doc.getroot())

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\convert.py", line 613, in parse

    self._tag_root(de)

  File "C:\Users\USER\Downloads\odoo-17.0\odoo\tools\convert.py", line 569, in _tag_root

    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (

odoo.tools.convert.ParseError: while parsing file:/c:/users/user/downloads/odoo-17.0/custom_addons/om_hotel/views/customer_view.xml:22, somewhere inside

<menuitem id="menu_customer" name="Customer" parent="menu_customer_master" action="action1_hotel_customer" sequence="0"/>


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPC_ERROR

        at makeErrorFromResponse (http://localhost:8017/web/assets/debug/web.assets_web.js:27903:19) (/web/static/src/core/network/rpc_service.js:37)

        at XMLHttpRequest.<anonymous> (http://localhost:8017/web/assets/debug/web.assets_web.js:27951:27) (/web/static/src/core/network/rpc_service.js:85)




***Also, the file is properly added to the __manifest__.py file*** 
Could someone please help?

0
Avatar
Abbandona
Avatar
Accurate | www.accurates.com.sa
Risposta migliore

The error may arises from the following reasons:-
1. In __manifest__.py, if the parent menu file is mentioned after the sub menu file then load parent menu file before sub menu file like this:-

'data': [

    'views/parent_menu_file.xml', 

    'views/sub_menu_file.xml',  ],

2. If the parent menu is defined in another module (e.g., hotel_base), you must prefix the XML ID with the module name.

<menuitem

    id="menu_customer"

    name="Customer"

    parent="hotel_base.menu_customer_master" 

    action="action1_hotel_customer"

    sequence="0"

/>

3. Delete <field name="type">ir.actions.act_window</field> from the action. The model="ir.actions.act_window" already defines the type.


Best Regards,
NIZAMUDHEEN MJ
Accurates


0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Dropdown sub-menu offset away from position
menu menuitem
Avatar
0
dic 24
1871
menuitem get disabled when I assign tree view action in menuitem action
action menuitem
Avatar
Avatar
1
lug 22
2621
How can I change the menu_id in the url when clicking on an action button
action menu menuitem button navigation
Avatar
Avatar
2
giu 20
7592
How to create a new menu item and place it under other module's menu? Risolto
menu menuitem
Avatar
Avatar
Avatar
Avatar
4
ott 19
35416
MenuItem with condition without new action creation
action menu menuitem conditional ir.actions
Avatar
0
gen 18
5553
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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