~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to stock_override/procurement_view.xml

  • Committer: jf
  • Date: 2011-03-23 13:23:55 UTC
  • Revision ID: jf@tempo4-20110323132355-agyf1soy7m5ewatr
Initial Import

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8" ?>
2
 
<openerp>
3
 
        <data>
4
 
                
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">
11
 
                                <data>
12
 
                                         <xpath expr="/form/group[1]" position="attributes">
13
 
                                                <attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
14
 
                                         </xpath>
15
 
                                         <xpath expr="/form/group[2]" position="attributes">
16
 
                                                <attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
17
 
                                         </xpath>
18
 
                                         <xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='move_id']" position="attributes">
19
 
                                                <attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
20
 
                                         </xpath>
21
 
                                         <xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='date_close']" position="attributes">
22
 
                                                <attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
23
 
                                         </xpath>
24
 
                                         <xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='close_move']" position="attributes">
25
 
                                                <attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
26
 
                                         </xpath>
27
 
                                </data>
28
 
                        </field>
29
 
                </record>
30
 
                
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">
37
 
                                <data>
38
 
                                         <xpath expr="/form/notebook/page[@string='Extra Information']/field[@name='purchase_id']" position="attributes">
39
 
                                                <attribute name="attrs">{'readonly': [('state', '!=', 'draft')]}</attribute>
40
 
                                         </xpath>
41
 
                                </data>
42
 
                        </field>
43
 
                </record>
44
 
                
45
 
        </data>
46
 
</openerp>