From 24998f835cdf4ab31285821f9b09b6fa4ead7052 Mon Sep 17 00:00:00 2001 From: "mra (Open ERP)" Date: Wed, 19 May 2010 14:38:46 +0530 Subject: [PATCH] [IMP] account_tax_include: move the field 'tax included in price' on tax into the account_tax_include module. Check that this field isn't used anywhere & Improve the code and rename the files bzr revid: mra@tinyerp.com-20100519090846-9hyyfk4ntybb25kz --- addons/account/account.py | 2 - addons/account/account_view.xml | 2 - addons/account_tax_include/__init__.py | 6 +-- addons/account_tax_include/__openerp__.py | 8 +-- ...ice_tax_incl.py => account_tax_include.py} | 52 ++++++++++++------- ..._incl.xml => account_tax_include_view.xml} | 40 +++++++++++--- 6 files changed, 73 insertions(+), 37 deletions(-) rename addons/account_tax_include/{invoice_tax_incl.py => account_tax_include.py} (92%) rename addons/account_tax_include/{invoice_tax_incl.xml => account_tax_include_view.xml} (77%) diff --git a/addons/account/account.py b/addons/account/account.py index 7a83f404c47..7938862acfb 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1348,7 +1348,6 @@ class account_tax(osv.osv): 'include_base_amount': fields.boolean('Included in base amount', help="Indicates if the amount of tax must be included in the base amount for the computation of the next taxes"), 'company_id': fields.many2one('res.company', 'Company', required=True), 'description': fields.char('Tax Code',size=32), - 'price_include': fields.boolean('Tax Included in Price', help="Check this if the price you use on the product and invoices includes this tax."), 'type_tax_use': fields.selection([('sale','Sale'),('purchase','Purchase'),('all','All')], 'Tax Application', required=True) } @@ -1381,7 +1380,6 @@ class account_tax(osv.osv): 'applicable_type': lambda *a: 'true', 'type': lambda *a: 'percent', 'amount': lambda *a: 0, - 'price_include': lambda *a: 0, 'active': lambda *a: 1, 'type_tax_use': lambda *a: 'all', 'sequence': lambda *a: 1, diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 5e514041d1d..2ab119e59a7 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -596,7 +596,6 @@ - @@ -628,7 +627,6 @@