mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Make sure value is always set for computed fields
(without these a CacheMiss error is thrown by odoo)
This commit is contained in:
committed by
Alexis de Lattre
parent
2cb652025a
commit
36b7e5c897
@@ -46,6 +46,8 @@ class IrActionsReport(models.Model):
|
|||||||
)
|
)
|
||||||
def _compute_py3o_report_not_available(self):
|
def _compute_py3o_report_not_available(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
|
rec.is_py3o_report_not_available = False
|
||||||
|
rec.msg_py3o_report_not_available = ""
|
||||||
if not rec.report_type == "py3o":
|
if not rec.report_type == "py3o":
|
||||||
continue
|
continue
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user