콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
4811
4
6월 18
5264
0
4월 24
1879
7
5월 23
32776
1
3월 22
3643