2017-02-20 99 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">代码内部的代码它不会显示在报告上。