Odoo Help


how to set menu to board

Ait-Mlouk Addi
on 10/21/13, 2:34 PM 4,198 views

hi i have a dashboard and mene file as thid

<record id="open_board_fleet" model="ir.actions.act_window">
    <field name="name">Vehicule</field>
    <field name="res_model">board.board</field>
    <field name="view_type">form</field>
    <field name="view_mode">form</field>
    <field name="usage">menu</field>
    <field name="view_id" ref="board_fleet_form"/>
        <field name="help" type="html">
          <div class="oe_empty_custom_dashboard">
                <b>Le tableau de bord du parc de véhicule est vide..</b>
                To add your first report into this dashboard, go to any
                menu, switch to list or graph view, and click <i>'Add to
                Dashboard'</i> in the extended search options.
                You can filter and group data before inserting into the
                dashboard using the search options.

and in my file menu .xml i have this

<menuitem action="open_board_fleet" name="Transport" id="menu_root" sequence="110"  groups="group_fleet_user"  />

after i restart my server i get this error i try to remove action="" it work

OpenERP Server Error

Client Traceback (most recent call last): File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, *self.params) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/controllers/main.py", line 1132, in call_button action = self._call_kw(req, model, method, args, {}) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last): File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/dbm/workspace_2/OpenERP_v7/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/dbm/workspace_2/OpenERP_v7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/home/dbm/workspace_2/OpenERP_v7/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/home/dbm/workspace_2/OpenERP_v7/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/home/dbm/workspace_2/OpenERP_v7/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/home/dbm/workspace_2/OpenERP_v7/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/base/module/module.py", line 424, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/base/module/module.py", line 475, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/home/dbm/workspace_2/OpenERP_v7/openerp/pooler.py", line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module) File "/home/dbm/workspace_2/OpenERP_v7/openerp/modules/registry.py", line 218, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/home/dbm/workspace_2/OpenERP_v7/openerp/modules/loading.py", line 345, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module) File "/home/dbm/workspace_2/OpenERP_v7/openerp/modules/loading.py", line 256, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/home/dbm/workspace_2/OpenERP_v7/openerp/modules/loading.py", line 188, in load_module_graph load_data(module_name, idref, mode) File "/home/dbm/workspace_2/OpenERP_v7/openerp/modules/loading.py", line 76, in <lambda> load_data = lambda *args: _load_data(cr, *args, kind='data') File "/home/dbm/workspace_2/OpenERP_v7/openerp/modules/loading.py", line 124, in _load_data tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/convert.py", line 954, in convert_xml_import obj.parse(doc.getroot()) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/convert.py", line 847, in parse self._tagsrec.tag File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/convert.py", line 585, in _tag_menuitem a_type, a_id = self.model_id_get(cr, a_action) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/convert.py", line 833, in model_id_get return model_data_obj.get_object_reference(cr, self.uid, mod, id_str) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/base/ir/ir_model.py", line 869, in get_object_reference data_id = self._get_id(cr, uid, module, xml_id) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/home/dbm/workspace_2/OpenERP_v7/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/home/dbm/workspace_2/OpenERP_v7/openerp/addons/base/ir/ir_model.py", line 862, in _get_id raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id)) ValueError: No such external ID currently defined in the system: madrassa_transport.open_board_fleet

any help please


Brett Lehrer

--Brett Lehrer--

| 5 5 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 10/21/13, 10:16 PM

Last line:

ValueError: No such external ID currently defined in the system: madrassa_transport.open_board_fleet

If they're part of the same module, then make sure the action is loaded first and the menuitem loaded after. If they're in different files, make sure the menuitem file is listed after the action file in __openerp__.py.

Ait-Mlouk Addi
On 10/22/13, 6:31 AM

Thanks Brett Lehrer it work .

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 10/21/13, 2:34 PM
Seen: 4198 times
Last updated: 3/16/15, 8:10 AM