Skip to Content
Menu
This question has been flagged
1 Reply
2114 Views

Hello,

Please, i have this result:

[(6, 0, []), (0, 0, {'project': u'test902', 'partner_id': 7, 'check': True}), (0, 0, {'project': u'project903', 'partner_id': 7, 'check': False})]

I want to access to project in this result, how please.

Avatar
Discard
Best Answer

This seems to be a value for many2many field, this is the format value for this kind x2many fields. You need to take in consideration the differents kind of tuple value inside this list. Consult orm write method for the specification

In your case you could do something like this:

https://gist.github.com/aek/b902298f8e0ceeaa04a0

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 23
12549
1
Aug 23
11054
1
Jul 23
7228
4
Apr 23
8677
2
Feb 23
17598