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

« back to all changes in this revision

Viewing changes to account_period_closing_level/account_period.py

  • Committer: jf
  • Date: 2012-03-27 14:38:50 UTC
  • Revision ID: jf@tempo4-20120327143850-e41gh5zyjam3un11
[FIX] Default values

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        
47
47
        # Some verifications
48
48
        if not context:
49
 
            context={}
 
49
            context = {}
50
50
        if isinstance(ids, (int, long)):
51
51
            ids = [ids]
52
52
        
155
155
 
156
156
    _order = 'date_start, number'
157
157
 
158
 
    def create(self, cr, uid, vals, context={}):
 
158
    def create(self, cr, uid, vals, context=None):
159
159
        if not context:
160
160
            context = {}
161
161
 
170
170
        'number': lambda *a: 16, # Because of 15 period in MSF, no period would use 16 number.
171
171
    }
172
172
 
173
 
    def button_overdue_invoice(self, cr, uid, ids, context={}):
 
173
    def button_overdue_invoice(self, cr, uid, ids, context=None):
174
174
        """
175
175
        Open a view that display overdue invoices for this period
176
176
        """
177
177
        # Some verifications
178
178
        if not context:
179
 
            context={}
 
179
            context = {}
180
180
        if isinstance(ids, (int, long)):
181
181
            ids = [ids]
182
182