[IMP] caldav
bzr revid: hmo@tinyerp.com-20100412123110-6e76f9icz3up62jm
This commit is contained in:
parent
dd61fff760
commit
5227249134
|
@ -36,7 +36,7 @@ class calendar_event_export(osv.osv_memory):
|
|||
"""
|
||||
Get Default value for file_path field.
|
||||
"""
|
||||
model = context.get('model', 'document.directory')
|
||||
model = context.get('model', 'basic.calendar')
|
||||
model_obj = self.pool.get(model)
|
||||
|
||||
calendar = model_obj.export_cal(cr, uid, context['active_ids'], context)
|
||||
|
@ -47,7 +47,7 @@ class calendar_event_export(osv.osv_memory):
|
|||
"""
|
||||
Get Default value for Name field.
|
||||
"""
|
||||
model = context.get('model', 'document.directory')
|
||||
model = context.get('model', 'basic.calendar')
|
||||
model_obj = self.pool.get(model)
|
||||
calendar = model_obj.export_cal(cr, uid, context['active_ids'], context)
|
||||
res = super(calendar_event_export, self).default_get( cr, uid, fields, context=context)
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
</record>
|
||||
|
||||
|
||||
<!-- <act_window id="action_calendar_event_export_values"
|
||||
<act_window id="action_calendar_event_export_values"
|
||||
key2="client_action_multi" name="Export .ics File"
|
||||
res_model="calendar.event.export" src_model="document.directory"
|
||||
view_mode="form" target="new" view_type="form" /> -->
|
||||
res_model="calendar.event.export" src_model="basic.calendar"
|
||||
view_mode="form" target="new" view_type="form" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -44,7 +44,7 @@ class calendar_event_import(osv.osv_memory):
|
|||
"""
|
||||
|
||||
for data in self.read(cr, uid, ids):
|
||||
model = data.get('model', 'document.directory')
|
||||
model = data.get('model', 'basic.calendar')
|
||||
model_obj = self.pool.get(model)
|
||||
context.update({'model': model})
|
||||
data_obj = self.pool.get('ir.model.data')
|
||||
|
|
|
@ -46,10 +46,10 @@
|
|||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<!-- <act_window id="action_calendar_event_import_values"
|
||||
<act_window id="action_calendar_event_import_values"
|
||||
key2="client_action_multi" name="Import .ics File"
|
||||
res_model="calendar.event.import" src_model="document.directory"
|
||||
view_mode="form" target="new" view_type="form" /> -->
|
||||
res_model="calendar.event.import" src_model="basic.calendar"
|
||||
view_mode="form" target="new" view_type="form" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -51,10 +51,10 @@ class calendar_event_subscribe(osv.osv_memory):
|
|||
f.close()
|
||||
except Exception,e:
|
||||
raise osv.except_osv(_('Error!'), _('Please provide Proper URL !'))
|
||||
model = data.get('model', 'document.directory')
|
||||
model = data.get('model', 'basic.calendar')
|
||||
model_obj = self.pool.get(model)
|
||||
context.update({'url': data['url_path'],
|
||||
'model': data.get('model', 'document.directory')})
|
||||
'model': data.get('model', 'basic.calendar')})
|
||||
vals = model_obj.import_cal(cr, uid, base64.encodestring(caldata), \
|
||||
context['active_id'], context)
|
||||
if vals:
|
||||
|
|
|
@ -46,10 +46,10 @@
|
|||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<!-- <act_window id="action_calendar_event_subscribe_values"
|
||||
<act_window id="action_calendar_event_subscribe_values"
|
||||
key2="client_action_multi" name="Subscribe"
|
||||
res_model="calendar.event.subscribe" src_model="document.directory"
|
||||
view_mode="form" target="new" view_type="form" /> -->
|
||||
res_model="calendar.event.subscribe" src_model="basic.calendar"
|
||||
view_mode="form" target="new" view_type="form" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue