summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2021-04-28 11:46:52 +0000
committerXavier Morel <xmo@odoo.com>2021-04-29 05:46:03 +0000
commit251b77c959af37fa0da6739ea978ca4f198414cb (patch)
tree4fdd9c7fa37aac07dc01b99e715cb9ec8f627086 /addons/point_of_sale/static/src
parentdeaa4d7dd2690ce389be6709e1b387ae990b514f (diff)
[FIX] *: bunch of mismarked translation specifiers
`_(xyz)` will wrap them in an underscore.js object, which when used in a string context will just return the string. So it's basically a no-op, but it certainly doesn't translate the terms. closes odoo/odoo#70000 Related: odoo/enterprise#18001 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/point_of_sale/static/src')
-rw-r--r--addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js b/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js
index 1ac4cf05077..facee796bed 100644
--- a/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js
+++ b/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientDetailsEdit.js
@@ -1,6 +1,7 @@
odoo.define('point_of_sale.ClientDetailsEdit', function(require) {
'use strict';
+ const { _t } = require('web.core');
const { getDataURLFromFile } = require('web.utils');
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
@@ -47,7 +48,7 @@ odoo.define('point_of_sale.ClientDetailsEdit', function(require) {
if ((!this.props.partner.name && !processedChanges.name) ||
processedChanges.name === '' ){
return this.showPopup('ErrorPopup', {
- title: _('A Customer Name Is Required'),
+ title: _t('A Customer Name Is Required'),
});
}
processedChanges.id = this.props.partner.id || false;