[FIX] barcodes_gs1_nomenclature,point_of_sale: pos should load gs1
After https://github.com/odoo/odoo/pull/120070, pos is no longer loading the assets of `barcodes_gs1_nomenclature`. We should, however, load them because pos is dependent on the said addon thru `stock`. And since pos no longer loads the legacy `web.core` module, we also need to adapt the barcode_parser.js override to use a more modern module in importing `_lt`. closes odoo/odoo#123977 X-original-commit: 00c5a3171bceed6f84e76ca4819d20d0ef61bcc1 Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com> Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { patch } from "@web/core/utils/patch";
|
||||
import { BarcodeParser } from "@barcodes/js/barcode_parser";
|
||||
import {_lt} from "web.core";
|
||||
import { _lt } from "@web/core/l10n/translation";
|
||||
|
||||
export const FNC1_CHAR = String.fromCharCode(29);
|
||||
|
||||
|
||||
@@ -98,6 +98,8 @@
|
||||
# barcode scanner
|
||||
'barcodes/static/src/barcode_service.js',
|
||||
'barcodes/static/src/js/barcode_parser.js',
|
||||
'barcodes_gs1_nomenclature/static/src/js/barcode_parser.js',
|
||||
'barcodes_gs1_nomenclature/static/src/js/barcode_service.js',
|
||||
'web/static/src/legacy/js/core/class.js',
|
||||
'web/static/src/views/fields/parsers.js',
|
||||
'web/static/src/webclient/barcode/barcode_scanner.js',
|
||||
|
||||
Reference in New Issue
Block a user