修复sequence导致字段值移动位置的bug

This commit is contained in:
mgw
2023-10-20 10:50:35 +08:00
parent e02ab7fd95
commit 587e2a4e3e
2 changed files with 24 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
""",
'category': 'sf',
'website': 'https://www.sf.jikimo.com',
'depends': ['account', 'base', 'mrp_workorder','sale'],
'depends': ['account', 'base', 'mrp_workorder', 'sale', 'purchase'],
'data': [
'security/group_security.xml',
'security/ir.model.access.csv',

View File

@@ -84,6 +84,29 @@
<field name="active" eval="False"/>
</record>
<!-- 移除字段属性 -->
<record id="view_order_form_inherited" model="ir.ui.view">
<field name="name">sale.order.form.inherited</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']" position="attributes">
<attribute name="widget"/>
</xpath>
</field>
</record>
<record id="view_purchase_form_inherited" model="ir.ui.view">
<field name="name">purchase.order.form.inherited</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']" position="attributes">
<attribute name="widget"/>
</xpath>
</field>
</record>
<!-- <record id="mrp_workorder.menu_mrp_workorder_workcenter" model="ir.ui.menu"> -->