chore: Update company.py (#38660)

chore: Update company.py
This commit is contained in:
hyaray 2023-12-22 11:11:51 +08:00 committed by GitHub
parent 2dc49c834a
commit 0773f66feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ class Company(NestedSet):
"parent_warehouse": "{0} - {1}".format(_("All Warehouses"), self.abbr) "parent_warehouse": "{0} - {1}".format(_("All Warehouses"), self.abbr)
if not wh_detail["is_group"] if not wh_detail["is_group"]
else "", else "",
"warehouse_type": wh_detail["warehouse_type"] if "warehouse_type" in wh_detail else None, "warehouse_type": wh_detail.get("warehouse_type"),
} }
) )
warehouse.flags.ignore_permissions = True warehouse.flags.ignore_permissions = True