mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_payment_order: Print payment order in user lang if not generated
When you haven't still generated the file, `generated_user_id` is not filled, and so, you can't control the language in which the payment order is going to be printed. Adding a condition for using the user language in that case makes this more comfortable.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
{
|
||||
"name": "Account Payment Order",
|
||||
"version": "13.0.1.0.0",
|
||||
"version": "13.0.1.1.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "ACSONE SA/NV, "
|
||||
"Therp BV, "
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<template id="print_account_payment_order_document">
|
||||
<t
|
||||
t-set="doc"
|
||||
t-value="doc.with_context({'lang':doc.generated_user_id.lang})"
|
||||
t-value="doc.with_context({'lang': doc.generated_user_id and doc.generated_user_id.lang or user.lang})"
|
||||
/>
|
||||
<t t-call="web.external_layout">
|
||||
<div class="page">
|
||||
|
||||
Reference in New Issue
Block a user