تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5384 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
3742
0
فبراير 19
5571
0
أغسطس 15
4300
1
مارس 15
4100
1
مارس 15
6132