Odoo Help

1 Answer

Akhil P Sivan

--Akhil P Sivan--

| 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">
<label for="lab_outturn" attrs='{"readonly": [("state","=","done")]}'/>
<div class="o_row" name="lab_outturn">
<field name="lab_outturn" string="Lab Outturn"/>
<label for="headrice_outturn"/>
<div class="o_row" name="headrice_outturn">
<field name="headrice_outturn" string="Headrice Outturn"
attrs='{"readonly": [("state","=","done")]}'/>
<label for="broken_outturn"/>
<div class="o_row" name="broken_outturn">
<field name="broken_outturn" string="Broken Outturn"/>
<field name="estimated_cost"/>
Ask a Question
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.

Odoo Training Center

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

Test it now