8000 [FIX] demo_link: retrieve correctly the result from read() · TheDailyStuff/documentation-user@9bfc3e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bfc3e7

Browse files
committed
[FIX] demo_link: retrieve correctly the result from read()
The signature has changed and we get a list instead of a dictionary now.
1 parent b884135 commit 9bfc3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_extensions/demo_link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def _fetch_fields(url, db, uid, password):
167167
result = None
168168
else:
169169
action = server.execute_kw(db, uid, password, model, 'read', [id_, ['res_model', 'views']])
170-
view_id = next((id_ for type, id_ in action['views'] if type == task.view), False)
170 6198 +
view_id = next((id_ for type, id_ in action[0]['views'] if type == task.view), False)
171171
fvg = server.execute_kw(
172172
db, uid, password,
173-
action['res_model'], 'fields_view_get', [], {
173+
action[0]['res_model'], 'fields_view_get', [], {
174174
'view_id': view_id,
175175
'view_type': task.view
176176
})

0 commit comments

Comments
 (0)
0