[IMP]:anonymization:checked if context == NONE then pass the dict.
authorAmit Patel (OpenERP) <apa@tinyerp.com>
Tue, 5 Jun 2012 06:16:29 +0000 (11:46 +0530)
committerAmit Patel (OpenERP) <apa@tinyerp.com>
Tue, 5 Jun 2012 06:16:29 +0000 (11:46 +0530)
bzr revid: apa@tinyerp.com-20120605061629-ulshs2cevdqm0hlf

addons/anonymization/anonymization.py

index 21c000a..b6e4d80 100644 (file)
@@ -289,6 +289,10 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
 
     def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, *args, **kwargs):
         state = self.pool.get('ir.model.fields.anonymization')._get_global_state(cr, uid, context=context)
+        
+        if context is None:
+            context = {}
+        
         step = context.get('step', 'new_window')
 
         res = super(ir_model_fields_anonymize_wizard, self).fields_view_get(cr, uid, view_id, view_type, context, *args, **kwargs)