@@ -797,35 +805,48 @@
+
+
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -837,20 +858,25 @@
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
-
+
@@ -920,9 +946,9 @@
'default_use_tool_time':use_tool_time,
'default_reason_for_applying':reason_for_applying,
}"
- attrs="{'invisible': [('assemble_status', '!=', '0')]}"
+ attrs="{'invisible': [('assemble_status', '!=', '0')]}" groups="sf_base.group_sf_mrp_user"
class="btn-primary"/>
-
@@ -937,7 +963,7 @@
-
-
diff --git a/sf_tool_management/wizard/wizard.py b/sf_tool_management/wizard/wizard.py
index 396aa703..9f1a1aae 100644
--- a/sf_tool_management/wizard/wizard.py
+++ b/sf_tool_management/wizard/wizard.py
@@ -41,7 +41,7 @@ class ToolChangeRequirementInformation(models.TransientModel):
replacement_tool_setting_length = fields.Float(string='待换刀具总长度(mm)', required=True)
replacement_extension_length = fields.Float(string='待换刀具伸出长(mm)')
replacement_effective_length = fields.Float(string='待换刀具有效长(mm)')
- replacement_tool_coarse_middle_thin = fields.Selection([("1", "粗"), ('2', '中'), ('3', '精')], requirded=True,
+ replacement_tool_coarse_middle_thin = fields.Selection([("1", "粗"), ('2', '中'), ('3', '精')], required=True,
string='待换刀具粗/中/精', default='3')
replacement_max_lifetime_value = fields.Integer(string='待换刀具最大寿命值(min)')
diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py
index bb2e23e5..06a56386 100644
--- a/sf_warehouse/models/model.py
+++ b/sf_warehouse/models/model.py
@@ -305,8 +305,8 @@ class ShelfLocation(models.Model):
"""
for record in self:
if record.product_sn_id:
- record.product_id = record.product_sn_id.product_id
- record.location_status = '占用'
+ record.sudo().product_id = record.product_sn_id.product_id
+ record.sudo().location_status = '占用'
else:
record.product_id = False
# record.location_status = '空闲'
@@ -318,12 +318,12 @@ class ShelfLocation(models.Model):
:return:
"""
for record in self:
- record.hide_shelf = False
- record.hide_location = False
+ record.sudo().hide_shelf = False
+ record.sudo().hide_location = False
if record.location_type and record.location_type == '货架':
- record.hide_shelf = True
+ record.sudo().hide_shelf = True
elif record.location_type and record.location_type == '货位':
- record.hide_location = True
+ record.sudo().hide_location = True
else:
pass
diff --git a/sf_warehouse/security/ir.model.access.csv b/sf_warehouse/security/ir.model.access.csv
index 29d3048d..a55f069e 100644
--- a/sf_warehouse/security/ir.model.access.csv
+++ b/sf_warehouse/security/ir.model.access.csv
@@ -96,7 +96,7 @@ access_stock_lot_label_layout_user,lot.label.layout.user,stock.model_lot_label_l
access_stock_replenish_option,stock.replenishment.option,stock.model_stock_replenishment_option,sf_warehouse.group_sf_stock_user,1,1,1,0
access_mrp_production,mrp.production,mrp.model_mrp_production,sf_warehouse.group_sf_stock_user,1,1,1,0
-access_sf_shelf_location_group_plan_dispatch,sf.shelf.location,model_sf_shelf_location,sf_base.group_plan_dispatch,1,1,0,0
+access_sf_shelf_location_group_plan_dispatch,sf.shelf.location,model_sf_shelf_location,sf_base.group_plan_dispatch,1,0,0,0
access_stock_move,stock.move,stock.model_stock_move,sf_base.group_plan_dispatch,1,1,1,0
access_stock_picking,stock.picking,stock.model_stock_picking,sf_base.group_plan_dispatch,1,0,0,0
access_stock_lot_group_plan_dispatch,stock.lot,stock.model_stock_lot,sf_base.group_plan_dispatch,1,0,0,0
diff --git a/sf_warehouse/static/src/css/kanban_color_change.scss b/sf_warehouse/static/src/css/kanban_color_change.scss
index aeb75150..c532bf96 100644
--- a/sf_warehouse/static/src/css/kanban_color_change.scss
+++ b/sf_warehouse/static/src/css/kanban_color_change.scss
@@ -52,7 +52,7 @@
}
.green {
- background-color: #fff !important;
+ background-color: #27FEA9 !important;
border: 1px solid #ccc;
}
diff --git a/sf_warehouse/views/change_stock_move_views.xml b/sf_warehouse/views/change_stock_move_views.xml
index 5b8c8c06..c00779ae 100644
--- a/sf_warehouse/views/change_stock_move_views.xml
+++ b/sf_warehouse/views/change_stock_move_views.xml
@@ -91,5 +91,19 @@
+
+ sf.vpicktree
+ stock.picking
+
+
+
+
+
+
+
+
+
+
+