[IMP] account: multi company enhancements
[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 colspan="4" col="6">
12                         <field name="name" select="1"/>
13                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
14                         <field name="active" groups="base.group_extended"/>
15                     </group>
16                     <separator string="Mapping" colspan="4"/>
17                     <newline/>
18                     <field name="tax_ids" colspan="2" widget="one2many_list" nolabel="1">
19                         <tree string="Tax Mapping" editable="bottom">
20                             <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
21                             <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
22                         </tree>
23                         <form string="Tax Mapping">
24                             <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
25                             <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
26                         </form>
27                     </field>
28                     <field name="account_ids" colspan="2" widget="one2many_list" nolabel="1">
29                         <tree string="Account Mapping" editable="bottom">
30                             <field name="account_src_id"/>
31                             <field name="account_dest_id"/>
32                         </tree>
33                         <form string="Account Mapping">
34                             <field name="account_src_id"/>
35                             <field name="account_dest_id"/>
36                         </form>
37                     </field>
38                     <separator string="Notes" colspan="4"/>
39                     <field name="note" colspan="4" nolabel="1"/>
40                 </form>
41             </field>
42         </record>
43         <record id="view_account_position_tree" model="ir.ui.view">
44             <field name="name">account.fiscal.position.tree</field>
45             <field name="model">account.fiscal.position</field>
46             <field name="type">tree</field>
47             <field name="arch" type="xml">
48                 <tree string="Fiscal Position">
49                     <field name="name"/>
50                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
51                 </tree>
52             </field>
53         </record>
54
55         <record id="action_account_fiscal_position_form" model="ir.actions.act_window">
56             <field name="name">Fiscal Positions</field>
57             <field name="res_model">account.fiscal.position</field>
58             <field name="view_type">form</field>
59             <field name="view_mode">tree,form</field>
60         </record>
61
62         <menuitem
63             action="action_account_fiscal_position_form"
64             id="menu_action_account_fiscal_position_form"
65             parent="next_id_27" sequence="20"/>
66
67         <!--
68         Partners Extension
69         -->
70
71         <record id="view_partner_property_form" model="ir.ui.view">
72             <field name="name">res.partner.property.form.inherit</field>
73             <field name="model">res.partner</field>
74             <field name="type">form</field>
75             <field name="priority">2</field>
76             <field name="inherit_id" ref="base.view_partner_form"/>
77             <field name="arch" type="xml">
78                 <page string="History" position="before">
79                 <page string="Accounting">
80                     <group col="2" colspan="2">
81                         <separator string="Customer Accounting Properties" colspan="2"/>
82                         <field name="property_account_receivable" groups="account.group_account_invoice" />
83                         <field name="property_account_position" widget="selection"/>
84                         <field name="property_payment_term" widget="selection"/>
85                     </group>
86                     <group col="2" colspan="2">
87                         <separator string="Supplier Accounting Properties" colspan="2"/>
88                         <field name="property_account_payable" groups="account.group_account_invoice"/>
89                     </group>
90                     <group col="2" colspan="2">
91                         <separator string="Customer Credit" colspan="2"/>
92                         <field name="credit"/>
93                         <field name="credit_limit" groups="base.group_extended"/>
94                     </group>
95                     <group col="2" colspan="2">
96                         <separator string="Supplier Debit" colspan="2"/>
97                         <field name="debit"/>
98                     </group>
99                     <field colspan="4" context="{'address': address}" name="bank_ids" nolabel="1">
100                         <form string="Bank account">
101                             <field name="state"/>
102                             <newline/>
103                             <field name="acc_number"/>
104                             <newline/>
105                             <group name="owner" colspan="2" col="2">
106                                 <separator colspan="4" string="Bank Account Owner"/>
107                                 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
108                                 <field name="owner_name"/>
109                                 <field name="street"/>
110                                 <field name="city"/>
111                                 <field name="zip"/>
112                                 <field name="state_id"/>
113                                 <field name="country_id"/>
114                             </group>
115                             <group name="bank" colspan="2" col="2">
116                                 <separator colspan="2" string="Information About the Bank"/>
117                                 <field name="bank" on_change="onchange_bank_id(bank)" groups="base.group_extended"/>
118                                 <field name="bank_name"/>
119                                 <field name="bank_bic"/>
120                             </group>
121                         </form>
122                         <tree string="Bank Details">
123                             <field name="sequence" invisible="1"/>
124                             <field name="acc_number"/>
125                             <field name="bank_name"/>
126                             <field name="owner_name"/>
127                         </tree>
128                     </field>
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             groups="base.group_extended"/>
145
146         <record id="view_res_partner_reconcile" model="ir.ui.view">
147             <field name="name">res.partner.form.reconcile</field>
148             <field name="model">res.partner</field>
149             <field name="inherit_id" ref="base.view_partner_form"/>
150             <field name="arch" type="xml">
151                 <field name="credit_limit" position="after">
152                     <field name="last_reconciliation_date" groups="base.group_extended"/>
153                 </field>
154             </field>
155         </record>
156
157     </data>
158 </openerp>