[IMP,FIX]: crm: Added domain in section for calendar and fixed problem of rdates in unlink meetings

bzr revid: rpa@tinyerp.com-20100101102313-qief8nq5tyh7mbnl
This commit is contained in:
rpa (Open ERP) 2010-01-01 15:53:13 +05:30
parent 739da8ad6d
commit 2b65916f36
2 changed files with 3 additions and 2 deletions

View File

@ -271,7 +271,7 @@ class crm_meeting(osv.osv):
date_new = time.strftime("%Y-%m-%d %H:%M:%S", \
time.strptime(str(str(id).split('-')[1]), "%Y%m%d%H%M%S"))
for record in self.read(cr, uid, [common.caldevIDs2readIDs(id)], \
['date', 'rdates', 'rrule', 'exdate']):
['date', 'rrule', 'exdate']):
if record['rrule']:
exdate = (record['exdate'] and (record['exdate'] + ',' ) or '') + \
''.join((re.compile('\d')).findall(date_new)) + 'Z'

View File

@ -41,7 +41,8 @@
<form string="Meetings Form">
<group colspan="4" col="6">
<field name="name" select="1" string="Title"/>
<field name="section_id" widget="selection"/>
<field name="section_id" widget="selection"
string="Calendar" domain="[('calendar','=',True)]"/>
<field name="user_id" select="2" string="Responsible" required="1"/>
<newline/>
<field name="date" string="Meeting Date" required="1"/>