Skip to content

Commit 78cd5fd

Browse files
committed
fix: view selected record
1 parent 5645504 commit 78cd5fd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
**11.7.1**
4+
5+
```
6+
FIX: Command 'view': Show selected record
7+
```
8+
39
**11.7.0**
410

511
```

src/js/page/odoo/commands/backoffice/view.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function cmdViewModelRecord(this: Terminal, kwargs: CMDCallbackArgs): Prom
7676
type: 'ir.actions.act_window',
7777
name: i18n.t('cmdView.result.viewRecord', 'View Record'),
7878
res_model: kwargs.model,
79-
res_id: records[0]?.id !== 'undefined' ? records[0]?.id : records[0],
79+
res_id: typeof records[0]?.id !== 'undefined' ? records[0]?.id : records[0],
8080
views: [[false, 'form']],
8181
target: 'current',
8282
context: context,

0 commit comments

Comments
 (0)