~kndati/openerp-invoicing/account_invoicing_5.0

« back to all changes in this revision

Viewing changes to account_invoicing_template/wizard/inv_template_wizard.py

  • Committer: root
  • Date: 2009-06-02 11:03:09 UTC
  • Revision ID: root@erp.kndati.lv-20090602110309-n6i6xbz8i1tsp2zl
Bugfixes release for compatibility with OE 5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                        init_effect_date = signed_date + DateTime.RelativeDateTime(months=rec.intervals, days=-1)
26
26
                elif rec.service.interval_unit == 'years':      
27
27
                        init_effect_date = signed_date + DateTime.RelativeDateTime(months=12*rec.intervals, days=-1)
28
 
                elif rec.service.interval_unit == 'days':       
 
28
                elif rec.service.interval_unit == 'days':
29
29
                        init_effect_date = signed_date + DateTime.RelativeDateTime(days=rec.intervals)
30
30
                elif rec.service.interval_unit == 'weeks':
31
31
                        init_effect_date = signed_date + DateTime.RelativeDateTime(weekday=(DateTime.Monday,0), days=7*rec.intervals-1)