Revert "[FIX] pms: permission error"

This reverts commit 5bb47e1e35.
This commit is contained in:
Darío Lodeiros
2021-02-19 10:47:37 +01:00
parent 5bb47e1e35
commit 6f14b13bf2
2 changed files with 21 additions and 30 deletions

View File

@@ -31,15 +31,6 @@ class ResUsers(models.Model):
)
company_id = fields.Many2one(domain="[('id','in',company_ids)]")
active_property_ids = fields.Many2many(
comodel_name="pms.property", compute="_compute_active_property_ids", store=True
)
@api.depends("pms_property_ids")
def _compute_active_property_ids(self):
for rec in self:
rec.active_property_ids = [(6, 0, rec.get_active_property_ids())]
@api.model
def get_active_property_ids(self):
# TODO: Require performance test and security (dont allow any property id)