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

I'm trying to override the template setting of account_invoices and account_invoices_without_payment to use a different template.

But instead of having the fields of the existing account_invoices report updated, a get two new once with the same name.

I tried:

<report
id="account_invoices_without_payment"
model="account.move"
string="Rechnungen ohne Zahlung"
report_type="qweb-pdf"
name="dr_reports.report_invoice"
file="dr_reports.report_invoice"
attachment="(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')"
print_report_name="(object._get_report_base_filename())"
/>


and also without the report shortcut:


<record id="account_invoices_without_payment" model="ir.actions.report">
<field name="name">Rechnungen ohne Zahlung</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">dr_reports.report_invoice</field>
<field name="report_file">dr_reports.report_invoice</field>
<field name="attachment">(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')</field>
<field name="print_report_name">(object._get_report_base_filename())</field>
</record


any hint would be appreciated.

아바타
취소
베스트 답변

Hi Maik,

You should specify the module name to override, for example:

<report
id="account.account_invoices_without_payment"
model="account.move"
string="Rechnungen ohne Zahlung"
report_type="qweb-pdf"
name="dr_reports.report_invoice"
file="dr_reports.report_invoice"
attachment="(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')"
print_report_name="(object._get_report_base_filename())"
/>
아바타
취소
작성자 베스트 답변

thx a lot for your hint Ivan, makes totally sense.

아바타
취소
관련 게시물 답글 화면 활동
1
9월 24
1886
0
1월 25
1050
1
5월 24
2473
3
2월 24
4070
3
2월 24
33940