bom组件的公斤数量修复,产品页面的模型根据类型隐藏
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
<!-- <field name="upload_model_file" required="True"-->
|
||||
<!-- widget='many2many_binary'/>-->
|
||||
<!-- </field>-->
|
||||
|
||||
<field name="invoice_policy" position="after">
|
||||
<!-- <field name="model_file" widget="model_viewer"-->
|
||||
<!-- attrs="{'invisible': [('categ_type', '!=', '成品')]}"/>-->
|
||||
<!-- <field name="embryo_model_type_id" string="模型类型"-->
|
||||
<!-- attrs="{'invisible': [('categ_type', '=', '胚料')]}"/>-->
|
||||
<field name='categ_type' invisible="1"/>
|
||||
<field name="model_file" widget="model_viewer"
|
||||
attrs="{'invisible': [('categ_type', '!=', '成品')]}"/>
|
||||
<field name="embryo_model_type_id" string="模型类型"
|
||||
attrs="{'invisible': [('categ_type', '!=', '胚料')]}"/>
|
||||
<field name="materials_id" string="材料"/>
|
||||
<field name="materials_type_id" string="型号"
|
||||
domain="[('materials_id', '=', materials_id)]"/>
|
||||
|
||||
Reference in New Issue
Block a user