Skip to content

Commit

Permalink
fix: view selected record
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Dec 2, 2024
1 parent 5645504 commit 5fdc5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/page/odoo/commands/backoffice/view.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function cmdViewModelRecord(this: Terminal, kwargs: CMDCallbackArgs): Prom
type: 'ir.actions.act_window',
name: i18n.t('cmdView.result.viewRecord', 'View Record'),
res_model: kwargs.model,
res_id: records[0]?.id !== 'undefined' ? records[0]?.id : records[0],
res_id: typeof records[0]?.id !== 'undefined' ? records[0]?.id : records[0],
views: [[false, 'form']],
target: 'current',
context: context,
Expand Down

0 comments on commit 5fdc5b5

Please # to comment.