fix: user with invoice role not able to submit (#19555)

fix for a user not having timesheet submit privelige (e.g. a shared timesheet from another department) not being able to submit because of linked fields
This commit is contained in:
RJPvT
2019-11-13 06:17:40 +01:00
committed by Nabin Hait
parent 92116abd92
commit e1bc0a1028

View File

@@ -350,7 +350,7 @@ class SalesInvoice(SellingController):
timesheet.calculate_percentage_billed()
timesheet.flags.ignore_validate_update_after_submit = True
timesheet.set_status()
timesheet.save()
timesheet.save(ignore_permissions=True)
def update_time_sheet_detail(self, timesheet, args, sales_invoice):
for data in timesheet.time_logs: