Skip to Content
Menu
This question has been flagged
2 Replies
3248 Views

 <record id="mrp_workorder_view_form_tablet_inherited" model="ir.ui.view">

<field name="name">mrp.workorder.view.form.inherit.quality.tablet.new</field>

<field name="model">mrp.workorder</field>

<field name="inherit_id" ref="quality_mrp.mrp_workorder_view_form_tablet"/>

<field name="arch" type="xml">

<div class="workorder_bar_left o_workorder_bar_content" position="after">

<div class="workorder_bar_center o_workorder_bar_content">

<label for="employee_id" string=" Employee Responsible:"/>

<field name="employee_id" class="oe_inline text-left" />

</div>

</div>

</field>

</record>

This xml *paragraph* raises an error when i try to install.

Error context:

View `mrp.workorder.view.form.inherit.quality.tablet.new`

[view_id: 2171, xml_id: mrp_demo.mrp_workorder_view_form_tablet_inherited, model: mrp.workorder, parent_id: 1933]

None" while parsing /home/armand/Desktop/odoo-11/addons/mrp_demo/views/mrp_demo.xml:54,

How to fix it?

Avatar
Discard
Best Answer

Hi Kristi,

Try this:

Make sure your preferred location.

<xpath expr='//div[@class='workorder_bar_left o_workorder_bar_content']' position="after">

     <div class="workorder_bar_center o_workorder_bar_content">

         <label for="employee_id" string=" Employee Responsible:"/>

         <field name="employee_id" class="oe_inline text-left" />

     </div>

</xpath>


Hope it helps,

Thanks,

Mayank Gosai

Avatar
Discard
Author Best Answer

Hey Mayank , thanks for the reply.

Tried it but it didn't work.

XMLSyntaxError: attributes construct error, line 59, column 44

Avatar
Discard

Hi Kristi,

Please use xpath, make sure all tag end properly and please look at your syntax.

I think it should be syntax mis-match.

Thanks!

Related Posts Replies Views Activity
0
Nov 24
132
1
Jul 24
2227
0
Jun 24
268
1
Jun 24
701
0
Oct 23
952