更新同步模块
This commit is contained in:
@@ -52,3 +52,8 @@ class MrsProcessingTechnology(models.Model):
|
||||
process_encode = fields.Char("编码")
|
||||
production_process_ids = fields.Many2many('mrs.production.process', 'mrs_associated_processes',
|
||||
index=True)
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
_description = '产品'
|
||||
|
||||
@@ -271,10 +271,11 @@
|
||||
</field>
|
||||
</record>
|
||||
<!--产品-->
|
||||
<!-- <field name="domain">[('materials_model_ids', '!=', False)]</field>-->
|
||||
<record id="sf_product_template" model="ir.actions.act_window">
|
||||
<field name="name">产品</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="domain">[('materials_model_ids', '!=', False)]</field>
|
||||
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help" type="html">
|
||||
@@ -285,19 +286,17 @@
|
||||
</field>
|
||||
|
||||
</record>
|
||||
<record id="view_product_account_purchase_ok_form" model="ir.ui.view">
|
||||
<field name="name">product.template.materials</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="account.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after" >
|
||||
<group>
|
||||
<field name="materials_model_ids" widget="many2many"/>
|
||||
</group>
|
||||
<!-- <record id="view_product_account_purchase_ok_form" model="ir.ui.view">-->
|
||||
<!-- <field name="name">product.template.materials</field>-->
|
||||
<!-- <field name="model">product.template</field>-->
|
||||
<!-- <field name="inherit_id" ref="account.product_template_form_view"/>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <field name="name" position="after" >-->
|
||||
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- </field>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
<record id="view_product_account_purchase_ok_search" model="ir.ui.view">
|
||||
<field name="name">product.template.materials.search</field>
|
||||
<field name="model">product.template</field>
|
||||
|
||||
Reference in New Issue
Block a user