on my forms display and Pdf invoices i have the company and the invoice contact on the same line
COMPANY, INVOICE Name
i would like to have
COMPANY
Invoice name
is the possible ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
on my forms display and Pdf invoices i have the company and the invoice contact on the same line
COMPANY, INVOICE Name
i would like to have
COMPANY
Invoice name
is the possible ?
In Developer mode, the definition of the Invoice report can be found at:
Settings --> Technical --> Actions --> Reports
Search for the account.invoice model
Open the Invoices Report
Click on Qweb views
These are the views that define how the address gets printed.
Look for lines like this:
<address t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
Which, rewritten, really look like this:
<address t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
Those lines use a template (called contact) to print the address.
The template is defined in odoo/odoo/addons/base/ir/ir_qweb.xml
If you remove name from the "fields" list, then it will not be printed, and you can add something above the address line like:
<span t-field="o.partner_id.parent_id.name"/> <span t-field="o.partner_id.name"/>
This work fine to print in qweb the company name:
<span t-esc="res_company.name"/>
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
How to insert a watermark in Pdf report?
แก้ไขแล้ว
|
|
5
เม.ย. 23
|
14997 | |
|
5
ม.ค. 25
|
27938 | ||
|
1
เม.ย. 21
|
4279 | ||
|
2
พ.ย. 16
|
4408 | ||
|
0
มิ.ย. 15
|
4137 |