[FIX] sale_timesheet: avoid access error on recomputing invoice_type

This commit is contained in:
jem-odoo
2018-09-19 11:35:06 +02:00
parent fa12ae4009
commit 4739d6067d
+1 -1
View File
@@ -18,7 +18,7 @@ class AccountAnalyticLine(models.Model):
('billable_time', 'Billable Time'),
('billable_fixed', 'Billable Fixed'),
('non_billable', 'Non Billable'),
('non_billable_project', 'No task found')], string="Billable Type", compute='_compute_timesheet_invoice_type', store=True, readonly=True)
('non_billable_project', 'No task found')], string="Billable Type", compute='_compute_timesheet_invoice_type', compute_sudo=True, store=True, readonly=True)
timesheet_invoice_id = fields.Many2one('account.invoice', string="Invoice", readonly=True, copy=False, help="Invoice created from the timesheet")
@api.multi