mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-25 04:12:05 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.tests import common
|
||||
|
|
@ -21,13 +20,13 @@ class TestRecurrentEvent(common.TransactionCase):
|
|||
'duration': 1.0,
|
||||
'name': 'Test Meeting',
|
||||
'recurrency': True,
|
||||
'rrule_type': 'daily'
|
||||
'rrule_type': 'daily',
|
||||
})
|
||||
# I search for all the recurrent meetings
|
||||
meetings_count = self.CalendarEvent.with_context({'virtual_id': True}).search_count([
|
||||
('start', '>=', '2011-03-13'), ('stop', '<=', '2011-05-13')
|
||||
])
|
||||
self.assertEqual(meetings_count, 5, 'Recurrent daily meetings are not created !')
|
||||
self.assertEqual(meetings_count, 5, 'Recurrent daily meetings are not created!')
|
||||
|
||||
def test_recurrent_meeting2(self):
|
||||
# I create a weekly meeting till a particular end date.
|
||||
|
|
@ -45,11 +44,11 @@ class TestRecurrentEvent(common.TransactionCase):
|
|||
'wed': True,
|
||||
'name': 'Review code with programmer',
|
||||
'recurrency': True,
|
||||
'rrule_type': 'weekly'
|
||||
'rrule_type': 'weekly',
|
||||
})
|
||||
|
||||
# I search for all the recurrent weekly meetings.
|
||||
meetings_count = self.CalendarEvent.search_count([
|
||||
('start', '>=', '2011-03-13'), ('stop', '<=', '2011-05-13')
|
||||
])
|
||||
self.assertEqual(meetings_count, 10, 'Recurrent weekly meetings are not created !')
|
||||
self.assertEqual(meetings_count, 10, 'Recurrent weekly meetings are not created!')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue