Skip to content

Commit

Permalink
[FIX] barcodes_regex_group: JS function parse_barcode result object n…
Browse files Browse the repository at this point in the history
…eeds its base_code field changed too.
  • Loading branch information
ddejong-therp committed Dec 8, 2022
1 parent 15763af commit 5b9a1d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions barcodes_regex_group/static/src/js/barcode_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ odoo.define('barcodes_regex_group.BarcodeParser', function (require) {
var match = parsed_result.value.match_copy;
parsed_result.value = parsed_result.value.value_copy;
parsed_result.code = match[1];
parsed_result.base_code = match[1];
if (match.length > 2)
parsed_result.extra_codes = match.slice(2);
}
Expand Down

0 comments on commit 5b9a1d5

Please sign in to comment.