From 07b88cb8da2d6e3d9a13fc5afff69c1b95c14a0a Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Thu, 23 Sep 2010 14:47:34 +0530 Subject: [PATCH 1/4] [FIX]: add the missing field to the payslip model bzr revid: mga@tinyerp.com-20100923091734-7niyoorw5hmryo58 --- addons/hr_payroll/hr_payroll.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py index 7a6eaf14b58..48ffc1f6b20 100644 --- a/addons/hr_payroll/hr_payroll.py +++ b/addons/hr_payroll/hr_payroll.py @@ -784,6 +784,7 @@ class hr_payslip(osv.osv): 'contract_id':fields.many2one('hr.contract', 'Contract', required=False), 'igross': fields.float('Calculaton Field', readonly=True, digits=(16, 2), help="Calculation field used for internal calculation, do not place this on form"), 'inet': fields.float('Calculaton Field', readonly=True, digits=(16, 2), help="Calculation field used for internal calculation, do not place this on form"), + 'period_id': fields.many2one('account.period', 'Force Period', domain=[('state','<>','done')], help="Keep empty to use the period of the validation(Payslip) date."), } _defaults = { 'date': lambda *a: time.strftime('%Y-%m-%d'), From cc4ee88766573321b927c3cbf061d303856240ce Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Thu, 23 Sep 2010 15:30:36 +0530 Subject: [PATCH 2/4] [FIX]: solve the usability issue in psyslip view bzr revid: mga@tinyerp.com-20100923100036-mtbc9m87t39fpya9 --- addons/hr_payroll/hr_payroll_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_payroll/hr_payroll_view.xml b/addons/hr_payroll/hr_payroll_view.xml index fbfa2d1aad5..d833612e383 100644 --- a/addons/hr_payroll/hr_payroll_view.xml +++ b/addons/hr_payroll/hr_payroll_view.xml @@ -500,12 +500,12 @@ +