代码规范整理,产品页面模型和胚料的模型类型字段做显示

This commit is contained in:
jinling.yang
2023-02-09 15:26:08 +08:00
parent 11065139d3
commit a812c603ea
13 changed files with 14 additions and 28 deletions

View File

@@ -13,9 +13,9 @@
<field name="invoice_policy" position="after">
<field name='categ_type' invisible="1"/>
<field name="model_file" widget="model_viewer"
attrs="{'invisible': [('categ_type', '!=', '成品')]}"/>
attrs="{'invisible': ['|', ('categ_type', '!=', '成品'),('categ_type', '=', False)]}"/>
<field name="embryo_model_type_id" string="模型类型"
attrs="{'invisible': [('categ_type', '!=', '胚料')]}"/>
attrs="{'invisible': ['|',('categ_type', '!=', '胚料'),('categ_type', '=', False)]}"/>
<field name="materials_id" string="材料"/>
<field name="materials_type_id" string="型号"
domain="[('materials_id', '=', materials_id)]"/>