[ADD]: new view for Unrealized Gains and losses
[odoo/odoo.git] / addons / account / partner_view.xml
index ca489ac..706fa46 100644 (file)
@@ -7,9 +7,12 @@
             <field name="model">account.fiscal.position</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <form string="Fiscal Mapping">
-                    <field name="name" select="1"/>
-                    <field name="company_id" widget="selection" groups="base.group_multi_company"/>
+                <form string="Fiscal Position">
+                    <group colspan="4" col="6">
+                        <field name="name" select="1"/>
+                        <field name="company_id" widget="selection" groups="base.group_multi_company"/>
+                        <field name="active" groups="base.group_extended"/>
+                    </group>
                     <separator string="Mapping" colspan="4"/>
                     <newline/>
                     <field name="tax_ids" colspan="2" widget="one2many_list" nolabel="1">
@@ -42,7 +45,7 @@
             <field name="model">account.fiscal.position</field>
             <field name="type">tree</field>
             <field name="arch" type="xml">
-                <tree string="Fiscal Mapping">
+                <tree string="Fiscal Position">
                     <field name="name"/>
                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                 </tree>
@@ -50,7 +53,7 @@
         </record>
 
         <record id="action_account_fiscal_position_form" model="ir.actions.act_window">
-            <field name="name">Fiscal Mappings</field>
+            <field name="name">Fiscal Positions</field>
             <field name="res_model">account.fiscal.position</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
                 <page string="Accounting">
                     <group col="2" colspan="2">
                         <separator string="Customer Accounting Properties" colspan="2"/>
-                        <field name="property_account_receivable" groups="base.group_extended" />
+                        <field name="property_account_receivable" groups="account.group_account_invoice" />
                         <field name="property_account_position" widget="selection"/>
                         <field name="property_payment_term" widget="selection"/>
                     </group>
                     <group col="2" colspan="2">
                         <separator string="Supplier Accounting Properties" colspan="2"/>
-                        <field name="property_account_payable" groups="base.group_extended"/>
+                        <field name="property_account_payable" groups="account.group_account_invoice"/>
                     </group>
                     <group col="2" colspan="2">
                         <separator string="Customer Credit" colspan="2"/>
                         <form string="Bank account">
                             <field name="state"/>
                             <newline/>
-                            <field name="acc_number" select="1"/>
-                            <newline/>
-                            <field name="bank"/>
-                            <newline/>
-                            <field name="sequence"/>
-                            <field colspan="4" name="name"/>
-                            <separator colspan="4" string="Bank account owner"/>
-                            <field colspan="4" name="owner_name"/>
-                            <field colspan="4" name="street"/>
-                            <newline/>
-                            <field name="zip"/>
-                            <field name="city"/>
+                            <field name="acc_number"/>
                             <newline/>
-                            <field completion="1" name="country_id"/>
-                            <field name="state_id"/>
+                            <group name="owner" colspan="2" col="2">
+                                <separator colspan="4" string="Bank Account Owner"/>
+                                <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
+                                <field name="owner_name"/>
+                                <field name="street"/>
+                                <field name="city"/>
+                                <field name="zip"/>
+                                <field name="state_id"/>
+                                <field name="country_id"/>
+                            </group>
+                            <group name="bank" colspan="2" col="2">
+                                <separator colspan="2" string="Information About the Bank"/>
+                                <field name="bank" on_change="onchange_bank_id(bank)" groups="base.group_extended"/>
+                                <field name="bank_name"/>
+                                <field name="bank_bic"/>
+                            </group>
                         </form>
                         <tree string="Bank Details">
-                            <field name="state"/>
-                            <field name="bank"/>
-                            <field name="owner_name"/>
+                            <field name="sequence" invisible="1"/>
                             <field name="acc_number"/>
+                            <field name="bank_name"/>
+                            <field name="owner_name"/>
                         </tree>
                     </field>
                 </page>
 
         <act_window
             id="action_analytic_open"
-            name="Analytic Accounts"
+            name="Contracts/Analytic Accounts"
             res_model="account.analytic.account"
-            context="{'search_default_partner_id':[active_id]}"
+            context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
             src_model="res.partner"
             view_type="form"
             view_mode="tree,form,graph,calendar"
             <field name="inherit_id" ref="base.view_partner_form"/>
             <field name="arch" type="xml">
                 <field name="credit_limit" position="after">
-                    <field name="last_reconciliation_date"/>
+                    <field name="last_reconciliation_date" groups="base.group_extended"/>
                 </field>
             </field>
         </record>