diff --git a/src/js/page/odoo/commands/common/barcode.mjs b/src/js/page/odoo/commands/common/barcode.mjs index 8e8fb46..e52bcf6 100644 --- a/src/js/page/odoo/commands/common/barcode.mjs +++ b/src/js/page/odoo/commands/common/barcode.mjs @@ -127,6 +127,6 @@ export default function (): Partial { 150, ], ], - example: '-o send -d O-CMD.NEXT', + example: '-o send -d "O-CMD.NEXT"', }; } diff --git a/src/js/page/tests/test_common.mjs b/src/js/page/tests/test_common.mjs index f93c055..271b2d2 100644 --- a/src/js/page/tests/test_common.mjs +++ b/src/js/page/tests/test_common.mjs @@ -356,9 +356,9 @@ export default class TestCommon extends TerminalTestSuite { this.assertNotEmpty(res); await this.terminal.execute('view -m res.company -i 1', false, true); await asyncSleep(2500); - res = await this.terminal.execute('barcode -o send -d O-CMD.EDIT', false, true); + res = await this.terminal.execute("barcode -o send -d 'O-CMD.EDIT'", false, true); this.assertNotEmpty(res); - res = await this.terminal.execute('barcode -o send -d O-CMD.DISCARD,O-CMD.EDIT,O-CMD.DISCARD', false, true); + res = await this.terminal.execute("barcode -o send -d ['O-CMD.DISCARD','O-CMD.EDIT','O-CMD.DISCARD']", false, true); this.assertNotEmpty(res); }