Skip to Content
मेन्यू
This question has been flagged
5453 Views

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>

...


Avatar
Discard
Author

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 Replies Views Activity
0
मार्च 15
3809
0
फ़र॰ 19
5629
0
अग॰ 15
4346
1
मार्च 15
4140
1
मार्च 15
6174