~clearcorp-drivers/openerp-hr-payroll-cr/5.0

« back to all changes in this revision

Viewing changes to hr_payroll_cr/hr_payroll_cr.py

  • Committer: Juan Felipe Muñoz
  • Date: 2011-05-03 20:43:47 UTC
  • Revision ID: juan.munoz@clearcorp.co.cr-20110503204347-83pi3ty1f4bh2mma
[ADD] cronjob for vacation acumulator

Show diffs side-by-side

added added

removed removed

Lines of Context:
2286
2286
                        if month == 2:
2287
2287
                                if  today == 29:
2288
2288
                                
2289
 
                                elif today==28 && contract_id >= 28:
 
2289
                                elif today == 28 and contract_id >= 28:
2290
2290
                                        plus_one = contract.accumulated_holidays + 1
2291
2291
                                        debug(plus_one)
2292
2292
                                        self.pool.get('hr.contract').write(cr, uid, contract_id, {'accumulated_holidays':plus_one}, None)
2295
2295
                                        debug(plus_one)
2296
2296
                                        self.pool.get('hr.contract').write(cr, uid, contract_id, {'accumulated_holidays':plus_one}, None)
2297
2297
                        elif month in months30:
2298
 
                                if today==30 && contract_id >= 30:
 
2298
                                if today==30 and contract_id >= 30:
2299
2299
                                        plus_one = contract.accumulated_holidays + 1
2300
2300
                                        debug(plus_one)
2301
2301
                                        self.pool.get('hr.contract').write(cr, uid, contract_id, {'accumulated_holidays':plus_one}, None)