修改销售,采购,制造,仓库产品设置产品类型为默认分组
This commit is contained in:
@@ -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': [
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
|
||||
11
sf_stock/views/stock_product_template.xml
Normal file
11
sf_stock/views/stock_product_template.xml
Normal 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>
|
||||
Reference in New Issue
Block a user