From 6ad2fa80f1e96c82232ee853ddf6e0556a6d03e6 Mon Sep 17 00:00:00 2001 From: hujiaying Date: Fri, 13 Sep 2024 10:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=80=E5=94=AE=EF=BC=8C?= =?UTF-8?q?=E9=87=87=E8=B4=AD=EF=BC=8C=E5=88=B6=E9=80=A0=EF=BC=8C=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E4=BA=A7=E5=93=81=E8=AE=BE=E7=BD=AE=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BA=E9=BB=98=E8=AE=A4=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/product_template_management_view.xml | 18 ++++++++++++------ .../views/mrp_workcenter_views.xml | 2 +- sf_sale/views/purchase_order_view.xml | 5 +++++ sf_sale/views/sale_order_view.xml | 5 +++++ sf_stock/__manifest__.py | 3 ++- sf_stock/models/stock_picking.py | 2 -- sf_stock/views/stock_picking.xml | 1 + sf_stock/views/stock_product_template.xml | 11 +++++++++++ 8 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 sf_stock/views/stock_product_template.xml 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