Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
5344 Weergaven

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
Annuleer
Auteur

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">

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
3730
0
feb. 19
5545
0
aug. 15
4286
1
mrt. 15
4084
1
mrt. 15
6114