+ {% if owner_control.value == "False" or owner_control.value == "True" and user in owners or user.is_superuser or not location %}
+ {% if roles.stock_location.add %}
+
+ {% endif %}
+ {% endif %}
+ {% if barcodes %}
+
+ {% if location %}
+
-
- {% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %}
- {% if owner_control.value == "True" %}
- {% authorized_owners location.owner as owners %}
-
- {% if location and not user in owners and not user.is_superuser %}
-
- {% trans "You are not in the list of owners of this location. This stock location cannot be edited." %}
+
+ {% if owner_control.value == "False" or owner_control.value == "True" and user in owners or user.is_superuser %}
+ {% if roles.stock.change %}
+
- {% if owner_control.value == "False" or owner_control.value == "True" and user in owners or user.is_superuser or not location %}
- {% if roles.stock_location.add %}
-
- {% endif %}
- {% endif %}
- {% if barcodes %}
-
- {% if location %}
-
-{% block location_content %}
+{% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %}
+{% if owner_control.value == "True" %}
+ {% authorized_owners location.owner as owners %}
+
+ {% if location and not user in owners and not user.is_superuser %}
+
+ {% trans "You are not in the list of owners of this location. This stock location cannot be edited." %}
+