Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

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

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
actionerrormenumenuitem
1 Balas
4483 Tampilan
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
Buang
Avatar
Accurate | www.accurates.com.sa
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Dropdown sub-menu offset away from position
menu menuitem
Avatar
0
Des 24
1865
menuitem get disabled when I assign tree view action in menuitem action
action menuitem
Avatar
Avatar
1
Jul 22
2614
How can I change the menu_id in the url when clicking on an action button
action menu menuitem button navigation
Avatar
Avatar
2
Jun 20
7587
How to create a new menu item and place it under other module's menu? Diselesaikan
menu menuitem
Avatar
Avatar
Avatar
Avatar
4
Okt 19
35399
MenuItem with condition without new action creation
action menu menuitem conditional ir.actions
Avatar
0
Jan 18
5550
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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