2017-02-20 14 views

答えて

0

これらの詳細を販売注文レポートから削除したいことがあります。

このため、販売注文レポートを継承して、必要に応じて完全にカスタマイズするか、条件ごとにxpathを使用することができます。

サンプル - 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 position = "replace"は、前の販売コードを上書きします。 はcustom creation reportreports inheritingのリンクです。 メインコードを変更したい場合は、<div class="row">タグをコード内にコメントアウトするだけで、レポートには表示されません。

関連する問題