I'm developing custom report based on my client request, and i managed to deploy it successfully on localhost but when i tried to deploy it on my server its show error like this
Field(s) `arch` failed against a constraint: Invalid view definition Error details: Element '<xpath expr="//div[@class='page']/div[@id='informations']">' cannot be located in parent view Error context: View `report_saleorder_validity_date`
partially my xml code looks like this
<openerp>
<template id="report_quotation_inherit_demo" inherit_id="sale.report_saleorder_document"> <xpath expr="//div[@class='page']" position="replace"> <div class="oe_structure"/> <div class="row">
<table class="table table-condensed">
<thead>
<tr style="background-color:lightgray;">
<th>No</th>
<th class="text-middle">Date</th>
<th>Delivery Order Number</th>
<th>Destination</th>
<th>Vehicle</th>
<th>Quantity</th>
<th>Description</th>
<th class="text-right">Price</th>
<th class="text-right">Jumlah</th>
</tr>
</thead>
<tbody class="sale_tbody">
<tr t-foreach="o.order_line" t-as="l">
<td><span t-esc="l_index+1"/></td>
<td><span t-field="l.DeliveryDate"/></td>
<td><span t-field="l.DeliveryNumber"/></td>
<td><span t-field="l.Destination"/></td>
<td><span t-field="l.Vehicle"/></td>
<td class="text-middle">
<span t-field="l.product_uom_qty"/>
<span groups="product.group_uom" t-field="l.product_uom"/>
</td>
<td>
<span t-field="l.name"/>
</td>
<td class="text-right">
<span t-field="l.price_unit" t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="l.price_subtotal" t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
</td>
</tr>
</tbody>
</table>
</xpath> </template> </data></openerp>