From 183ff490d6356488a4701edc3835e345b6e8d204 Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Tue, 12 Feb 2019 09:39:19 +0000 Subject: [PATCH] [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 --- addons/account/views/account_invoice_view.xml | 4 +++- addons/hr_expense/views/hr_expense_views.xml | 4 +++- addons/purchase/views/purchase_views.xml | 4 +++- addons/sale/views/sale_views.xml | 1 + addons/web/static/src/js/fields/field_registry.js | 1 + doc/reference/javascript_reference.rst | 11 +++++++++++ 6 files changed, 22 insertions(+), 3 deletions(-) diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index de71fb46ac2..6e751c9d48a 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -85,7 +85,9 @@ + context="{'partner_id': partner_id}" + widget="many2one_barcode" + />