继承原生视图 在其明细里面加字段

时间:2017-07-28 15:32:19   收藏:0   阅读:355
<record model="ir.ui.view" id="view_inventory_form_ref">
<field name="name">stock.inventory</field>
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock.view_inventory_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name=‘line_ids‘]/tree/field[@name=‘product_id‘]" position="after">
<field name="default_code"/>
</xpath>
<xpath expr="//field[@name=‘move_ids‘]/tree/field[@name=‘product_id‘]" position="after">
<field name="default_code"/>
</xpath>
</field>
</record>

原文:http://www.cnblogs.com/1314520xh/p/7250329.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!