去掉警告及开发表面工艺相关需求

This commit is contained in:
jinling.yang
2023-03-27 21:04:33 +08:00
parent 446bd04a9d
commit bf010e2cca
18 changed files with 89 additions and 72 deletions

View File

@@ -14,7 +14,8 @@
<field name="detailed_type" position="before">
<field name='categ_type' invisible="1"/>
<field name="upload_model_file"
widget="many2many_binary"/>
widget="many2many_binary"
attrs="{'invisible': ['|', ('categ_type', '!=', '成品'),('categ_type', '=', False)]}"/>
<field name="model_file" widget="Viewer3D" string="模型" readonly="1" force_save="1"
attrs="{'invisible': ['|', ('categ_type', '!=', '成品'),('categ_type', '=', False)]}"/>
</field>
@@ -24,6 +25,8 @@
<field name="materials_id" string="材料"/>
<field name="materials_type_id" string="型号"
domain="[('materials_id', '=', materials_id)]"/>
<field name="model_surface_process_id" string="表面工艺" widget="many2many_tags"/>
<field name="model_process_parameters_id" string="工艺参数" widget="many2many_tags"/>
</field>
<xpath expr="//label[@for='volume']" position="before">