Skip to content
Snippets Groups Projects
Commit e0c922c8 authored by Leonardo Pavan Rocha's avatar Leonardo Pavan Rocha
Browse files

[IMP] google_calendar, hr_holidays, hr_work_entry_holidays: update query count


In 2685472 new computed fields were added in calendar_event. This commit
updates the query counter tests that were failing.

task-2685472

closes odoo/odoo#79654

Related: odoo/upgrade#3182
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 1744a800
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ class TestSyncOdoo2Google(TestSyncGoogle):
})
partner_model = self.env.ref('base.model_res_partner')
partner = self.env['res.partner'].search([], limit=1)
with self.assertQueryCount(__system__=617):
with self.assertQueryCount(__system__=618):
events = self.env['calendar.event'].create([{
'name': "Event %s" % (i),
'start': datetime(2020, 1, 15, 8, 0),
......@@ -102,7 +102,7 @@ class TestSyncOdoo2Google(TestSyncGoogle):
})
partner_model = self.env.ref('base.model_res_partner')
partner = self.env['res.partner'].search([], limit=1)
with self.assertQueryCount(__system__=72):
with self.assertQueryCount(__system__=73):
event = self.env['calendar.event'].create({
'name': "Event",
'start': datetime(2020, 1, 15, 8, 0),
......
......@@ -323,7 +323,7 @@ class TestCompanyLeave(TransactionCase):
})
company_leave._compute_date_from_to()
with self.assertQueryCount(__system__=249, admin=865): # 247 community
with self.assertQueryCount(__system__=250, admin=865): # 247 community
# Original query count: 1987
# Without tracking/activity context keys: 5154
company_leave.action_validate()
......
......@@ -31,7 +31,7 @@ class TestWorkEntryHolidaysPerformance(TestWorkEntryHolidaysBase):
self.richard_emp.generate_work_entries(date(2018, 1, 1), date(2018, 1, 2))
leave = self.create_leave(datetime(2018, 1, 1, 7, 0), datetime(2018, 1, 1, 18, 0))
with self.assertQueryCount(__system__=91, admin=92):
with self.assertQueryCount(__system__=92, admin=93):
leave.action_validate()
leave.action_refuse()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment