[IMP] account: tax code usability changes
authorqdp-launchpad@tinyerp.com <>
Fri, 3 Sep 2010 13:06:03 +0000 (15:06 +0200)
committerqdp-launchpad@tinyerp.com <>
Fri, 3 Sep 2010 13:06:03 +0000 (15:06 +0200)
bzr revid: qdp-launchpad@tinyerp.com-20100903130603-e4rcdyl32dfbe5h8

addons/account/account.py
addons/account/account_view.xml

index acbf65a..829b440 100644 (file)
@@ -1551,7 +1551,7 @@ class account_tax_code(osv.osv):
         'child_ids': fields.one2many('account.tax.code', 'parent_id', 'Child Codes'),
         'line_ids': fields.one2many('account.move.line', 'tax_code_id', 'Lines'),
         'company_id': fields.many2one('res.company', 'Company', required=True),
-        'sign': fields.float('Sign for parent', required=True),
+        'sign': fields.float('Coefficent for parent', required=True, help='You can specify here the coefficient that will be used when consolidating the amount of this case into its parent. For example, set 1/-1 if you want to add/substract it.'),
         'notprintable':fields.boolean("Not Printable in Invoice", help="Check this box if you don't want any VAT related to this Tax Code to appear on invoices"),
     }
 
index 8feb7e3..f6294b7 100644 (file)
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="Account Tax Code">
-                    <field name="name" select="1"/>
-                    <field name="code" select="1"/>
-                    <field name="company_id" select="1"/>
-                    <field name="notprintable"/>
-                    <field name="parent_id" select="1"/>
-                    <field name="sign"/>
-                    <newline/>
-                    <field name="sum"/>
-                    <field name="sum_period"/>
-                    <newline/>
+                    <group col="6" colspan="4">
+                        <field name="name" select="1"/>
+                        <field name="code" select="1"/>
+                        <field name="parent_id" select="1"/>
+                        <field name="company_id" select="1" groups="base.group_multi_company"/>
+                    </group>
+                    <group colspan="2" col="2">
+                        <separator string="Reporting Configuration" colspan="4"/>
+                        <field name="notprintable"/>
+                        <field name="sign"/>
+                    </group>
+                    <group colspan="2" col="2">
+                        <separator string="Statistics" colspan="4"/>
+                        <field name="sum_period"/>
+                        <field name="sum"/>
+                    </group>
                     <separator string="Description" colspan="4"/>
                     <field colspan="4" name="info" nolabel="1"/>
                 </form>