summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2019-02-12 09:39:19 +0000
committerRomeo Fragomeli <rfr@odoo.com>2019-02-14 09:41:33 +0000
commit183ff490d6356488a4701edc3835e345b6e8d204 (patch)
tree153bd792ab0938e573b93c8b965c07d0ba098487 /doc/reference/javascript_reference.rst
parent4a857060e1e00d922e111731ec7a2a563a30edce (diff)
[IMP] *: add mobile (native) barcode scanner for product field
This commit change widget to many2one_barcode in these views: - sale_order - purchase - invoice - expense In the fields register 'many2one_barcode' is mapped to many2one as fallback. many2one_barcode is implemented in odoo enterprise Task ID: 1924766 closes odoo/odoo#31018
Diffstat (limited to 'doc/reference/javascript_reference.rst')
-rw-r--r--doc/reference/javascript_reference.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst
index 9c7b10c3d47..059b5796041 100644
--- a/doc/reference/javascript_reference.rst
+++ b/doc/reference/javascript_reference.rst
@@ -2005,6 +2005,17 @@ Relational fields
- Supported field types: *many2one*
+- many2one_barcode (FieldMany2OneBarcode)
+ Widget for many2one fields allows to open the camera from a mobile device (Android/iOS) to scan a barcode.
+
+ Specialization of many2one field where the user is allowed to use the native camera to scan a barcode.
+ Then it uses name_search to search this value.
+
+ If this widget is set and user is not using the mobile application,
+ it will fallback to regular many2one (FieldMany2One)
+
+ - Supported field types: *many2one*
+
- kanban.many2one (KanbanFieldMany2One)
Default widget for many2one fields (in kanban view). We need to disable all
edition in kanban views.