mgmtsystem_hazard: ValueError: No such external ID currently defined in the system: base.view_company_form

Bug #1287174 reported by Med Said BARA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Management System
Invalid
Undecided
Maxime Chambreuil (http://www.savoirfairelinux.com)

Bug Description

Hi;

getting this error:

---------------------------
2014-03-03 12:44:51,855 9084 ERROR GSC2014 openerp.tools.convert: Parse error in file:///F:/Program%20Files%20(x86)/OpenERP%207.0alpha-20130107-000101/Server/server/openerp/addons/mgmtsystem_hazard/mgmtsystem_hazard.xml:341:
<record model="ir.ui.view" id="company_form_view">
            <field name="name">res.company.form.inherit.mgmtsystem_hazard</field>
            <field name="model">res.company</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="base.view_company_form"/>
            <field name="arch" type="xml">
                <xpath expr="//page[@string='Configuration']" position="inside">
                    <group name="mgmtsystem_group" string="Management System">
                        <field name="risk_computation_id"/>
                    </group>
                </xpath>
            </field>
        </record>
Traceback (most recent call last):
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\convert.py", line 847, in parse
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\convert.py", line 805, in _tag_record
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\convert.py", line 824, in id_get
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\convert.py", line 833, in model_id_get
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\cache.py", line 18, in lookup
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\cache.py", line 46, in lookup
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\openerp\addons\base\ir\ir_model.py", line 874, in get_object_reference
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\cache.py", line 18, in lookup
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\.\openerp\tools\cache.py", line 46, in lookup
  File "F:\Program Files (x86)\OpenERP 7.0alpha-20130107-000101\Server\server\openerp\addons\base\ir\ir_model.py", line 867, in _get_id
ValueError: No such external ID currently defined in the system: base.view_company_form
--------------------------------------------------
Investigations:

//page[@string='Configuration'] is not in "base.view_company_form", but in "base.res_config_view_base"

Should we change the inheritence at line 345 to "base.res_config_view_base" and also the field name of the record at line 341.

Is the Record @ line 341 related to configuration or to ...... ???

Best regards

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

Hello diassynthesis,

Can you try updating openobject-server ?

It is working on my side.

http://bazaar.launchpad.net/~openerp/openobject-server/7.0/view/head:/openerp/addons/base/res/res_company_view.xml#L93

Changed in openerp-mgmtsystem:
status: New → Invalid
assignee: nobody → Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)
Revision history for this message
Med Said BARA (diassynthesis) wrote :

Yes, you are right it's @ line 93.

I've updated yesterday, with openerp-allinone-setup-7.0-20140302-001303.exe .

Can't understand what's wrong !

I will update with the Last (from) today and keep you informed.

Thank you for your response.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.