forked from OCA/purchase-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
purchase_view.xml
32 lines (28 loc) · 1.18 KB
/
purchase_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="purchase.purchase_rfq" model="ir.actions.act_window">
<field name="context">{'purchase_rfq': True}</field>
</record>
<record id="purchase_order_form" model="ir.ui.view">
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<field name="currency_id" position="after">
<field name="picking_state"
attrs="{'invisible':[('picking_state','=', 'draft')]}"/>
</field>
</field>
</record>
<record id="purchase_order_tree" model="ir.ui.view">
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="picking_state"
invisible="context.get('purchase_rfq')"/>
</field>
</field>
</record>
</data>
</openerp>