diff --git a/sf_dlm_management/views/product_template_management_view.xml b/sf_dlm_management/views/product_template_management_view.xml index 2cdfd1a3..caefcb34 100644 --- a/sf_dlm_management/views/product_template_management_view.xml +++ b/sf_dlm_management/views/product_template_management_view.xml @@ -1,6 +1,11 @@ + + + {"search_default_categ_id":1,"search_default_consumable": 1, 'default_detailed_type': 'product'} + + product.template.form.inherit.sf product.template @@ -88,7 +93,8 @@ - + - - - - - + + + + + diff --git a/sf_manufacturing/views/mrp_workcenter_views.xml b/sf_manufacturing/views/mrp_workcenter_views.xml index 37ff8af5..5ba5290d 100644 --- a/sf_manufacturing/views/mrp_workcenter_views.xml +++ b/sf_manufacturing/views/mrp_workcenter_views.xml @@ -43,7 +43,7 @@ \ No newline at end of file diff --git a/sf_sale/views/sale_order_view.xml b/sf_sale/views/sale_order_view.xml index 534d42e4..506f5b8d 100644 --- a/sf_sale/views/sale_order_view.xml +++ b/sf_sale/views/sale_order_view.xml @@ -225,5 +225,10 @@ + + {"search_default_categ_id":1, + "search_default_filter_to_sell":1,"sale_multi_pricelist_product_template": 1} + + \ No newline at end of file diff --git a/sf_stock/__manifest__.py b/sf_stock/__manifest__.py index 40f9113b..1b5f44c4 100644 --- a/sf_stock/__manifest__.py +++ b/sf_stock/__manifest__.py @@ -3,7 +3,7 @@ 'name': "sf_stock", 'summary': """ - 处理代发货业务""", + 处理仓库 -代发货业务""", 'description': """ Long description of module's purpose @@ -25,6 +25,7 @@ 'data': [ # 'security/ir.model.access.csv', 'views/stock_picking.xml', + 'views/stock_product_template.xml' ], # only loaded in demonstration mode 'demo': [ diff --git a/sf_stock/models/stock_picking.py b/sf_stock/models/stock_picking.py index 82ce7ea5..3a64f78c 100644 --- a/sf_stock/models/stock_picking.py +++ b/sf_stock/models/stock_picking.py @@ -13,8 +13,6 @@ _logger = logging.getLogger(__name__) class StockPicking(models.Model): _inherit = 'stock.picking' - cancel_backorder_ids = fields.Boolean(default=False, string='是否取消后置单据') - # 重写验证,下发发货到bfm def button_validate(self): info = super(StockPicking, self).button_validate() diff --git a/sf_stock/views/stock_picking.xml b/sf_stock/views/stock_picking.xml index 7750ca76..5bf4d40e 100644 --- a/sf_stock/views/stock_picking.xml +++ b/sf_stock/views/stock_picking.xml @@ -1,3 +1,4 @@ + diff --git a/sf_stock/views/stock_product_template.xml b/sf_stock/views/stock_product_template.xml new file mode 100644 index 00000000..2d2a2fbe --- /dev/null +++ b/sf_stock/views/stock_product_template.xml @@ -0,0 +1,11 @@ + + + + + + {"search_default_categ_id":1,"search_default_consumable": 1, 'default_detailed_type': 'product'} + + + + + \ No newline at end of file