From e2b149f9da1ec54ff72b60eacdacd5fdf4818dde Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Fri, 18 Feb 2022 14:42:25 +0000 Subject: [PATCH] [FIX] pos_sale : PoS hardcoded terms Current behavior: In the PoS when you add an order the 2 terms "Settle the order" and "Apply down payment" where hardcoded in the code. Steps to reproduce: - Have PoS and Sale module installed - Go in PoS - Try to add an order sale - The 2 terms are hardcoded and cannot be translated opw-2754052 closes odoo/odoo#85168 X-original-commit: 440cd020cfce4147973d356fd714a5d78c315c70 Signed-off-by: Grazioso Andrea (agr) Signed-off-by: Engels Robin (roen) --- addons/pos_sale/i18n/pos_sale.pot | 14 ++++++++++++++ .../SaleOrderManagementScreen.js | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/addons/pos_sale/i18n/pos_sale.pot b/addons/pos_sale/i18n/pos_sale.pot index 3270b4257ea..5939edd7e13 100644 --- a/addons/pos_sale/i18n/pos_sale.pot +++ b/addons/pos_sale/i18n/pos_sale.pot @@ -37,6 +37,13 @@ msgstr "" msgid ":" msgstr "" +#. module: pos_sale +#. openerp-web +#: code:addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js:0 +#, python-format +msgid "Apply a down payment" +msgstr "" + #. module: pos_sale #. openerp-web #: code:addons/pos_sale/static/src/xml/OrderManagementScreen/SaleOrderManagementControlPanel.xml:0 @@ -417,6 +424,13 @@ msgstr "" msgid "Source Sale Order Line" msgstr "" +#. module: pos_sale +#. openerp-web +#: code:addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js:0 +#, python-format +msgid "Settle the order" +msgstr "" + #. module: pos_sale #. openerp-web #: code:addons/pos_sale/static/src/xml/OrderManagementScreen/SaleOrderList.xml:0 diff --git a/addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js b/addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js index 628d18d825d..06d0cd3e9a8 100644 --- a/addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js +++ b/addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js @@ -79,7 +79,7 @@ odoo.define('pos_sale.SaleOrderManagementScreen', function (require) { const { confirmed, payload: selectedOption } = await this.showPopup('SelectionPopup', { title: this.env._t('What do you want to do?'), - list: [{id:"0", label: "Apply a down payment", item: false}, {id:"1", label: "Settle the order", item: true}], + list: [{id:"0", label: this.env._t("Apply a down payment"), item: false}, {id:"1", label: this.env._t("Settle the order"), item: true}], }); if(confirmed){