Skip to content

Commit

Permalink
[FIX] logistics_planning_base: partner readonly check fails for reado…
Browse files Browse the repository at this point in the history
…nly users

If a user that have read-only access to logistics schedules loads any
view that computes partner_readonly technical field, an error is raised.

Addon logistics_planning_mgmt_weight adds a menu for this limited access
users, so an error is raised. This fixes it.
  • Loading branch information
dalonsod committed Jun 28, 2024
1 parent 7cdb414 commit 4a307fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion logistics_planning_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
''',
'author': 'Solvos',
'license': 'LGPL-3',
'version': '13.0.1.5.0',
'version': '13.0.1.5.1',
'category': 'stock',
'website': 'https://github.com/solvosci/slv-stock',
'depends': ["stock", "base_view_inheritance_extension"],
Expand Down
1 change: 1 addition & 0 deletions logistics_planning_base/models/logistics_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ class LogisticsSchedule(models.Model):

partner_readonly = fields.Boolean(
compute="_compute_partner_readonly",
compute_sudo=True,
string="Is partner readonly",
help="""
Technical field that helps us determining whether a partner can be
Expand Down

0 comments on commit 4a307fb

Please sign in to comment.