"""
Get Default value for Name field.
"""
- if not context:
+ if context is None:
context = {}
+ else:
+ context= context.copy()
+ context['uid'] = uid
model = context.get('model', 'basic.calendar')
model_obj = self.pool.get(model)
res = super(calendar_event_export, self).default_get( cr, uid, fields, context=context)
@param ids: List of calendar event import’s IDs
@return: dictionary of calendar evet import window with Import successful msg.
"""
+ if context is None:
+ context = {}
+ else:
+ context = context.copy()
+ context['uid'] = uid
for data in self.read(cr, uid, ids):
model = data.get('model', 'basic.calendar')
@return: dictionary of calendar evet subscribe window with Import successful msg.
"""
global cnt
+ if context is None:
+ context = {}
+ else:
+ context = context.copy()
+ context['uid'] = uid
+
for data in self.read(cr, uid, ids):
try:
f = urllib.urlopen(data['url_path'])