~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:46:29 UTC
  • Revision ID: juan.munoz@clearcorp.co.cr-20110503204629-u5tigqrlpdiaqzro
[ADD] cronjob for vacation acumulator

Show diffs side-by-side

added added

removed removed

Lines of Context:
2305
2305
                                        debug(plus_one)
2306
2306
                                        self.pool.get('hr.contract').write(cr, uid, contract_id, {'accumulated_holidays':plus_one}, None)
2307
2307
                        
2308
 
                        else today > date_start and today.day == date_start.day:
 
2308
                        elif today > date_start and today.day == date_start.day:
2309
2309
                                        plus_one = contract.accumulated_holidays + 1
2310
2310
                                        debug(plus_one)
2311
2311
                                        self.pool.get('hr.contract').write(cr, uid, contract_id, {'accumulated_holidays':plus_one}, None)