summaryrefslogtreecommitdiff
path: root/addons/barcodes/static
diff options
context:
space:
mode:
authorJuhil Somaiya <jso@odoo.com>2019-01-04 13:20:20 +0000
committerMartin Geubelle <mge@odoo.com>2019-04-24 09:57:56 +0000
commit5dc971b1ae15a9f9e6e92914a3b0d98159c9a38f (patch)
tree7d8f03f138ef3e50426db8dd01a4439bb68a5d27 /addons/barcodes/static
parent0aa4906843ff0565e4d9f9c212c4ff03bdfb7ff5 (diff)
[IMP] web, *: add a description to generic widgets
A `description` key has been added on AbstractField and all generic field widgets ; it is used to display a more user friendly name (both in the webclient and in Studio). Non-generic field widgets have an empty string as description. Related task 1918327 closes odoo/odoo#30131 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com> Co-authored-by: Mohammed Shekha <msh@openerp.com>
Diffstat (limited to 'addons/barcodes/static')
-rw-r--r--addons/barcodes/static/src/js/barcode_field.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/barcodes/static/src/js/barcode_field.js b/addons/barcodes/static/src/js/barcode_field.js
index b5786f8a161..1440845708f 100644
--- a/addons/barcodes/static/src/js/barcode_field.js
+++ b/addons/barcodes/static/src/js/barcode_field.js
@@ -9,6 +9,7 @@ var BarcodeEvents = require('barcodes.BarcodeEvents').BarcodeEvents;
// Field in which the user can both type normally and scan barcodes
var FieldFloatScannable = basicFields.FieldFloat.extend({
+ description: "",
events: _.extend({}, basicFields.FieldFloat.prototype.events, {
// The barcode_events component intercepts keypresses and releases them when it
// appears they are not part of a barcode. But since released keypresses don't