修改销售,采购,制造,仓库产品设置产品类型为默认分组

This commit is contained in:
hujiaying
2024-09-13 10:15:26 +08:00
parent 4f9ac16a07
commit 6ad2fa80f1
8 changed files with 37 additions and 10 deletions

View File

@@ -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': [

View File

@@ -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()

View File

@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="stock.product_template_action_product" model="ir.actions.act_window">
<field name="context">
{"search_default_categ_id":1,"search_default_consumable": 1, 'default_detailed_type': 'product'}
</field>
</record>
</data>
</odoo>