Odoo Help

Tarun Behal
On 6/17/14, 12:16 PM

Hi Lithin,

Appreciate for your response. But this wont work. Let me explain how list and sets work. First of all you need to clear your concepts on sets and lists. Very basic definitions as per usage of sets and lists is below

Sets - collection of unique elements. For eg: sets of number  [1,2,3] where all elements are unique. If you create a set of [1,1,2,3] it will remove duplicate entries and will transform it to [1,2,3]. Sets work in same way as dictionaries in python. So you can think of sets as dictionary with only keys.

Sets work by creating index of each value, so if index of a particular key is already filled, then that value is replaced, thus, eliminating duplicates. This indexing provides better performance in sets just like dictionaries.


Lists - collection of elements. For eg: [1,1,2,3]. You can put as many duplicate values you want in the list.

List works by simply storing each value at a address. It doesnt cares about whatever values you are storing in list.


Thus your solution wont work as my initial pids ([1,1,1,2,2,2,2,2,3,3,3]) after your set operation will become set of [1,2,3] and further list operation will transform it to list of [1,2,3].


let me know if you face any difficulty in understanding.

Lithin T
On 5/5/14, 5:16 AM



About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 5/4/14, 11:47 AM
Seen: 1217 times
Last updated: 3/16/15, 8:10 AM