Skip to content
Extraits de code Groupes Projets
Valider ecf5eded rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] set RO access for scop_contribution view

parent c84ab407
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# © 2022 Le Filament (<http://www.le-filament.com>) # © 2022 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from psycopg2.extensions import AsIs from psycopg2.extensions import AsIs
from odoo import api, fields, models, tools from odoo import api, fields, models, tools
_logger = logging.getLogger(__name__)
class ScopContributionReport(models.Model): class ScopContributionReport(models.Model):
_name = "scop.contribution.report" _name = "scop.contribution.report"
...@@ -146,6 +150,7 @@ class ScopContributionReport(models.Model): ...@@ -146,6 +150,7 @@ class ScopContributionReport(models.Model):
"CREATE or REPLACE VIEW %s as (%s)", "CREATE or REPLACE VIEW %s as (%s)",
(AsIs(self._table), AsIs(self._query())), (AsIs(self._table), AsIs(self._query())),
) )
self._set_ro_table()
# ------------------------------------------------------ # ------------------------------------------------------
# Computed fields # Computed fields
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter