Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3783 Lượt xem

Hello,

I´d like to add the customer title defined in the customer master to the address line in our invoice.

I suspect that I need to change the "report_invoice_document", in particular the part of

<div class="row"> <div name="invoice_address" class="col-xs-5 col-xs-offset-7"> <address t-field="o.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/> <span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span>

Any idea how I can add the title of the customer after his name (as in Japanese the title comes after the name).

Thank you,

Mike

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

Try to add this :

<span t-if="o.partner_id.title"> <span t-field="o.partner_id.title"/></span>

after the name (before <span t-if="o.partner_id.vat"> ).

Hope this help.

Célia

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

There is this module \https://www.odoo.com/apps/modules/11.0/l10n_jp_partner_title_qweb for 11.0.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi Célia,

works,  thank you!

Best wishes,

Mike

Ảnh đại diện
Huỷ bỏ