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

« back to all changes in this revision

Viewing changes to delete_button/view/purchase_view.xml

UF-358 [ADD] Initial creation : backup of this day

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
 
    <!-- 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">
12
 
                <data>
13
 
                    <xpath expr="/form" position="attributes">
14
 
                        <attribute name='hide_delete_button'>1</attribute>
15
 
                    </xpath>
16
 
                </data>
17
 
            </field>
18
 
        </record>
19
 
        
20
 
        
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">
28
 
                <data>
29
 
                    <xpath expr="/tree" position="attributes">
30
 
                        <attribute name='hide_delete_button'>1</attribute>
31
 
                    </xpath>
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) ?'/>
35
 
                    </xpath>
36
 
                </data>
37
 
            </field>
38
 
        </record>
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">
47
 
                <data>
48
 
                    <xpath expr="/tree" position="attributes">
49
 
                        <attribute name='hide_delete_button'>1</attribute>
50
 
                    </xpath>
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) ?'/>
54
 
                    </xpath>
55
 
                </data>
56
 
            </field>
57
 
        </record>
58
 
    </data>
59
 
</openerp>
 
 
b'\\ No newline at end of file'