2017-02-20 98 views

回答

0

可能是您想要從銷售訂單報表中刪除這些詳細信息。

爲此,您可以繼承銷售訂單報告,然後根據需要完全自定義或根據條件使用xpath。

樣本 -

<report id="sale.sale_order_report_id"> 
. 
. 
. Your custom report code here. 
. 
</report> 
1
<openerp> 
<data> 
    <template id="sale_quotation_override" inherit_id="sale.report_saleorder_document"> 
     <xpath expr="//t[@t-call='report.external_layout']" position="replace"> 
      <!-- your custom code here..... --> 
     </xpath> 
    <template> 
<data> 

內的XPath什麼都寫,你將在報告中打印。 xpath position =「替換」覆蓋以前的銷售代碼, 這裏是鏈接custom creation report,reports inheriting。 如果你想改變主代碼,那麼只需註釋<div class="row">代碼內部的代碼它不會顯示在報告上。