From cafe5a4baa16a95a3aa60940b947a35b98c3edce Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Fri, 1 Apr 2011 11:15:12 +0530 Subject: [PATCH] [FIX] payroll: structure on payslip readonly bzr revid: mra@mra-laptop-20110401054512-s2s2pfu2miq9xgw9 --- 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 64ffb3de914..100153d9e99 100644 --- a/addons/hr_payroll/hr_payroll.py +++ b/addons/hr_payroll/hr_payroll.py @@ -523,7 +523,7 @@ class hr_payslip(osv.osv): return 0.0 _columns = { - 'struct_id':fields.related('contract_id', 'struct_id', type='many2one', relation='hr.payroll.structure', string='Structure', store=True, ), + 'struct_id':fields.related('contract_id', 'struct_id', readonly=True, type='many2one', relation='hr.payroll.structure', string='Structure', store=True, ), 'register_id':fields.many2one('hr.payroll.register', 'Register', required=False, readonly=True, states={'draft': [('readonly', False)]}), 'name':fields.char('Name', size=64, required=False, readonly=True, states={'draft': [('readonly', False)]}), 'number':fields.char('Number', size=64, required=False, readonly=True, states={'draft': [('readonly', False)]}),