产品新增3d模型展示

This commit is contained in:
jinling.yang
2023-03-06 17:02:21 +08:00
parent 84a674e4e2
commit 2df811d4ce
35 changed files with 159 additions and 1291 deletions

View File

@@ -10,7 +10,7 @@
""",
'category': 'sf',
'website': 'https://www.sf.jikimo.com',
'depends': ['mrp', 'base', 'sf_manufacturing'],
'depends': ['mrp', 'base', 'sf_manufacturing','web_widget_model_viewer'],
'data': [
'data/product_data.xml',
'views/product_template_view.xml',

View File

@@ -7,13 +7,16 @@
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<!-- <field name="image_1920" position="replace">-->
<!-- <field name='categ_type' invisible="1"/>-->
<!-- <field name="upload_model_file" required="True"-->
<!-- widget='many2many_binary'/>-->
<!-- </field>-->
<field name="invoice_policy" position="after">
<field name="detailed_type" position="before">
<field name='categ_type' invisible="1"/>
<field name="model_file" widget="model_viewer"
<field name="model_file" widget="Viewer3D" string="模型" readonly="1"
attrs="{'invisible': ['|', ('categ_type', '!=', '成品'),('categ_type', '=', False)]}"/>
</field>
<field name="invoice_policy" position="after">
<field name="embryo_model_type_id" string="模型类型"
attrs="{'invisible': ['|',('categ_type', '!=', '胚料'),('categ_type', '=', False)]}"/>
<field name="materials_id" string="材料"/>