[FIX] account: put account group in receivale/payble account property in partner...
[odoo/odoo.git] / addons / account / partner_view.xml
index 113db6f..e1e4342 100644 (file)
                 <page string="Accounting" position="inside">
                     <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_user" />
                         <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_user"/>
                     </group>
                     <group col="2" colspan="2">
                         <separator string="Customer Credit" colspan="2"/>
                             <field name="acc_number"/>
                         </tree>
                     </field>
+                    <field name="invoice_ids" colspan="4" nolabel="1" context="{'group_by':'product_id'}"/>
                 </page>
                 </notebook>
             </field>
         </record>
+        
+        <!--  Partners info tab view-->
 
+        <record id="view_account_partner_info_form" model="ir.ui.view">
+            <field name="name">res.partner.account.info.inherit</field>
+            <field name="model">res.partner</field>
+            <field name="type">form</field>
+            <field name="inherit_id" ref="base.view_partner_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//notebook[last()]" position="after">
+                       <notebook colspan="4">
+                           <page string="Project">
+                               <field name="contract_ids" colspan="4" nolabel="1" />
+                           </page>
+                       </notebook>
+                </xpath>
+            </field>
+        </record>
+        
     </data>
 </openerp>