From c95364560771ff3f6e497f4e5d7d3cf323a4c334 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Fri, 11 Aug 2017 09:55:13 +0200 Subject: [PATCH] [IMP] sale_timesheet: strenghten test --- addons/sale_timesheet/tests/test_timesheet_revenue.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/sale_timesheet/tests/test_timesheet_revenue.py b/addons/sale_timesheet/tests/test_timesheet_revenue.py index ee2a2268f8a..af7d1f6dbda 100644 --- a/addons/sale_timesheet/tests/test_timesheet_revenue.py +++ b/addons/sale_timesheet/tests/test_timesheet_revenue.py @@ -131,6 +131,8 @@ class TestSaleTimesheet(TestSale): 'project_id': task_ordered.project_id.id, }) + # check we don't compare apples and pears + self.assertEquals(timesheet1.company_currency_id, sale_order.currency_id, 'Currencies should not differ (%s vs %s)' % (timesheet1.company_currency_id.name, sale_order.currency_id.name)) # check theorical revenue self.assertEquals(timesheet1.timesheet_invoice_type, 'billable_time', "Billable type on task from delivered service should be 'billabe time'") self.assertEquals(timesheet2.timesheet_invoice_type, 'billable_time', "Billable type on task from delivered service should be 'billabe time'")