[IMP] sale_timesheet: strenghten test

This commit is contained in:
Richard Mathot
2017-08-11 09:55:13 +02:00
parent 1fa8680286
commit c953645607
@@ -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'")