2 I create test cases for Sharing meeting with other calendar clients like sunbird.
4 I start by creating a new Meeting.
6 !record {model: crm.meeting, id: crm_meeting_regardingsharing0}:
7 categ_id: crm.categ_meet2
8 date: !eval time.strftime('%Y-%m-%d 16:04:00')
9 date_deadline: !eval "(datetime.now() + timedelta(1)).strftime('%Y-%m-%d 00:04:00')"
11 email_from: info@balmerinc.be
13 name: Regarding Sharing with other client
14 partner_address_id: base.res_partner_address_1
15 partner_id: base.res_partner_9
17 section_id: crm.section_sales_department
20 I check the export functionality.
22 !python {model: crm.meeting}: |
23 self.export_cal(cr, uid, [ref('crm_meeting_regardingsharing0')], context)
26 context.update({'model':'crm.meeting','active_id': ref('crm_meeting_regardingsharing0')})
28 'date': time.strftime('%Y-%m-%d 16:04:00'),
29 'create_date': time.strftime('%Y-%m-%d 16:04:00'),
30 'date_deadline':time.strftime('%Y-%m-%d 20:20:00'),
31 'id':ref('crm_meeting_regardingsharing0'),
32 'recurrent_id': time.strftime('%Y-%m-%d 50:00:00'),
35 self.check_import(cr, uid, vals, context)