~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to res_currency_tables/wizard/import_currencies.py

  • Committer: jf
  • Date: 2012-03-27 11:51:16 UTC
  • Revision ID: jf@ubuntu-20120327115116-z2hekln8h4rk8ssy
[FIX] context None

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        'rate_date': lambda *a: datetime.datetime.today().strftime('%Y-%m-%d')
40
40
    }
41
41
    
42
 
    def _check_periods(self, cr, uid, rate_date, context={}):
 
42
    def _check_periods(self, cr, uid, rate_date, context=None):
43
43
        period_obj = self.pool.get('account.period')
44
44
        period_ids = period_obj.search(cr, uid, [('date_start','<=',rate_date),('date_stop','>=',rate_date)])
45
45
        if not period_ids: