生成产品的BOM上的加工工序

This commit is contained in:
jinling.yang
2022-10-26 17:27:32 +08:00
parent c3a7a6c4d6
commit 71a925334e
19 changed files with 208 additions and 187 deletions

View File

@@ -1,85 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record model="ir.ui.view" id="view_product_template_form_inherit_sf">
<field name="name">product.template.form.inherit.sf</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[last()]" position="after">
<page string="加工参数">
<group>
<group string="模型">
<field name="model_long"/>
<field name="model_width"/>
<field name="model_height"/>
<field name="model_volume"/>
<field name="model_type_id"/>
<field name="processing_panel" placeholder="例如A,B"/>
<field name="model_precision"/>
<field name="model_materials_id"/>
<field name="model_materials_type_id"
domain="[('materials_id', '=', model_materials_id)]"/>
</group>
<group string="胚料">
<field name="embryo_long"/>
<field name="embryo_width"/>
<field name="embryo_height"/>
<field name="volume" string="体积[mm³]"/>
<field name="embryo_materials_id"/>
<field name="embryo_materials_type_id"
domain="[('materials_id', '=',embryo_materials_id)]"/>
</group>
</group>
</page>
</xpath>
<!-- <xpath expr="//label[@for='volume']" position="before">-->
<!-- <label for="embryo_long" string="尺寸"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <div class="o_address_format"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}">-->
<!-- <label for="embryo_long" string="长"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <field name="embryo_long" class="o_address_zip"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <span>&amp;nbsp;</span>-->
<!-- <label for="embryo_width" string="宽"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <field name="embryo_width" class="o_address_zip"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <span>&amp;nbsp;</span>-->
<!-- <label for="embryo_height" string="高"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <field name="embryo_height" class="o_address_zip"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- </div>-->
<!-- </xpath>-->
<!-- <xpath expr="//label[@for='produce_delay']" position="before">-->
<!-- <label for="embryo_materials_id"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <div class="o_row"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}">-->
<!-- <field name="embryo_materials_id"/>-->
<!-- </div>-->
<!-- <label for="embryo_materials_type_id"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>-->
<!-- <div class="o_row"-->
<!-- attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}">-->
<!-- <field name="embryo_materials_type_id" domain="[('materials_id', '=', embryo_materials_id)]"/>-->
<!-- </div>-->
<!-- </xpath>-->
</field>
</record>
<record id="view_product_category_form_inherit_sf" model="ir.ui.view">
<field name="name">product.category.form.inherit.sf</field>
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view"/>
<field name="arch" type="xml">
<field name="parent_id" position="before">
<field name="is_embryo"/>
</field>
</field>
</record>
</data>
</odoo>

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record model="ir.ui.view" id="view_sale_order_form_inherit_sf">
<field name="name">sale.order.form.inherit.sf</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="payment_term_id" position="after">
<field name="deadline_of_delivery"/>
</field>
</field>
</record>
</data>
</odoo>