From 120d69ef4c5995b8d2c7f3d3e6532572cf40fa45 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Wed, 20 Sep 2023 17:20:00 +0200 Subject: [PATCH] [FIX] stock: create line in readonly mode This commit creates the stock move line in readonly to be able to focus out the move_line_ids one2many widget without having to confirm the values of all the move line with a key Part-of: odoo/odoo#136067 --- addons/stock/static/src/widgets/generate_serial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/static/src/widgets/generate_serial.js b/addons/stock/static/src/widgets/generate_serial.js index 2258c21c66d..8516e092815 100644 --- a/addons/stock/static/src/widgets/generate_serial.js +++ b/addons/stock/static/src/widgets/generate_serial.js @@ -49,7 +49,7 @@ export class GenerateDialog extends Component { for (const values of move_line_vals) { newlines.push( lines._createRecordDatapoint(values, { - mode: 'edit', + mode: 'readonly', virtualId: getId("virtual"), manuallyAdded: false, })