Fix Work Order Report translations by ensuring proper translation tags and context
This commit is contained in:
parent
8775cec248
commit
72ee664967
2 changed files with 14 additions and 13 deletions
|
|
@ -1068,16 +1068,18 @@ msgstr "Travaux exécutés"
|
||||||
|
|
||||||
#. module: bemade_fsm
|
#. module: bemade_fsm
|
||||||
#: model_terms:ir.ui.view,arch_db:bemade_fsm.workorder_page_info_block
|
#: model_terms:ir.ui.view,arch_db:bemade_fsm.workorder_page_info_block
|
||||||
msgid ""
|
msgid "Work Order Contacts:"
|
||||||
"Work Order\n"
|
msgstr "Contact recevant le bon de travail : "
|
||||||
" Contacts:"
|
|
||||||
msgstr ""
|
|
||||||
"Contacts recevant le bon de travail :"
|
|
||||||
|
|
||||||
#. module: bemade_fsm
|
#. module: bemade_fsm
|
||||||
#: model:ir.model.fields,field_description:bemade_fsm.field_project_task__work_order_contacts
|
#: model_terms:ir.ui.view,arch_db:bemade_fsm.work_order_page
|
||||||
msgid "Work Order Contacts"
|
msgid "Phone:"
|
||||||
msgstr "Contacts recevant le bon de travail"
|
msgstr "Téléphone:"
|
||||||
|
|
||||||
|
#. module: bemade_fsm
|
||||||
|
#: model_terms:ir.ui.view,arch_db:bemade_fsm.work_order_page
|
||||||
|
msgid "Email:"
|
||||||
|
msgstr "Courriel:"
|
||||||
|
|
||||||
#. module: bemade_fsm
|
#. module: bemade_fsm
|
||||||
#: model:ir.model.fields,field_description:bemade_fsm.field_project_task__work_order_number
|
#: model:ir.model.fields,field_description:bemade_fsm.field_project_task__work_order_number
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@
|
||||||
<div
|
<div
|
||||||
t-attf-class="{{'col-6' if report_type == 'pdf' else 'col-md-6 col-12'}}"
|
t-attf-class="{{'col-6' if report_type == 'pdf' else 'col-md-6 col-12'}}"
|
||||||
>
|
>
|
||||||
<div t-if="doc.site_contacts"><h6>Site Contacts: </h6></div>
|
<div t-if="doc.site_contacts"><h6>Site Contacts:</h6></div>
|
||||||
<t t-foreach="doc.site_contacts" t-as="contact">
|
<t t-foreach="doc.site_contacts" t-as="contact">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div
|
<div
|
||||||
|
|
@ -390,8 +390,7 @@
|
||||||
<div
|
<div
|
||||||
t-attf-class="{{'col-6' if report_type == 'pdf' else 'col-md-6 col-12'}}"
|
t-attf-class="{{'col-6' if report_type == 'pdf' else 'col-md-6 col-12'}}"
|
||||||
>
|
>
|
||||||
<div t-if="doc.work_order_contacts"><h6>Work Order
|
<div t-if="doc.work_order_contacts"><h6>Work Order Contacts:</h6></div>
|
||||||
Contacts: </h6></div>
|
|
||||||
<t t-foreach="doc.work_order_contacts" t-as="contact">
|
<t t-foreach="doc.work_order_contacts" t-as="contact">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div
|
<div
|
||||||
|
|
@ -565,8 +564,8 @@
|
||||||
<t t-call="web.html_container">
|
<t t-call="web.html_container">
|
||||||
<t t-foreach="docs" t-as="doc">
|
<t t-foreach="docs" t-as="doc">
|
||||||
<t t-set="doc" t-value="doc.root_ancestor.with_context(tz=doc.partner_id.tz)" t-if="doc.parent_id"/>
|
<t t-set="doc" t-value="doc.root_ancestor.with_context(tz=doc.partner_id.tz)" t-if="doc.parent_id"/>
|
||||||
<t t-call="web.external_layout">
|
<t t-call="web.external_layout" t-lang="(doc.work_order_contacts and doc.work_order_contacts[0].lang) or 'en_US'">
|
||||||
<t t-call="bemade_fsm.work_order_page"/>
|
<t t-call="bemade_fsm.work_order_page" t-lang="(doc.work_order_contacts and doc.work_order_contacts[0].lang) or 'en_US'"/>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue