Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5459 มุมมอง

When inherit report_saleorder_document in a custom module, the text is not translated and stays into english. I must add a xx.po file under i18n directory for translation. Is there a way to avoid this? The strings are already the same.


<template id="report_custom_quotation" inherit_id="sale.report_saleorder_document">

<xpath expr="//div[@class='page']" position="replace">

<div class="page">

...

<strong t-if="doc.state not in ['draft','sent']">Date Ordered:</strong>

...


อวตาร
ละทิ้ง
ผู้เขียน

I already managed it: instead of using xpath relace , I copied the original qwebcode and changed the ID: <template id="report_saleorder_document"> to

<template id="sale.report_saleorder_document">

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3814
0
ก.พ. 19
5633
0
ส.ค. 15
4360
1
มี.ค. 15
4142
1
มี.ค. 15
6179