[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) <agr@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
roen-odoo
2022-02-24 11:26:53 +00:00
parent a270fc713d
commit e2b149f9da
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -37,6 +37,13 @@ msgstr ""
msgid "<span style=\"margin: 0px 5px;\">:</span>"
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
@@ -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){