Skip to content
Extraits de code Groupes Projets

[FIX] fix 401 when superadmin export cdc

Fusionnées
Julien - Le Filamentrequested to merge
16.0-fix-401 into 16.0
1 open thread
1 file
+ 1
2
Comparer les modifications
  • Côte à côte
  • En ligne
+ 1
2
@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
import werkzeug
from odoo import http, _
from odoo import _, http
from odoo.exceptions import AccessError
from odoo.http import request
@@ -230,7 +230,6 @@ class CustomerPortal(CustomerPortal):
"""
operation = request.env["acc.operation"].sudo().browse(int(operation_id))
try:
if (
request.env.user.commercial_partner_id.id
not in operation.partner_role_ids.partner_id.ids
Chargement en cours