[FIX] web: kanban: quick create in legacy dialog
When one tries to quick create a record in a kanban view column and a rpc error occurs, a form view dialogs open. If the form view to display in the dialog is a legacy view, save the record displayed in the dialog make the kanban renderer receive a legacy datapoint with no resId key, making impossible to add the appropriate record to the column. We fix that. closes odoo/odoo#99294 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -84,6 +84,7 @@ export class FormViewDialog extends Component {
|
||||
title: this.props.title,
|
||||
disable_multiple_selection: true,
|
||||
on_saved: async (record) => {
|
||||
record.resId = record.res_id || false;
|
||||
await this.props.onRecordSaved(record);
|
||||
this.props.close();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user