Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream Vauxoo/addons-vauxoo (16.0) #320

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "16.0.1.0.0",
"version": "16.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)
Loading