[FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.
authorThibault Delavallée <tde@openerp.com>
Thu, 18 Sep 2014 08:18:05 +0000 (10:18 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 18 Sep 2014 09:18:30 +0000 (11:18 +0200)
commit7cad4baa84b7d5c1648842f4891501d672406b33
tree7d81d1d8aa6e6eabac1f7db886f9a50a93e4c9fe
parentf0c3856be2d2bcbff49d5cf62df16c64a9f8607b
[FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.

Indeed using fromkeys with a list / dict as argument leads to the creation
of shared list / dict. This could create some ugly side effects when
used in loops. This commit fixes or cleans this kind of statement to avoid
unwanted side effects.
12 files changed:
addons/gamification/models/badge.py
addons/hr_holidays/hr_holidays.py
addons/hr_recruitment/hr_recruitment.py
addons/mail/mail_message.py
addons/mail/mail_thread.py
addons/mail/res_users.py
addons/project_issue/project_issue.py
addons/purchase_requisition/purchase_requisition.py
addons/stock/stock.py
addons/website_event_track/models/event.py
addons/website_mail_group/controllers/main.py
openerp/modules/graph.py