1
<?xml version="1.0" encoding="utf-8" ?>
5
<record id="procurement_order_form_view" model="ir.ui.view">
6
<field name="name">procurement.order.form.view</field>
7
<field name="model">procurement.order</field>
8
<field name="type">form</field>
9
<field name="inherit_id" ref="procurement.procurement_form_view" />
10
<field name="arch" type="xml">
12
<xpath expr="/form/group[1]" position="attributes">
13
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
15
<xpath expr="/form/group[2]" position="attributes">
16
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
18
<xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='move_id']" position="attributes">
19
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
21
<xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='date_close']" position="attributes">
22
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
24
<xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='close_move']" position="attributes">
25
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
31
<record id="purchase_procurement_order_form_view" model="ir.ui.view">
32
<field name="name">purchase.procurement.order.form.view</field>
33
<field name="model">procurement.order</field>
34
<field name="type">form</field>
35
<field name="inherit_id" ref="purchase.view_procurement_form_inherit" />
36
<field name="arch" type="xml">
38
<xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='purchase_id']" position="attributes">
39
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>