From 5146542ccb5ae6310d94dbfc8dcc2e136fb268ff Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Tue, 29 Mar 2011 12:31:25 +0530 Subject: [PATCH] [FIX] payroll: expression_result make it required=false for now will work with attrs if python code bzr revid: mra@mra-laptop-20110329070125-qzk5o0zdcogvmci3 --- addons/hr_payroll/hr_payroll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py index 131f6ca58b9..ed1e4b9ae39 100644 --- a/addons/hr_payroll/hr_payroll.py +++ b/addons/hr_payroll/hr_payroll.py @@ -1360,7 +1360,7 @@ class hr_salary_rule(osv.osv): ],'Company Amount Type', select=True), 'contribute_per':fields.float('Company Contribution', digits=(16, 4), help='Define Company contribution ratio 1.00=100% contribution.'), 'company_contribution':fields.boolean('Company Contribution',help="This rule has Company Contributions."), - 'expression_result':fields.char('Expression based on',size=1024, required=True, readonly=False, help='result will be affected to a variable'), + 'expression_result':fields.char('Expression based on', size=1024, required=False, readonly=False, help='result will be affected to a variable'), } _defaults = { 'python_compute': '''# basic\n# employee: hr.employee object or None\n# contract: hr.contract object or None\n\nresult = basic * 0.10''',