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

« back to all changes in this revision

Viewing changes to delete_button/view/tender_view.xml

  • Committer: Quentin THEURET
  • Date: 2016-03-04 12:15:00 UTC
  • Revision ID: qt@tempo-consulting.fr-20160304121500-u2ay8zrf83ih9fu3
US-826 [IMP] Change the way to check if products is not consistent on add multiple line wizard

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
    <!-- TENDER -->
 
5
        <record id="tender_form" model="ir.ui.view">
 
6
            <field name="name">tender.form</field>
 
7
            <field name="model">tender</field>
 
8
            <field name="type">form</field>
 
9
            <field name="priority">300</field>
 
10
            <field name="inherit_id" ref="tender_flow.tender_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="tender_tree" model="ir.ui.view">
 
22
            <field name="name">tender.tree</field>
 
23
            <field name="model">tender</field>
 
24
            <field name="type">tree</field>
 
25
            <field name="priority">300</field>
 
26
            <field name="inherit_id" ref="tender_flow.tender_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
    </data>
 
40
</openerp>
 
 
b'\\ No newline at end of file'