Before this commit, in new views, it is no longer possible to click
on buttons with barcode_trigger="..." using a barcode scanner.
Why:
New views no longer propagate all attributes to the button.
How to reproduce:
- Go to a form view with a button with barcode_trigger="doit"
- Scan "O-BTN.doit", "Enter".
Before this commit:
Nothing happens.
After this commit:
An event click is applied to the button.
closes odoo/odoo#102423
X-original-commit: b4cb2ee2662173e08f671eb736130f8332265de7
Signed-off-by: Georis François (fge) <fge@odoo.com>
24 lines
706 B
Python
24 lines
706 B
Python
{
|
|
'name': 'Barcode',
|
|
'version': '2.0',
|
|
'category': 'Hidden',
|
|
'summary': 'Scan and Parse Barcodes',
|
|
'depends': ['web'],
|
|
'data': [
|
|
'data/barcodes_data.xml',
|
|
'views/barcodes_view.xml',
|
|
'security/ir.model.access.csv',
|
|
],
|
|
'installable': True,
|
|
'post_init_hook': '_assign_default_nomeclature_id',
|
|
'assets': {
|
|
'web.assets_backend': [
|
|
'barcodes/static/src/**/*',
|
|
],
|
|
'web.tests_assets': ['barcodes/static/tests/helpers.js'],
|
|
'web.qunit_suite_tests': ['barcodes/static/tests/basic/**/*.js'],
|
|
'web.qunit_mobile_suite_tests': ['barcodes/static/tests/mobile/*.js'],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|