[MERGE/IMP] lp:~openerp-commiter/openobject-addons/trunk-crm-sale-stock-imp-pat and...
[odoo/odoo.git] / addons / account / partner_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="view_account_position_form" model="ir.ui.view">
6             <field name="name">account.fiscal.position.form</field>
7             <field name="model">account.fiscal.position</field>
8             <field name="type">form</field>
9             <field name="arch" type="xml">
10                 <form string="Fiscal Position">
11                     <group col="4">
12                         <field name="name"/>
13                         <field name="active"/>
14                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
15                     </group>
16                     <separator string="Mapping"/>
17                     <field name="tax_ids" widget="one2many_list">
18                         <tree string="Tax Mapping" editable="bottom">
19                             <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
20                             <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
21                         </tree>
22                         <form string="Tax Mapping">
23                             <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
24                             <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
25                         </form>
26                     </field>
27                     <field name="account_ids" widget="one2many_list">
28                         <tree string="Account Mapping" editable="bottom">
29                             <field name="account_src_id"/>
30                             <field name="account_dest_id"/>
31                         </tree>
32                         <form string="Account Mapping">
33                             <field name="account_src_id"/>
34                             <field name="account_dest_id"/>
35                         </form>
36                     </field>
37                     <separator string="Notes"/>
38                     <field name="note"/>
39                 </form>
40             </field>
41         </record>
42         <record id="view_account_position_tree" model="ir.ui.view">
43             <field name="name">account.fiscal.position.tree</field>
44             <field name="model">account.fiscal.position</field>
45             <field name="type">tree</field>
46             <field name="arch" type="xml">
47                 <tree string="Fiscal Position">
48                     <field name="name"/>
49                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
50                 </tree>
51             </field>
52         </record>
53
54         <record id="action_account_fiscal_position_form" model="ir.actions.act_window">
55             <field name="name">Fiscal Positions</field>
56             <field name="res_model">account.fiscal.position</field>
57             <field name="view_type">form</field>
58             <field name="view_mode">tree,form</field>
59         </record>
60
61         <menuitem
62             action="action_account_fiscal_position_form"
63             id="menu_action_account_fiscal_position_form"
64             parent="next_id_27" sequence="20"/>
65
66         <!--
67         Partners Extension
68         -->
69
70         <record id="view_partner_property_form" model="ir.ui.view">
71             <field name="name">res.partner.property.form.inherit</field>
72             <field name="model">res.partner</field>
73             <field name="type">form</field>
74             <field name="priority">2</field>
75             <field name="inherit_id" ref="base.view_partner_form"/>
76             <field name="arch" type="xml">
77                 <page string="History" position="before" version="7.0">
78                 <page string="Accounting" col="4">
79                     <group col="4">
80                         <group string="Customer Accounting Properties" col="4">
81                             <field name="property_account_receivable" groups="account.group_account_invoice" />
82                             <field name="property_account_position" widget="selection"/>
83                             <field name="property_payment_term" widget="selection"/>
84                         </group>
85                         <group string="Supplier Accounting Properties" col="4">
86                             <field name="property_account_payable" groups="account.group_account_invoice"/>
87                         </group>
88                         <group string="Customer Credit" col="4">
89                             <field name="credit"/>
90                             <field name="credit_limit"/>
91                         </group>
92                         <group string="Supplier Debit" col="4">
93                             <field name="debit"/>
94                         </group>
95                         <field name="bank_ids">
96                             <form string="Bank account" version="7.0">
97                                 <field name="state"/>
98                                 <field name="acc_number"/>
99                                 <group>
100                                     <group name="owner" string="Bank Account Owner">
101                                         <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
102                                         <field name="owner_name"/>
103                                         <label for="street" string="Address"/>
104                                         <div>
105                                             <field name="street" placeholder="Street..."/>
106                                             <div>
107                                                 <field name="zip" class="oe_inline" placeholder="ZIP"/>
108                                                 <field name="city" class="oe_inline" placeholder="City"/>
109                                             </div>
110                                             <field name="state_id" placeholder="State"/>
111                                             <field name="country_id" placeholder="Country"/>
112                                         </div>
113                                     </group>
114                                     <group name="bank" string="Information About the Bank">
115                                         <field name="bank" on_change="onchange_bank_id(bank)"/>
116                                         <field name="bank_name"/>
117                                         <field name="bank_bic" placeholder="[Identifier code]"/>
118                                     </group>
119                                 </group>
120                             </form>
121                             <tree string="Bank Details">
122                                 <field name="sequence" invisible="1"/>
123                                 <field name="acc_number"/>
124                                 <field name="bank_name"/>
125                                 <field name="owner_name"/>
126                             </tree>
127                         </field>
128                     </group>
129                 </page>
130                 </page>
131             </field>
132         </record>
133
134         <!--  Partners info tab view-->
135
136         <act_window
137             id="action_analytic_open"
138             name="Contracts/Analytic Accounts"
139             res_model="account.analytic.account"
140             context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
141             src_model="res.partner"
142             view_type="form"
143             view_mode="tree,form,graph,calendar"/>
144
145         <record id="view_res_partner_reconcile" model="ir.ui.view">
146             <field name="name">res.partner.form.reconcile</field>
147             <field name="model">res.partner</field>
148             <field name="inherit_id" ref="base.view_partner_form"/>
149             <field name="arch" type="xml">
150                 <field name="credit_limit" position="after">
151                     <field name="last_reconciliation_date"/>
152                 </field>
153             </field>
154         </record>
155
156     </data>
157 </openerp>