diff --git a/sf_warehouse/__init__.py b/sf_warehouse/__init__.py index c081ee06..c9ba0265 100644 --- a/sf_warehouse/__init__.py +++ b/sf_warehouse/__init__.py @@ -1,2 +1,3 @@ # -*-coding:utf-8-*- from . import models +from . import wizard diff --git a/sf_warehouse/__manifest__.py b/sf_warehouse/__manifest__.py index 04051b06..b409c7ce 100644 --- a/sf_warehouse/__manifest__.py +++ b/sf_warehouse/__manifest__.py @@ -15,6 +15,7 @@ 'data/ir_cron_data.xml', 'security/sf_stock_security.xml', 'security/ir.model.access.csv', + 'wizard/wizard_view.xml', 'views/view.xml', 'views/shelf_location.xml', 'views/change_stock_move_views.xml', diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index 98a4b513..50469284 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -829,11 +829,6 @@ class Sf_stock_move_line(models.Model): for record in self: obj = self.env['sf.shelf.location'].search([('name', '=', self.destination_location_id.name)]) - # if obj.product_id and obj.product_id != record.product_id: - # # 判断货位产品和将入到该货位的产品是否是同一种 - # raise ValidationError( - # '【%s】产品和【%s】货位的【%s】产品不同,请重新选择【%s】产品的货位!!!' % - # (record.product_id, obj.name, obj.product_id, record.product_id)) if record.lot_id: shelf_location_obj = self.env['sf.shelf.location'].search( [('product_sn_id', '=', record.lot_id.id)]) diff --git a/sf_warehouse/security/ir.model.access.csv b/sf_warehouse/security/ir.model.access.csv index db246adc..a5b3b2fa 100644 --- a/sf_warehouse/security/ir.model.access.csv +++ b/sf_warehouse/security/ir.model.access.csv @@ -132,6 +132,9 @@ access_sf_cutting_tool_material_group_sf_stock_manager,sf_cutting_tool_material_ access_sf_cutting_tool_standard_library_group_sf_stock_manager,sf_cutting_tool_standard_library_group_sf_stock_manager,sf_base.model_sf_cutting_tool_standard_library,sf_warehouse.group_sf_stock_manager,1,0,1,0 access_sf_tool_materials_basic_parameters_group_sf_stock_manager,sf_tool_materials_basic_parameters_group_sf_stock_manager,sf_base.model_sf_tool_materials_basic_parameters,sf_warehouse.group_sf_stock_manager,1,0,1,0 +access_sf_shelf_location_wizard_group_plan_dispatch,sf_shelf_location_wizard_group_plan_dispatch,model_sf_shelf_location_wizard,sf_base.group_plan_dispatch,1,0,0,0 +access_sf_shelf_location_wizard_group_sf_stock_user_group_sf_stock_user,sf_shelf_location_wizard_group_sf_stock_user_group_sf_stock_user,model_sf_shelf_location_wizard,sf_warehouse.group_sf_stock_user,1,0,0,0 +access_sf_shelf_location_wizard_group_sf_stock_manager,sf_shelf_location_wizard_group_sf_stock_manager,model_sf_shelf_location_wizard,sf_warehouse.group_sf_stock_manager,1,1,1,0 diff --git a/sf_warehouse/views/shelf_location.xml b/sf_warehouse/views/shelf_location.xml index ff8f54b2..a0e1a5c1 100644 --- a/sf_warehouse/views/shelf_location.xml +++ b/sf_warehouse/views/shelf_location.xml @@ -128,7 +128,17 @@
- +