Replace nested view by reference id

issue2401
review219007
This commit is contained in:
Cédric Krier committed 2012-01-31 23:42:49 +01:00
1 parent 6d46a12792
commit d45e547f4b
1 file changed
+18 -5
+18 -5
View File
@@ -11,11 +11,8 @@ this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name=&quot;delivery_time&quot;]"
position="after">
<field name="weekdays" colspan="4">
<tree string="Week Days" editable="bottom" fill="1">
<field name="weekday"/>
</tree>
</field>
<field name="weekdays" colspan="4"
view_ids="stock_supply_day.product_supplier_weekdayview_tree_editable"/>
</xpath>
</data>
]]>
@@ -41,6 +38,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="product_supplier_weekdayview_tree">
<field name="model">purchase.product_supplier.day</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<![CDATA[
<tree string="Week Day">
@@ -51,5 +49,20 @@ this repository contains the full copyright notices and license terms. -->
</field>
</record>
<record model="ir.ui.view"
id="product_supplier_weekdayview_tree_editable">
<field name="model">purchase.product_supplier.day</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<![CDATA[
<tree string="Week Day" editable="bottom" fill="1">
<field name="product_supplier"/>
<field name="weekday"/>
</tree>
]]>
</field>
</record>
</data>
</tryton>