1
<?xml version="1.0" encoding="UTF-8"?>
4
<!-- PURCHASE ORDER -->
5
<record id="purchase_order_form" model="ir.ui.view">
6
<field name="name">purchase.order.form</field>
7
<field name="model">purchase.order</field>
8
<field name="type">form</field>
9
<field name="priority">300</field>
10
<field name="inherit_id" ref="purchase.purchase_order_form" />
11
<field name="arch" type="xml">
13
<xpath expr="/form" position="attributes">
14
<attribute name='hide_delete_button'>1</attribute>
21
<record id="purchase_order_tree" model="ir.ui.view">
22
<field name="name">purchase.order.type.tree.view</field>
23
<field name="model">purchase.order</field>
24
<field name="type">tree</field>
25
<field name="priority">300</field>
26
<field name="inherit_id" ref="purchase.purchase_order_tree" />
27
<field name="arch" type="xml">
29
<xpath expr="/tree" position="attributes">
30
<attribute name='hide_delete_button'>1</attribute>
32
<xpath expr="/tree/field[@name='state']" position="after">
33
<button name="delete_button" type="object" icon="gtk-del" string="Delete"
34
states='draft' confirm='Do you really want to delete selected record(s) ?'/>
39
<!-- REQUEST FOR QUOTATION -->
40
<record id="view_rfq_tree" model="ir.ui.view">
41
<field name="name">view.rfq.tree</field>
42
<field name="model">purchase.order</field>
43
<field name="type">tree</field>
44
<field name="priority" eval="200" />
45
<field name="inherit_id" ref="tender_flow.view_rfq_tree" />
46
<field name="arch" type="xml">
48
<xpath expr="/tree" position="attributes">
49
<attribute name='hide_delete_button'>1</attribute>
51
<xpath expr="/tree/field[@name='state']" position="after">
52
<button name="delete_button" type="object" icon="gtk-del" string="Delete"
53
states='draft' confirm='Do you really want to delete selected record(s) ?'/>
b'\\ No newline at end of file'