[trunk 6.1] res_users request to read field 'group_id' can generates twice same SQL request in read_flat
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
Hi,
In read, there is no check if the fields argument doesn't contain multiple times the same field to read. It's not an issue if you are careful and don't ask to request twice the same field otherwise 2 SQL queries will be triggered.
The issue is in the read method of res.users (base/res/
self.pool.
[2012-01-26 17:01:46,143][?] DEBUG_SQL:
[2012-01-26 17:01:46,144][?] DEBUG_SQL:
kr,
J-E
Related branches
tags: | added: mso |
Thanks, this could be improved indeed.