Odoo Help

Welcome!

This community 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.

0

Server error - problem with own module / field

By
Chris Keen
on 1/25/15, 6:39 PM 2,294 views

Hello,

Although this own module worked on my test environment, on the production environment its all gone bad.  Any ideas how I can get the server running again to install a new database or do a restore

  File "/opt/odoo/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 1282, in _validate_fields
    raise ValidationError('\n'.join(errors))
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition

Error details:
Veld x_relatierol` bestaat niet

Fout context:Weergave`view.res.partner.form.crm.inherited1`
[view_id: 613, xml_id: crm.view_partners_form_crm1, model: res.partner, parent_i                                                                                 d: 126]" while parsing /opt/odoo/addons/crm/res_partner_view.xml:82, near

<record id="view_partners_form_crm1" model="ir.ui.view">
            <field name="name">view.res.partner.form.crm.inherited1</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field eval="18" name="priority"/>
            <field name="arch" type="xml">
                <data>
                    <field name="user_id" position="after">
                        <field name="section_id" completion="1" groups="base.gro                                                                                 up_multi_salesteams"/>
                    </field>

I don't know whete to look or what to change to temporarily remove this problem

I hope someone can point me in the right direction!

Thanks

Hi, thanks for your answer. I was hoping to remove the field that now does not exist 'x_relatierol` - but I can't find it. I have probably used this field in a domain restriction in the view, but I can't find it.

  File "/opt/odoo/openerp/models.py", line 3879, in _write
    recs._validate_fields(vals)
  File "/opt/odoo/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 1282, in _validate_fields
    raise ValidationError('\n'.join(errors))
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition

Error details:
Veld x_relatierol` bestaat niet

Fout context:Weergave`view.res.partner.form.crm.inherited1`
[view_id: 613, xml_id: crm.view_partners_form_crm1, model: res.partner, parent_id: 126]" while parsing /opt/odoo/addons/crm/res_partner_view.xml:82, near
<record id="view_partners_form_crm1" model="ir.ui.view">
            <field name="name">view.res.partner.form.crm.inherited1</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field eval="18" name="priority"/>
            <field name="arch" type="xml">
                <data>
                    <field name="user_id" position="after">
                        <field name="section_id" completion="1" groups="base.group_multi_salesteams"/>
                    </field>
                    <xpath expr="//div[@name='buttons']" position="inside">
                        <button class="oe_inline oe_stat_button" type="action" attrs="{'invisible': [('customer', '=', False)]}" name="%(crm.crm_case_category_act_oppor11)d" icon="fa-star" context="{'search_default_partner_id': active_id}">
                            <field string="Opportunities" name="opportunity_count" widget="statinfo"/>
                        </button>
                        <button class="oe_inline oe_stat_button" type="object" name="schedule_meeting" icon="fa-calendar" context="{'partner_id': active_id}">
                            <field string="Meetings" name="meeting_count" widget="statinfo"/>
                        </button>
                        <button class="oe_inline oe_stat_button" type="action" name="%(crm.crm_case_categ_phone_incoming0)d" icon="fa-phone" context="{'search_default_partner_id': active_id, 'default_duration': 1.0}">
                            <field string="Calls" name="phonecall_count" widget="statinfo"/>
                        </button>
                    </xpath>
                </data>
            </field>
        </record>

 

Hi, thanks for your answer. I was hoping to remove the field that now does not exist 'x_relatierol` - but I can't find it. I have probably used this field in a domain restriction in the view, but I can't find it. File "/opt/odoo/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/opt/odoo/openerp/models.py", line 1282, in _validate_fields raise ValidationError('\n'.join(errors)) ParseError: "ValidateError Field(s) `arch` failed against a constraint: Invalid view definition Error details: Veld x_relatierol` bestaat niet Fout context:Weergave`view.res.partner.form.crm.inherited1` [view_id: 613, xml_id: crm.view_partners_form_crm1, model: res.partner, parent_id: 126]" while parsing /opt/odoo/addons/crm/res_partner_view.xml:82, near view.res.partner.form.crm.inherited1 res.partner <xpath expr="//div[@name='buttons']" position="inside">

Keen Intelligence, Chris Keen
on 1/26/15, 12:44 AM
0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/25/15, 11:39 PM

I hope the break in the XML ID base.group_multi_salesteams is a copy-paste error.  Anyway, remove the <data> tag within the <field name="arch" type="xml"> element.  Put whatever inside the <data> tag directly within <field name="arch" type="xml">.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/25/15, 6:39 PM
Seen: 2294 times
Last updated: 3/16/15, 8:10 AM