xml - odoo - xpath not shown -


code:

<openerp>   <data>     <template id="report_saleorder_insurance_inherit" inherit_id="sale.report_saleorder_document">       <xpath expr="//div[@class='row']/div[@class='col-xs-4 pull-right']/table/tr[2]" position="after">         <tr>           <td>insurance</td>           <td class="text-right">             <span t-field="o.amount_insurance" t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>           </td>         </tr>       </xpath>     </template>   </data> </openerp> 

this code should add additional row sales order costs, after updating nothing shows. have added xml __openerp__.py file , restarted service after that. module updates without errors. @ loss why not working. did forget something?

the xpath should add row inside part of core xml: (taken report_saleorder.xml)

<div class="row">   <div class="col-xs-4 pull-right">     <table class="table table-condensed">       <tr class="border-black">         <td>           <strong>total without taxes</strong>         </td>         <td class="text-right">           <span t-field="o.amount_untaxed" t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>         </td>       </tr>       <tr>         <td>taxes</td>         <td class="text-right">           <span t-field="o.amount_tax" t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>         </td>       </tr>       <tr class="border-black">         <td>           <strong>total</strong>         </td>         <td class="text-right">           <span t-field="o.amount_total" t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>         </td>       </tr>     </table>   </div> </div> 

try creating new sale order , print it. reports saved in database (in ir_attachment table). after first time report printed, odoo recovers report printed first time database , cannot see changes


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -