~zaber/openobject-addons/stable_5.0-extra-addons

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
<openerp>
    <data>
        <record id="view_order_form_custom" model="ir.ui.view">
            <field name="name">sale.order.form</field>
            <field name="model">sale.order</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <field name="invoiced" select="2" position="after">
                    <field name="soplanned_date" select="2"/>
                    <button name="button_refresh_date" string="Update line planned date"
                        states="draft" type="object" colspan="2"/>
                    
                </field>
            </field>
        </record>
        <record id="view_order_form_custom2" model="ir.ui.view">
            
            <field name="name">sale.order.form</field>
            <field name="model">sale.order</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <field name="delay" select="2" position="replace">
                    <field name="delay" invisible="1"/>
                    <field name="planned_date" default_get="{'myplanned_date':planned_date}"  select="2"/>
                </field>
            </field>
        </record>
        <record id="view_order_form_custom3" model="ir.ui.view">
            
            <field name="name">sale.order.form</field>
            <field name="model">sale.order</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <field colspan="4"
                    context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
                    name="product_id"
                    on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order, product_packaging, parent.fiscal_position)"
                    select="1" position="replace">
                    <field colspan="4"
                        context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
                        name="product_id"
                        on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], True, parent.date_order, product_packaging, parent.fiscal_position, False, parent.soplanned_date)"
                        select="1"/>
                </field>
            </field>
        </record>
    </data>
</openerp>