Fix test on deleting invoiced timesheet line
This commit is contained in:
1 parent
edd9d11ece
commit
4b929ed86e
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
Reference in new issue
Block a user