[IMP] account: tax code usability changes

bzr revid: qdp-launchpad@tinyerp.com-20100903130603-e4rcdyl32dfbe5h8
This commit is contained in:
qdp-launchpad@tinyerp.com 2010-09-03 15:06:03 +02:00
parent aa88cbf32a
commit 218d48eec2
2 changed files with 17 additions and 11 deletions

View File

@ -1551,7 +1551,7 @@ class account_tax_code(osv.osv):
'child_ids': fields.one2many('account.tax.code', 'parent_id', 'Child Codes'), 'child_ids': fields.one2many('account.tax.code', 'parent_id', 'Child Codes'),
'line_ids': fields.one2many('account.move.line', 'tax_code_id', 'Lines'), 'line_ids': fields.one2many('account.move.line', 'tax_code_id', 'Lines'),
'company_id': fields.many2one('res.company', 'Company', required=True), '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"), '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"),
} }

View File

@ -742,16 +742,22 @@
<field name="type">form</field> <field name="type">form</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Account Tax Code"> <form string="Account Tax Code">
<field name="name" select="1"/> <group col="6" colspan="4">
<field name="code" select="1"/> <field name="name" select="1"/>
<field name="company_id" select="1"/> <field name="code" select="1"/>
<field name="notprintable"/> <field name="parent_id" select="1"/>
<field name="parent_id" select="1"/> <field name="company_id" select="1" groups="base.group_multi_company"/>
<field name="sign"/> </group>
<newline/> <group colspan="2" col="2">
<field name="sum"/> <separator string="Reporting Configuration" colspan="4"/>
<field name="sum_period"/> <field name="notprintable"/>
<newline/> <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"/> <separator string="Description" colspan="4"/>
<field colspan="4" name="info" nolabel="1"/> <field colspan="4" name="info" nolabel="1"/>
</form> </form>