[IMP]: crm: Selected Proper section for imported calendar events. Change wrong name in meetings view
bzr revid: rpa@tinyerp.com-20091230051820-6uv3uz5pvntgxugn
This commit is contained in:
@@ -184,6 +184,8 @@ class crm_meeting(osv.osv):
|
||||
alarm_obj.__attribute__.update(crm_alarm.__attribute__)
|
||||
vals = event_obj.import_ical(cr, uid, file_content)
|
||||
for val in vals:
|
||||
section_id = self.pool.get('crm.case.section').search(cr, uid, [('name', 'like', 'Meeting%')])[0]
|
||||
val.update({'section_id' : section_id})
|
||||
is_exists = common.uid2openobjectid(cr, val['id'], self._name )
|
||||
val.pop('id')
|
||||
if val.has_key('create_date'): val.pop('create_date')
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<field name="rdates" colspan="4" nolabel="1" readonly="True"/>
|
||||
<newline/>
|
||||
<field name="exrule" string="Exception Rules" colspan="4"/>
|
||||
<separator string="Exceprion Dates" colspan="4"/>
|
||||
<separator string="Exception Dates" colspan="4"/>
|
||||
<field name="exdate" nolabel="1" colspan="4" />
|
||||
</page>
|
||||
</notebook>
|
||||
|
||||
Reference in New Issue
Block a user