コンテンツへスキップ
メニュー
この質問にフラグが付けられました

Hi all,

I've tried to customize report_invoice_document adding a new field, but the changes introduced are not shown in the pdf report (neither removing an existing field)

So I've created a custom module with a custom template trying to add a custom field on the existing pdf:

<odoo>
  <data>
  <!--Inherit invoice pdf report template-->
<template id="template_report_invoice_document_extended" inherit_id="account.report_invoice_document">
<xpath expr="//div[contains(@class, 'mt16') and contains(.//span, 'Partita IVA:')]" position="after">
<div t-if="o.partner_id.x_fiscal_code" class="mt16">Codice Fiscale:<span t-field="o.partner_id.x_fiscal_code"/></div>
</xpath>  
  </template>
 </data>
</odoo>


but even if the module is correctly imported it is not working, I get always the same pdf report (the  xpath expr seem work, because if I change the string in <span> element from Partita IVA: to other name, the import goes in error...)

I dont know how to get my pdf customized, because neither modifying the original one, neither creating a custom module I'm able to customize it.

アバター
破棄

Try to create a new invoice (state = Draft) and print it.

関連投稿 返信 ビュー 活動
4
10月 18
4683
4
6月 18
5083
0
4月 24
1731
7
5月 23
32608
1
3月 22
3505