~eduardo-bayardo-bias/openobject-addons/addons_interface

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_order_confirm_form_inherit" model="ir.ui.view">
            <field name="name">sale.order.confirm.form.inherit</field>
            <field name="model">sale.order</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="priority">40</field>
            <field name="arch" type="xml">
                <field name="shipped" position="after">
                    <field name="element" colspan="4"/>
                    <field name="copy" groups="base.group_extended"/>
                </field>
                <button name="order_confirm" position="replace">
                    <button name="order_confirm" states="pre_approve" string="Confirm Order" icon="gtk-apply"/>
                </button>
                <button name="cancel" position="replace">
                    <button name="cancel" states="draft,pre_approve" string="Cancel Order" icon="gtk-cancel"/>
                </button>
                <button name="button_dummy" position="before">
                    <button name="order_pre_approve"  states="draft" string="Pre Approve" icon="gtk-apply" groups="account.group_account_user"/>
                </button>
				<field name="price_unit" position="replace">
                    <field name="price_unit" invisible="1"/>
				</field>
				<field name="discount" position="replace">
                    <field name="discount" invisible="1"/>
				</field>
            </field>
        </record>

        <record model="ir.ui.view" id="view_order_form_inherit_2">
            <field name="name">sale.order.form.inherit_2</field>
            <field name="model">sale.order</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="view_order_confirm_form_inherit"/>
            <field name="groups_id" eval="[(6,0, [ref('base.group_sale_price_modificator')])]" />
            <field name="arch" type="xml">
				<field name="price_unit" position="replace">
                    <field name="price_unit" groups="base.group_sale_price_modificator"/>
				</field>
				<field name="discount" position="replace">
                    <field name="discount" groups="base.group_sale_price_modificator"/>
				</field>
            </field>
        </record>

        <record id="view_sales_order_credit_filter" model="ir.ui.view">
            <field name="name">sale.order.credit.select</field>
            <field name="model">sale.order</field>
            <field name="type">search</field>
            <field name="inherit_id" ref="sale.view_sales_order_filter" />
            <field name="arch" type="xml">
                <xpath expr="//filter[@string='To Invoice']" position="after">
                    <filter icon="terp-go-today" string="Pedidos Programados" name="copia"
                            domain="[('copy','=',True)]"/>
                </xpath>
                <xpath expr="//filter[@string='Quotations']" position="replace">
                    <filter icon="terp-document-new" string="Quotations" domain="[('copy','=',False),('state','=','draft')]" help="Sales Order that haven't yet been confirmed"/>
                </xpath>
            </field>
        </record>


    </data>
</openerp>