Skip to content

Commit

Permalink
[RFC]purchase_portal: refact multiproperty features
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Jan 23, 2025
1 parent 3d7c8c0 commit d2a2731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purchase_portal/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def portal_my_new_purchase_requests_detail(self, purchase_request=None, access_t

values = self._purchase_request_get_page_view_values(purchase_request_sudo, access_token, **kw)

allowed_pms_property_ids = request.env.user.get_active_property_ids()
allowed_pms_property_ids = request.env.user.pms_property_ids.ids
if allowed_pms_property_ids:
allowed_pms_property_ids = request.env['pms.property'].browse(allowed_pms_property_ids).filtered(lambda x: x.company_id == request.env.company)

Expand Down

0 comments on commit d2a2731

Please sign in to comment.