~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to portal_sale/portal_sale_view.xml

  • Committer: pmo
  • Date: 2007-05-23 13:05:11 UTC
  • Revision ID: pmo-dddb35c9d18fb9a20c329e4710cb84e0c41a21fc
create portal_sale

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<terp>
 
3
<data>
 
4
<record model="ir.ui.view" id="portal_order_form">
 
5
                <field name="name">Portal Order From</field>
 
6
                <field name="model">sale.order</field>
 
7
                <field name="type">form</field>
 
8
                <field name="arch" type="xml">
 
9
                        <form string="Sales Order">
 
10
                                <notebook>
 
11
                                        <page string="Sale Order">
 
12
                                                <field name="name" select="1"/>
 
13
                                                <group colspan="2" col="4">
 
14
                                                        <field name="shipped" select="1"/>
 
15
                                                        <field name="invoiced" select="1"/>
 
16
                                                </group>
 
17
                                                <newline/>
 
18
                                                <field name="date_order" select="1"/>
 
19
                                                <field name="shop_id" select="1" on_change="onchange_shop_id(shop_id)"/>
 
20
                                                <field name="partner_id" select="1" on_change="onchange_partner_id(partner_id)" required="1"/>
 
21
                                                <field name="partner_order_id" domain="[('partner_id','=',partner_id)]"/>
 
22
                                                <field name="partner_invoice_id" domain="[('partner_id','=',partner_id)]"/>
 
23
                                                <field name="partner_shipping_id" domain="[('partner_id','=',partner_id)]"/>
 
24
 
 
25
                                                <newline/>
 
26
                                                <field name="order_line" widget="one2many_list" colspan="4" nolabel="1" mode="tree,graph">
 
27
                        <form string="Sale Order Lines">
 
28
                                <notebook>
 
29
                                <page string="Order Line">
 
30
                                        <separator string="Automatic Declaration" colspan="4"/>
 
31
                                        <field name="product_uom_qty" 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'], False)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" select="1"/>
 
32
                                        <field name="product_uom"/>
 
33
                                        <field 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)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" colspan="4" select="1"/>
 
34
 
 
35
                                        <separator string="Manual Description" colspan="4"/>
 
36
                                        <field name="name" colspan="4" select="1"/>
 
37
                                        <field name="price_unit" select="1"/>
 
38
                                        <field name="discount"/>
 
39
                                        <field name="type"/>
 
40
                                        <field name="delay" select="1"/>
 
41
                                        <newline/>
 
42
                                        <field name="tax_id" colspan="4"/>
 
43
                                        <separator string="States" colspan="4"/>
 
44
                                        <field name="state" select="1"/>
 
45
                                        <field name="invoiced" select="1"/>
 
46
                                </page><page string="Extra Info">
 
47
                                        <field name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
 
48
                                        <field name="product_uos"  />
 
49
                                        <field name="product_packaging" />
 
50
                                        <field name="address_allotment_id" select="1"/>
 
51
 
 
52
                                </page><page string="History">
 
53
                                        <separator string="Invoice Lines" colspan="4"/>
 
54
                                        <field name="invoice_lines" colspan="4" nolabel="1"/>
 
55
 
 
56
                                </page>
 
57
                                </notebook>
 
58
                        </form>
 
59
                        <tree string="Sales Order Lines">
 
60
                                <field name="name" colspan="4"/>
 
61
                                <field name="product_id"/>
 
62
                                <field name="product_uom_qty" string="Qty"/>
 
63
                                <field name="product_uom" string="UoM"/>
 
64
                                <field name="discount"/>
 
65
                                <field name="price_unit"/>
 
66
                                <field name="price_net"/>
 
67
                                <field name="price_subtotal"/>
 
68
                        </tree>
 
69
                                        </field>
 
70
                                                <newline/>
 
71
                                                <group colspan="4" col="7">
 
72
                                                        <field name="amount_untaxed"/>
 
73
                                                        <field name="amount_tax"/>
 
74
                                                        <field name="amount_total"/>
 
75
 
 
76
                                                </group>
 
77
                                                <group colspan="4" col="13">
 
78
                                                        <field name="state" select="1"/>
 
79
 
 
80
                                                </group>
 
81
                                        </page>
 
82
                                        <page string="Other data">
 
83
                                                <field name="incoterm"/>
 
84
                                                <field name="picking_policy" required="True"/>
 
85
                                                <field name="user_id"/>
 
86
                                                <field name="order_policy" />
 
87
                                                <field name="origin"/>
 
88
                                                <field name="invoice_quantity"/>
 
89
                                                <field name="client_order_ref" />
 
90
 
 
91
                                        </page><page string="History">
 
92
                                                <separator string="Generated Invoices" colspan="4"/>
 
93
                                                <field name="invoice_ids" colspan="4" nolabel="1"/>
 
94
                                                <separator string="Generated Pickings" colspan="4"/>
 
95
                                                <field name="picking_ids" colspan="4" nolabel="1"/>
 
96
                                        </page>
 
97
                                </notebook>
 
98
                        </form>
 
99
                </field>
 
100
        </record>
 
101
</data>
 
102
</terp>