From dfa4806290c120191fe826570d071c72eec10e64 Mon Sep 17 00:00:00 2001 From: Benoit Guillot Date: Tue, 10 Jul 2012 21:54:38 +0200 Subject: [PATCH] [FIX] remove useless code bzr revid: benoit.guillot@akretion.com.br-20120710195438-m7k2kkwbukzmc3bs --- addons/sale/res_config.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index 94c92574edd..3dcbcfe8257 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -96,15 +96,6 @@ class sale_configuration(osv.osv_memory): 'module_project_mrp': fields.boolean("Project MRP"), 'module_project': fields.boolean("Project"), } - def _check_decimal(self, cr, uid, ids, context=None): - for decimal in self.browse(cr, uid, ids, context=context): - if decimal.decimal_precision > 20: - return False - return True - - _constraints = [ - (_check_decimal, 'Digits must be between 0 to 20 ', ['decimal_precision']), - ] def default_get(self, cr, uid, fields, context=None): ir_model_data = self.pool.get('ir.model.data')