From 438e590d9c4408cab607f474e0398d15ef2be785 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Wed, 6 Jun 2012 15:01:13 +0530 Subject: [PATCH 01/12] [IMP] improve sequence and arrangement for sale configration wizrd. bzr revid: nco@tinyerp.com-20120606093113-cx65cjiwts0yv4qq --- addons/sale/res_config_view.xml | 64 ++++++++++++++++----------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/addons/sale/res_config_view.xml b/addons/sale/res_config_view.xml index fa8aa2baa8e..477107b431c 100644 --- a/addons/sale/res_config_view.xml +++ b/addons/sale/res_config_view.xml @@ -9,38 +9,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 5fc01fb74a711aca1f4295d30151dc78528e624d Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Wed, 6 Jun 2012 15:14:21 +0530 Subject: [PATCH 02/12] [IMP] set the decimial precision between 0 to 20. bzr revid: nco@tinyerp.com-20120606094421-h069ask81mvr6u6n --- addons/sale/res_config.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index 1007107f1a0..33f2afae07d 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -103,7 +103,14 @@ class sale_configuration(osv.osv_memory): 'module_project': fields.boolean("Project"), 'decimal_precision': fields.integer('Decimal Precision on Price'), } - + def _check_decimal(self, cr, uid, ids, context=None): + decimal = self.browse(cr, uid, ids, context=context)[0].decimal_precision + if decimal > 20: + return False + return True + _constraints = [ + (_check_decimal, 'Digits must be between 0 and 20 ', ['decimal_precision']), + ] def default_get(self, cr, uid, fields, context=None): ir_model_data = self.pool.get('ir.model.data') res = super(sale_configuration, self).default_get(cr, uid, fields, context) From 74bd52202ef0d13d0e278a303aeac6c461f6015f Mon Sep 17 00:00:00 2001 From: "Jalpesh Patel (OpenERP)" Date: Wed, 6 Jun 2012 18:07:22 +0530 Subject: [PATCH 03/12] [IMP]purchase:improve purchase and stock wizard configration bzr revid: pja@tinyerp.com-20120606123722-w9f6gt62y1kio2j2 --- addons/purchase/res_config.py | 19 +++++++++------ addons/purchase/res_config_view.xml | 23 ++++++++++++++--- addons/stock/res_config_view.xml | 38 +++++++++++++++++------------ 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/addons/purchase/res_config.py b/addons/purchase/res_config.py index d4baa2d6099..8ee97f52030 100644 --- a/addons/purchase/res_config.py +++ b/addons/purchase/res_config.py @@ -48,13 +48,7 @@ class purchase_config_settings(osv.osv_memory): help="""Allow to configure warnings on products and trigger them when a user wants to purchase a given product or a given supplier. Example: Product: this product is deprecated, do not purchase more than 5. Supplier: don't forget to ask for an express delivery."""), - 'module_product_manufacturer': fields.boolean("Define Manufacturers on Products", - help="""This allows you to define the following for a product: - * Manufacturer - * Manufacturer Product Name - * Manufacturer Product Code - * Product Attributes. - This installs the module product_manufacturer."""), + 'module_purchase_double_validation': fields.boolean("Two Levels of Approval", help="""Provide a double validation mechanism for purchases exceeding minimum amount. This installs the module purchase_double_validation."""), @@ -89,5 +83,16 @@ class account_config_settings(osv.osv_memory): implied_group='purchase.group_analytic_accounting', help="Allows you to specify an analytic account on purchase orders."), } +class stock_config_settings(osv.osv_memory): + _inherit = 'stock.config.settings' + _columns = { + 'module_product_manufacturer': fields.boolean("Define Manufacturers on Products", + help="""This allows you to define the following for a product: + * Manufacturer + * Manufacturer Product Name + * Manufacturer Product Code + * Product Attributes. + This installs the module product_manufacturer."""), + } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/purchase/res_config_view.xml b/addons/purchase/res_config_view.xml index 575863fddc4..3b6acff5340 100644 --- a/addons/purchase/res_config_view.xml +++ b/addons/purchase/res_config_view.xml @@ -15,7 +15,7 @@ - + @@ -23,9 +23,8 @@ - - - + + @@ -58,6 +57,22 @@ + + + stock settings + stock.config.settings + form + + + + + + + + + + + diff --git a/addons/stock/res_config_view.xml b/addons/stock/res_config_view.xml index 7d17d9eec50..6929154986c 100644 --- a/addons/stock/res_config_view.xml +++ b/addons/stock/res_config_view.xml @@ -14,27 +14,33 @@ - - + + + - + - - - - - + + + + + + - - - - - - + + + + + + + - + + + + From ed652905be9c3ae71fe613b2bee005a54539a9b3 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Thu, 7 Jun 2012 12:29:39 +0530 Subject: [PATCH 04/12] [IMP] set the view make make readonly false when plugins are installed and do the same when lead and claims are configured. bzr revid: nco@tinyerp.com-20120607065939-72dz9tsmc318u53k --- addons/base_setup/base_setup_views.xml | 10 ++--- addons/crm_claim/res_config_view.xml | 2 +- addons/sale/res_config_view.xml | 60 +++++++++++++------------- 3 files changed, 35 insertions(+), 37 deletions(-) diff --git a/addons/base_setup/base_setup_views.xml b/addons/base_setup/base_setup_views.xml index 0692b4f651c..26019e556f9 100644 --- a/addons/base_setup/base_setup_views.xml +++ b/addons/base_setup/base_setup_views.xml @@ -51,7 +51,7 @@