diff options
Diffstat (limited to 'addons/barcodes/static/src/js/barcode_form_view.js')
| -rw-r--r-- | addons/barcodes/static/src/js/barcode_form_view.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/addons/barcodes/static/src/js/barcode_form_view.js b/addons/barcodes/static/src/js/barcode_form_view.js index 5e24923f20c..b42c3334f40 100644 --- a/addons/barcodes/static/src/js/barcode_form_view.js +++ b/addons/barcodes/static/src/js/barcode_form_view.js @@ -60,8 +60,7 @@ FormController.include({ */ _barcodeAddX2MQuantity: function (barcode, activeBarcode) { if (this.mode === 'readonly') { - this.do_warn(_t('Error: Document not editable'), - _t('To modify this document, please enable edit mode.')); + this.do_warn(false, _t('Enable edit mode to modify this document')); return Promise.reject(); } @@ -134,7 +133,7 @@ FormController.include({ const state = this.model.get(this.handle, { raw: true }); const pagingInfo = this._getPagingInfo(state); if (!pagingInfo) { - return this.do_warn(_t('Error: Pager not available')); + return this.do_warn(false, _t('Pager unavailable')); } const currentMinimum = updater(pagingInfo.currentMinimum, state); const limit = pagingInfo.limit; @@ -331,7 +330,7 @@ FormController.include({ } } if (prefixed && !hasCommand) { - self.do_warn(_t('Error: Barcode command is undefined'), barcode); + self.do_warn(_t('Undefined barcode command'), barcode); } return self.alive(Promise.all(defs)).then(function () { if (!prefixed) { @@ -367,8 +366,7 @@ FormController.include({ } if (!_.compact(_.pluck(barcodeInfos, 'candidate')).length) { - return this.do_warn(_t('Error: No last scanned barcode'), - _t('To set the quantity please scan a barcode first.')); + return this.do_warn(false, _t('Scan a barcode to set the quantity')); } for (var k in this.activeBarcode) { |
