From 59041f17806ab59fe175397323d35247f3ab1384 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 10 Dec 2020 17:37:33 +0100 Subject: [PATCH] hr_timesheet_invoice: Permit modification of invoiced timesheet lines The existing code wouldn't even permit to remove the invoice association in case the invoice is cancelled... --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index cc68c73ff7e..44bc7eb2d7c 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -126,7 +126,7 @@ class account_analytic_line(osv.osv): } def write(self, cr, uid, ids, vals, context=None): - self._check_inv(cr, uid, ids, vals) + #self._check_inv(cr, uid, ids, vals) return super(account_analytic_line,self).write(cr, uid, ids, vals, context=context)