Odoo Help

0
1 Answer
1
Avatar

Akhil P Sivan

--Akhil P Sivan--

4449
| 5 4 7
Kochi, India
--Akhil P Sivan--

Odoo Developer

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
4/11/19, 8:19 AM

Hi, try this code in xml:

<record id="stock_picking_view_form_inherit1" model="ir.ui.view">
<field name="name">stock.picking.form.inherit1</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//form/sheet/notebook/page[1]" position="after">
<page string="LabTest">
<group>
<group>
<label for="lab_outturn" attrs='{"readonly": [("state","=","done")]}'/>
<div class="o_row" name="lab_outturn">
<field name="lab_outturn" string="Lab Outturn"/>
<span>%</span>
</div>
</group>
<group>
<label for="headrice_outturn"/>
<div class="o_row" name="headrice_outturn">
<field name="headrice_outturn" string="Headrice Outturn"
attrs='{"readonly": [("state","=","done")]}'/>
<span>%</span>
</div>
</group>
<group>
<label for="broken_outturn"/>
<div class="o_row" name="broken_outturn">
<field name="broken_outturn" string="Broken Outturn"/>
<span>%</span>
</div>
<field name="estimated_cost"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
Ask a Question
Writer
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

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

Test it now