diff --git a/report/scop_contribution_report.py b/report/scop_contribution_report.py index 0e06a3cb5f787de025c944c7cbf6f2ed57230e76..2240a5241308a8f70e88fad13b4b8271779bcbc1 100644 --- a/report/scop_contribution_report.py +++ b/report/scop_contribution_report.py @@ -1,10 +1,14 @@ # © 2022 Le Filament (<http://www.le-filament.com>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +import logging + from psycopg2.extensions import AsIs from odoo import api, fields, models, tools +_logger = logging.getLogger(__name__) + class ScopContributionReport(models.Model): _name = "scop.contribution.report" @@ -146,6 +150,7 @@ class ScopContributionReport(models.Model): "CREATE or REPLACE VIEW %s as (%s)", (AsIs(self._table), AsIs(self._query())), ) + self._set_ro_table() # ------------------------------------------------------ # Computed fields