69 lines
3.7 KiB
XML
69 lines
3.7 KiB
XML
<?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="CNC加工">
|
|
<group string="模型">
|
|
<group>
|
|
<field name="model_long"/>
|
|
<field name="model_width"/>
|
|
<field name="model_height"/>
|
|
<field name="model_volume"/>
|
|
</group>
|
|
<group>
|
|
<field name="model_precision"/>
|
|
<field name="model_materials_id"/>
|
|
<field name="model_materials_type_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="长"/>
|
|
<field name="embryo_long" class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="embryo_width" string="宽"/>
|
|
<field name="embryo_width" class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="embryo_height" string="高"/>
|
|
<field name="embryo_height" class="o_address_zip"/>
|
|
</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> |