bemade_fsm: fix work order translations

This commit is contained in:
Marc Durepos 2025-08-26 08:52:55 -04:00
parent b5df3a9735
commit 6af14a2f60
2 changed files with 5 additions and 6 deletions

View file

@ -20,7 +20,7 @@
########################################################################################
{
"name": "Improved Field Service Management",
"version": "17.0.0.4.1",
"version": "17.0.0.4.2",
"summary": (
"Adds functionality necessary for managing field service operations at Durpro."
),

View file

@ -577,12 +577,11 @@
inherit_id="industry_fsm_report.worksheet_custom"
priority="100"
>
<xpath
expr="//t[@t-call='industry_fsm_report.worksheet_custom_page']"
position="replace"
>
<xpath expr="//t[@t-call='web.external_layout']" position="replace">
<t t-set="lang" t-value="(doc.work_order_contacts and doc.work_order_contacts[0].lang) or (doc.partner_id and doc.partner_id.lang) or (doc.user_id and doc.user_id.lang) or user.lang"/>
<t t-call="bemade_fsm.work_order_page" t-lang="lang"/>
<t t-call="web.external_layout" t-lang="lang">
<t t-call="bemade_fsm.work_order_page" t-lang="lang"/>
</t>
</xpath>
</template>
</odoo>