summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorNaglis Jonaitis <naglis@versada.eu>2019-03-07 10:38:29 +0000
committerNaglis Jonaitis <naglis@versada.eu>2019-03-07 10:38:29 +0000
commit3aab70c5a6adc07c4f916c29f7c65fdee81f9e0d (patch)
tree13f0d1a0a31e73a6dbbb5782f8bb182037e052cb /addons/web/static/src/xml/base.xml
parentf451f90b9a932c0fcbf4516f4b9368ef2d067ad1 (diff)
[FIX] hr_timesheet: don't use `dict.fromkeys()` with a mutable default value
When used with a mutable default value, `dict.fromkeys()` builds a dict where each key references the same value: >>> r = {}.fromkeys(['foo', 'bar'], {}) >>> r {'foo': {}, 'bar': {}} >>> r['foo']['val'] = 1 >>> r {'foo': {'val': 1}, 'bar': {'val': 1}} Updating one key's value will change the value for all keys. closes odoo/odoo#31659 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions