[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:
rpa (Open ERP)
2009-12-30 10:48:20 +05:30
parent 4b560a5f40
commit aa67e414d2
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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')
+1 -1
View File
@@ -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>