修复单一制造

This commit is contained in:
jinling.yang
2023-11-09 16:30:05 +08:00
parent 16b3df87c9
commit dbfd75b139
3 changed files with 7 additions and 6 deletions

View File

@@ -8,10 +8,11 @@
<field name="arch" type="xml">
<field name="invoice_policy" position="after">
<field name='categ_id'/>
<field name='is_bfm' invisible="1"/>
<field name='categ_type' invisible="1"/>
<field name="upload_model_file"
widget="many2many_binary"
attrs="{'invisible': ['|', ('categ_type', '!=', '成品'),('categ_type', '=', False)]}"/>
attrs="{'invisible': ['|', '|',('categ_type', '!=', '成品'),('categ_type', '=', False),('is_bfm','=', True)]}"/>
<field name="model_file" widget="Viewer3D" string="模型" readonly="1" force_save="1"
attrs="{'invisible': ['|','|', ('categ_type', '!=', '成品'),('categ_type', '=', False),('model_file', '=', False)]}"/>
<field name='cutting_tool_type' invisible="1"/>