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

« back to all changes in this revision

Viewing changes to consumption_calculation/wizard/wizard_import_fmc.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:
51
51
        """
52
52
    }
53
53
    
54
 
    def default_get(self, cr, uid, fields, context={}):
 
54
    def default_get(self, cr, uid, fields, context=None):
55
55
        '''
56
56
        Set rmc_id with the active_id value in context
57
57
        '''
64
64
            
65
65
        return res
66
66
    
67
 
    def import_file(self, cr, uid, ids, context={}):
 
67
    def import_file(self, cr, uid, ids, context=None):
68
68
        '''
69
69
        Import file
70
70
        '''
 
71
        if context is None:
 
72
            context = {}
71
73
        product_obj = self.pool.get('product.product')
72
74
        line_obj = self.pool.get('monthly.review.consumption.line')
73
75
           
144
146
                'view_id': [view_id],
145
147
                }
146
148
        
147
 
    def close_import(self, cr, uid, ids, context={}):
 
149
    def close_import(self, cr, uid, ids, context=None):
148
150
        '''
149
151
        Return to the initial view
150
152
        '''