Skip to content

Commit

Permalink
Merge pull request #319 from Vauxoo/15.0
Browse files Browse the repository at this point in the history
Syncing from upstream Vauxoo/addons-vauxoo (15.0)
  • Loading branch information
bt-admin authored Apr 15, 2024
2 parents 2bdc153 + c84e8fe commit 9bcee00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default_warehouse_from_sale_team/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"website": "http://www.vauxoo.com",
"license": "LGPL-3",
"category": "Inventory/Inventory",
"version": "15.0.1.0.0",
"version": "15.0.1.0.1",
"depends": [
"sale_stock",
"purchase_requisition",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class ProcurementGroup(models.Model):
@api.model
def _search_rule(self, route_ids, packaging_id, product_id, warehouse_id, domain):
"""Grant access to provided warehouse if it's not allowed to the current user"""
if warehouse_id._access_unallowed_current_user_salesteams():
if warehouse_id and warehouse_id._access_unallowed_current_user_salesteams():
warehouse_id = warehouse_id.sudo()
return super()._search_rule(route_ids, packaging_id, product_id, warehouse_id, domain)

0 comments on commit 9bcee00

Please sign in to comment.