销售和产品代码整合

This commit is contained in:
jinling.yang
2022-11-22 11:08:07 +08:00
parent 3cbd1140bb
commit 12615b3dba
8 changed files with 44 additions and 43 deletions

View File

@@ -10,7 +10,7 @@
""",
'category': 'sf',
'website': 'https://www.sf.jikimo.com',
'depends': ['product', 'base'],
'depends': ['mrp', 'base', 'sf_manufacturing'],
'data': [
'data/product_data.xml',
'views/product_template_view.xml'

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="0">
<data noupdate="1">
<record id="product_template_sf" model="product.product">
<field name="name">CNC加工产品模板</field>
<field name="categ_id" ref="product.product_category_5"/>

View File

@@ -6,11 +6,11 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<!-- <field name="invoice_policy" position="after">-->
<!-- <field name="materials_id" string="材料"/>-->
<!-- <field name="materials_type_id" string="型号"-->
<!-- domain="[('materials_id', '=', materials_id)]"/>-->
<!-- </field>-->
<field name="invoice_policy" position="after">
<field name="materials_id" string="材料"/>
<field name="materials_type_id" string="型号"
domain="[('materials_id', '=', materials_id)]"/>
</field>
<xpath expr="//label[@for='volume']" position="before">
<label for="long" string="尺寸"