Fix test on deleting invoiced timesheet line

This commit is contained in:
Cédric Krier committed 2013-03-22 18:21:25 +01:00
1 parent edd9d11ece
commit 4b929ed86e
1 file changed
+1 -1
+1 -1
View File
@@ -30,6 +30,6 @@ class TimesheetLine:
@classmethod
def delete(cls, records):
if any(r.timesheet_line for r in records):
if any(r.invoice_line for r in records):
cls.raise_user_error('delete_invoiced_line')
super(TimesheetLine, cls).delete(records)