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

« back to all changes in this revision

Viewing changes to partner_credit_limit/sale_view.xml

  • Committer: Eduardo Bayardo
  • Date: 2017-08-15 21:49:35 UTC
  • Revision ID: eduardo.bayardo@bias.com.mx-20170815214935-94uhog6hvq6em5mj
set correct date at sale order validation (sock.move, stock.picking)... Create Invoice defaults from pickings

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
 
 
5
        <record id="view_order_confirm_form_inherit" model="ir.ui.view">
 
6
            <field name="name">sale.order.confirm.form.inherit</field>
 
7
            <field name="model">sale.order</field>
 
8
            <field name="type">form</field>
 
9
            <field name="inherit_id" ref="sale.view_order_form"/>
 
10
            <field name="priority">40</field>
 
11
            <field name="arch" type="xml">
 
12
                <field name="shipped" position="after">
 
13
                    <field name="element" colspan="4"/>
 
14
                    <field name="copy" groups="base.group_extended"/>
 
15
                </field>
 
16
                <button name="order_confirm" position="replace">
 
17
                    <button name="order_confirm" states="pre_approve" string="Confirm Order" icon="gtk-apply"/>
 
18
                </button>
 
19
                <button name="cancel" position="replace">
 
20
                    <button name="cancel" states="draft,pre_approve" string="Cancel Order" icon="gtk-cancel"/>
 
21
                </button>
 
22
                <button name="button_dummy" position="before">
 
23
                    <button name="order_pre_approve"  states="draft" string="Pre Approve" icon="gtk-apply" groups="account.group_account_user"/>
 
24
                </button>
 
25
                                <field name="price_unit" position="replace">
 
26
                    <field name="price_unit" invisible="1"/>
 
27
                                </field>
 
28
                                <field name="discount" position="replace">
 
29
                    <field name="discount" invisible="1"/>
 
30
                                </field>
 
31
            </field>
 
32
        </record>
 
33
 
 
34
        <record model="ir.ui.view" id="view_order_form_inherit_2">
 
35
            <field name="name">sale.order.form.inherit_2</field>
 
36
            <field name="model">sale.order</field>
 
37
            <field name="type">form</field>
 
38
            <field name="inherit_id" ref="view_order_confirm_form_inherit"/>
 
39
            <field name="groups_id" eval="[(6,0, [ref('base.group_sale_price_modificator')])]" />
 
40
            <field name="arch" type="xml">
 
41
                                <field name="price_unit" position="replace">
 
42
                    <field name="price_unit" groups="base.group_sale_price_modificator"/>
 
43
                                </field>
 
44
                                <field name="discount" position="replace">
 
45
                    <field name="discount" groups="base.group_sale_price_modificator"/>
 
46
                                </field>
 
47
            </field>
 
48
        </record>
 
49
 
 
50
        <record id="view_sales_order_credit_filter" model="ir.ui.view">
 
51
            <field name="name">sale.order.credit.select</field>
 
52
            <field name="model">sale.order</field>
 
53
            <field name="type">search</field>
 
54
            <field name="inherit_id" ref="sale.view_sales_order_filter" />
 
55
            <field name="arch" type="xml">
 
56
                <xpath expr="//filter[@string='To Invoice']" position="after">
 
57
                    <filter icon="terp-go-today" string="Pedidos Programados" name="copia"
 
58
                            domain="[('copy','=',True)]"/>
 
59
                </xpath>
 
60
                <xpath expr="//filter[@string='Quotations']" position="replace">
 
61
                    <filter icon="terp-document-new" string="Quotations" domain="[('copy','=',False),('state','=','draft')]" help="Sales Order that haven't yet been confirmed"/>
 
62
                </xpath>
 
63
            </field>
 
64
        </record>
 
65
 
 
66
 
 
67
    </data>
 
68
</openerp>