I am trying to add barcode scanning feature in product line of a picking. I successfully added the barcode image and the functionality. But the barcode image is displaying in both website view and the mobile view. But i only need to display the barcode image in the mobile application.
I tried below code.
**.xml**
*
t-operation="append">
*
But i am getting below error:
Error:
Traceback:
Error: dict.widget is undefined
anonymous/ Function:223:8
foreach@http://localhost:5014/web/static/lib/qweb/qweb2.js:180:33
anonymous@http://localhost:5014/web/static/lib/qweb/qweb2.js line 470 > Function:11:24
_render@http://localhost:5014/web/static/lib/qweb/qweb2.js:459:58
render@http://localhost:5014/web/static/lib/qweb/qweb2.js:451:26
_render@http://localhost:5014/web/static/lib/qweb/qweb2.js:481:29
render@http://localhost:5014/web/static/lib/qweb/qweb2.js:451:26
_renderLines@http://localhost:5014/stock_barcode/static/src/js/client_action/lines_widget.js:325:33
_renderLines@http://localhost:5014/stock_barcode_picking_batch/static/src/js/client_action/lines_widget.js:56:28
OdooClass.extend/Class.include/start/promise callback*start@http://localhost:5014/stock_barcode/static/src/js/client_action/lines_widget.js:52:51
OdooClass.extend/_widgetRenderAndInsert/promise callback*_widgetRenderAndInsert@http://localhost:5014/web/static/src/js/core/widget.js:434:33
appendTo@http://localhost:5014/web/static/src/js/core/widget.js:193:21
_reloadLineWidget@http://localhost:5014/stock_barcode/static/src/js/client_action/abstract_client_action.js:626:33
start/promise callback*start/promise callback*start@http://localhost:5014/stock_barcode/static/src/js/client_action/abstract_client_action.js:107:51
OdooClass.extend/start@http://localhost:5014/stock_barcode/static/src/js/client_action/picking_client_action.js:84:21
OdooClass.extend/_widgetRenderAndInsert/promise callback*_widgetRenderAndInsert@http://localhost:5014/web/static/src/js/core/widget.js:434:33
appendTo@http://localhost:5014/web/static/src/js/core/widget.js:193:21
_startController@http://localhost:5014/web/static/src/js/chrome/action_manager.js:862:34
_executeAction/promise callback*_executeAction@http://localhost:5014/web/static/src/js/chrome/action_manager.js:316:14
_executeClientAction@http://localhost:5014/web/static/src/js/chrome/action_manager.js:454:25
_handleAction@http://localhost:5014/web/static/src/js/chrome/action_manager.js:670:29
_handleAction@http://localhost:5014/web/static/src/js/chrome/action_manager_act_window.js:403:28
OdooClass.extend/Class.include/_handleAction@http://localhost:5014/web/static/src/js/chrome/action_manager_report.js:164:28
OdooClass.extend/Class.include/_handleAction@http://localhost:5014/account_reports/static/src/js/action_manager_account_report_dl.js:52:28
OdooClass.extend/Class.include/doAction/promise callback*doAction@http://localhost:5014/web/static/src/js/chrome/action_manager.js:157:50
loadState@http://localhost:5014/web/static/src/js/chrome/action_manager_act_window.js:119:25
OdooClass.extend/Class.include/on_hashchange@http://localhost:5014/web_enterprise/static/src/js/web_client.js:151:59
Async*show_application/promise callback*show_application@http://localhost:5014/web_enterprise/static/src/js/web_client.js:91:66
show_application@http://localhost:5014/bus/static/src/js/web_client_bus.js:31:32
OdooClass.extend/Class.include/show_application@http://localhost:5014/calendar/static/src/js/base_calendar.js:112:28
OdooClass.extend/Class.include/start/promise callback*start@http://localhost:5014/web/static/src/js/chrome/abstract_web_client.js:154:16
start@http://localhost:5014/web_enterprise/static/src/js/web_client.js:37:28
OdooClass.extend/start@http://localhost:5014/web_enterprise/static/src/js/widgets/debug_manager.js:11:32
OdooClass.extend/Class.include/start@http://localhost:5014/bus/static/src/js/web_client_bus.js:23:24
OdooClass.extend/Class.include/startWebClient@http://localhost:5014/web/static/src/js/main.js:24:19
async*@http://localhost:5014/web/static/src/js/main.js:26:5
odoo.processJobs/processJob/defprocessJob@http://localhost:5014/web/static/src/js/boot.js:258:23
odoo.processJobs@http://localhost:5014/web/static/src/js/boot.js:316:23
odoo.define@http://localhost:5014/web/static/src/js/boot.js:154:14
@http://localhost:5014/web/static/src/js/main.js:1:6
The error comes because of below line.