From 6e6df55cd5f5d98c625aa1f94dbaac6a3e8b1996 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Fri, 22 Jun 2012 16:39:18 +0200 Subject: [PATCH] [IMP] account: improve config settings form bzr revid: rco@openerp.com-20120622143918-wj831n3sdpwa670x --- addons/account/res_config.py | 22 +++--- addons/account/res_config_view.xml | 119 +++++++++++++++++------------ 2 files changed, 82 insertions(+), 59 deletions(-) diff --git a/addons/account/res_config.py b/addons/account/res_config.py index 79ddbef53d3..3a3d247769d 100644 --- a/addons/account/res_config.py +++ b/addons/account/res_config.py @@ -37,7 +37,7 @@ class account_config_settings(osv.osv_memory): 'company_id': fields.many2one('res.company', 'Company', required=True), 'has_default_company': fields.boolean('Has default company', readonly=True), 'expects_chart_of_accounts': fields.related('company_id', 'expects_chart_of_accounts', type='boolean', - string='This Company Has it\'s Own Chart of Accounts', + string='This Company Has its Own Chart of Accounts', help="""Check this box if this company is a legal entity."""), 'currency_id': fields.related('company_id', 'currency_id', type='many2one', relation='res.currency', required=True, string='Default Company Currency', help="Main currency of the company."), @@ -61,28 +61,28 @@ class account_config_settings(osv.osv_memory): 'period': fields.selection([('month', 'Monthly'), ('3months','3 Monthly')], 'Periods', required=True), 'sale_journal_id': fields.many2one('account.journal', 'Sale Journal'), - 'sale_sequence_prefix': fields.related('sale_journal_id', 'sequence_id', 'prefix', type='char', string='Next Invoice Number'), + 'sale_sequence_prefix': fields.related('sale_journal_id', 'sequence_id', 'prefix', type='char', string='Invoice Sequence'), 'sale_sequence_next': fields.related('sale_journal_id', 'sequence_id', 'number_next', type='integer', string='Next Invoice Number'), 'sale_refund_journal_id': fields.many2one('account.journal', 'Sale Refund Journal'), - 'sale_refund_sequence_prefix': fields.related('sale_refund_journal_id', 'sequence_id', 'prefix', type='char', string=' Next Credit Note Number'), + 'sale_refund_sequence_prefix': fields.related('sale_refund_journal_id', 'sequence_id', 'prefix', type='char', string='Credit Note Sequence'), 'sale_refund_sequence_next': fields.related('sale_refund_journal_id', 'sequence_id', 'number_next', type='integer', string='Next Credit Note Number'), 'purchase_journal_id': fields.many2one('account.journal', 'Purchase Journal'), - 'purchase_sequence_prefix': fields.related('purchase_journal_id', 'sequence_id', 'prefix', type='char', string='Next Supplier Invoice Number'), + 'purchase_sequence_prefix': fields.related('purchase_journal_id', 'sequence_id', 'prefix', type='char', string='Supplier Invoice Sequence'), 'purchase_sequence_next': fields.related('purchase_journal_id', 'sequence_id', 'number_next', type='integer', string='Next Supplier Invoice Number'), 'purchase_refund_journal_id': fields.many2one('account.journal', 'Purchase Refund Journal'), - 'purchase_refund_sequence_prefix': fields.related('purchase_refund_journal_id', 'sequence_id', 'prefix', type='char', string='Next Supplier Credit Note Number'), + 'purchase_refund_sequence_prefix': fields.related('purchase_refund_journal_id', 'sequence_id', 'prefix', type='char', string='Supplier Credit Note Sequence'), 'purchase_refund_sequence_next': fields.related('purchase_refund_journal_id', 'sequence_id', 'number_next', type='integer', string='Next Supplier Credit Note Number'), 'module_account_check_writing': fields.boolean('Check Writing', help="""This allows you to check writing and printing. This installs the module account_check_writing."""), 'module_account_accountant': fields.boolean('Accountant Features', - help="""If you do not check this box, you will be able to do invoicing & payments, but not accounting (Journal Items, Chart of Accounts, ...)."""), + help="""If you do not check this box, you will be able to do invoicing & payments, but not accounting (Journal Items, Chart of Accounts, ...)"""), 'module_account_asset': fields.boolean('Assets Management', help="""This allows you to manage the assets owned by a company or a person. It keeps track of the depreciation occurred on those assets, and creates account move for those depreciation lines. - This installs the module account_asset. If you do not check this box, you will be able to do invoicing & payments, - but not accounting (Journal Items, Chart of Accounts, ...) """), + This installs the module account_asset. If you do not check this box, you will be able to do invoicing & payments, + but not accounting (Journal Items, Chart of Accounts, ...)"""), 'module_account_budget': fields.boolean('Budget Management', help="""This allows accountants to manage analytic and crossovered budgets. Once the master budgets and the budgets are defined, @@ -110,8 +110,10 @@ class account_config_settings(osv.osv_memory): 'group_proforma_invoices': fields.boolean('Allow Pro-forma Invoices', implied_group='account.group_proforma_invoices', help="Allows you to put invoices in pro-forma state."), - 'default_sale_tax': fields.many2one('account.tax', 'Default Sale Tax', help="Selected tax will be applied by default to Product's Sale Tax, while creating a new product."), - 'default_purchase_tax': fields.many2one('account.tax', 'Default Purchase Tax', help="Selected tax will be applied by default to Product's Purchase Tax, while creating a new product."), + 'default_sale_tax': fields.many2one('account.tax', 'Default Sale Tax', + help="This sale tax will be assigned by default on new products."), + 'default_purchase_tax': fields.many2one('account.tax', 'Default Purchase Tax', + help="This purchase tax will be assigned by default on new products."), 'decimal_precision': fields.integer('Decimal Precision on Journal Entries', help="""As an example, a decimal precision of 2 will allow journal entries like: 9.99 EUR, whereas a decimal precision of 4 will allow journal entries like: 0.0231 EUR."""), } diff --git a/addons/account/res_config_view.xml b/addons/account/res_config_view.xml index b0342ec514d..4458ffcebec 100644 --- a/addons/account/res_config_view.xml +++ b/addons/account/res_config_view.xml @@ -21,45 +21,59 @@