[IMP]: CRM: Added wizard to change RRule Details in caldav data

bzr revid: rpa@tinyerp.com-20091223140616-u48udylf71il131j
This commit is contained in:
rpa (Open ERP)
2009-12-23 19:36:16 +05:30
parent dc1a77e735
commit 888e37f56d
3 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -101,7 +101,10 @@
<!-- <separator string="Freebusy Value" colspan="4"/>-->
<!-- <field name="freebusy" colspan="4" nolabel="1"/>-->
<!-- <separator string="Recurrency Details" colspan="4"/>-->
<group string="Recurrency Details" col="4" colspan="4">
<group string="Recurrency Details" col="5" colspan="4">
<button string="Change RRule"
name="%(caldav.action_view_caldav_set_rrule_wizard)d"
icon="gtk-save-as" type="action" colspan="4"/>
<group col="1" colspan="2">
<separator string="Recurrenet Rule" />
<field name="rrule" nolabel="1" />
+4
View File
@@ -8,5 +8,9 @@
id="wizard_crm_cal_export" multi="True"
/>
<wizard string="Set RRULE" model="crm.case"
name="caldav.set.rrule" id="wizard_crm_set_rrule"
/>
</data>
</openerp>
+2 -2
View File
@@ -110,7 +110,7 @@ class crm_case(osv.osv):
of date/time exceptions for arecurring calendar component."),
'exrule' : fields.text('Exception Rule', help="defines a rule or repeating pattern\
for anexception to a recurrence set"),
'rrule' : fields.text('Recurrent Rule'),
'rrule' : fields.text('Recurrent Rule', readonly=True),
'rdates' : fields.function(_get_rdates, method=True, string='Recurrent Dates', \
store=True, type='text'),
'attendees': fields.many2many('crm.caldav.attendee', 'crm_attendee_rel', 'case_id', \
@@ -214,7 +214,7 @@ class crm_case(osv.osv):
limit, order, context, count)
return res
def write(self, cr, uid, ids, vals, context=None):
def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True):
new_ids = []
for id in ids:
id = common.caldevIDs2readIDs(id)