[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 <Enter> key

Part-of: odoo/odoo#136067
This commit is contained in:
William Henrotin
2023-09-27 09:11:48 +00:00
parent bfe8d9ace5
commit 120d69ef4c
@@ -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,
})