From 7584c565c20cc98354e1abdd796a8e213927cd91 Mon Sep 17 00:00:00 2001 From: "Jagdish Panchal (Open ERP)" Date: Mon, 30 Apr 2012 14:41:38 +0530 Subject: [PATCH] [IMP] Improve code for blocking point in sale, purchase, warehouse, accounting, mrp, project bzr revid: jap@tinyerp.com-20120430091138-n37zmlrl48qyx20r --- addons/account/res_config.py | 6 ++-- addons/account/res_config_view.xml | 2 +- addons/mrp/res_config.py | 2 +- addons/project/project.py | 2 +- addons/purchase/purchase.py | 1 + addons/purchase/purchase_view.xml | 1 + .../purchase_double_validation_installer.xml | 4 +-- addons/sale/sale.py | 1 + addons/sale/sale_view.xml | 1 + addons/stock/report/report_stock.py | 4 +-- addons/stock/security/stock_security.xml | 2 +- addons/stock/stock_view.xml | 30 +++++++++---------- 12 files changed, 30 insertions(+), 26 deletions(-) diff --git a/addons/account/res_config.py b/addons/account/res_config.py index 9be969ace8a..228ee5b971b 100644 --- a/addons/account/res_config.py +++ b/addons/account/res_config.py @@ -38,7 +38,8 @@ class account_config_settings(osv.osv_memory): '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='Chart of Accounts for this Company'), + string='Chart of Accounts for this Company', + 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="Default Company Currency of the company."), 'paypal_account': fields.related('company_id', 'paypal_account', type='char', size=128, @@ -78,8 +79,7 @@ class account_config_settings(osv.osv_memory): help="""This allows you to check writing and printing. This installs the module account_check_writing."""), 'module_account_accountant': fields.boolean('Accountant Features', - help="""This allows you to access all the accounting features, like the journal items and the chart of accounts. - This installs the module account_accountant."""), + 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. diff --git a/addons/account/res_config_view.xml b/addons/account/res_config_view.xml index 991e084039b..d8a40a23175 100644 --- a/addons/account/res_config_view.xml +++ b/addons/account/res_config_view.xml @@ -22,11 +22,11 @@ + - - + - - + + @@ -945,10 +945,10 @@ - + - - + + @@ -1162,10 +1162,10 @@ - + - - + + @@ -1383,8 +1383,8 @@ groups="product.group_stock_packaging" icon="terp-stock_effects-object-colorize" states="draft,assigned,confirmed,done"/> - - + + @@ -1411,8 +1411,8 @@ icon="gtk-convert" context="{'scrap': True}" states="draft,waiting,confirmed,assigned" colspan="1"/> - - + + @@ -1597,8 +1597,8 @@ icon="gtk-convert" context="{'scrap': True}" states="draft,waiting,confirmed,assigned" colspan="1"/> - - + +