mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: fix access security issue un check document required
This commit is contained in:
@@ -728,7 +728,10 @@ class ResPartner(models.Model):
|
||||
)
|
||||
if not self.env.context.get("avoid_document_restriction") and any(
|
||||
[
|
||||
self.env["res.company"].browse(company_id).document_partner_required
|
||||
self.env["res.company"]
|
||||
.sudo()
|
||||
.browse(company_id)
|
||||
.document_partner_required
|
||||
for company_id in company_ids
|
||||
]
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user