代码规范整理,产品页面模型和胚料的模型类型字段做显示
This commit is contained in:
@@ -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)]"/>
|
||||
|
||||
Reference in New Issue
Block a user