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

is there a better / easier solution to design or edit the qweb templates? i want to edit the look of the PDF from invoices and ofders. it is quite complicated to edit the look and positions.  is there out a report manager or wysiwyg editor to do that?

アバター
破棄
最善の回答

Hello,
you can search the report in settings>Technical(visible in debug mode)>Reporting> Reports,
change report type to HTML
select Qweb views(smart button) make changes, then print the report, make changes again, rinse repeat
don't forget to copy changes to your code and upgrade module.
this is an easier method than making changes and upgrading each time.

アバター
破棄
最善の回答

Hello,

you can follow the example of this template which inherits the original invoice template and adds the fiscalcode

<odoo>
<template id="report_invoice_document_fc" inherit_id="account.report_invoice_document">
<xpath expr="//span[@t-if='o.partner_id.vat']" position="after">
<span t-if="o.partner_id.fiscalcode">Fiscal code: <span t-field="o.partner_id.fiscalcode"/></span>
</xpath>
</template>
</odoo>
アバター
破棄
関連投稿 返信 ビュー 活動
3
11月 22
8406
0
10月 16
3908
1
6月 24
2207
7
4月 23
28342
2
4月 23
8523