summaryrefslogtreecommitdiff
path: root/addons/pos_cache/data/pos_cache_data.xml
diff options
context:
space:
mode:
authorGuewen Baconnier <guewen.baconnier@camptocamp.com>2016-11-28 09:37:57 +0100
committerMartin Trigaux <mat@odoo.com>2016-12-02 13:26:09 +0100
commit9c3c022ffe2cd3c846c96edd73a7a37ca6fd7879 (patch)
tree1ff80ce54cdcbe320c230294307ea2b2f393ff68 /addons/pos_cache/data/pos_cache_data.xml
parent6e8ee5ee5241a16ce07c9c1183fd875bd2611819 (diff)
[FIX] base: error in QWeb when a record is empty
When using a many2one widget, in the following scenario: <h2><span t-field="o.partner_id.parent_id.country_id"/></h2> If 'parent_id' is an empty recordset, the following error will be raised: [...] [read] = record.read([field_name]) ValueError: need more than 0 values to unpack This is because record.read([field_name]) returns an empty list which cannot be unpacked. In version 10 this problem is avoided by using recordset but to keep the diff minmal in v9, only returns empty string as the line below does `if not read[field_name]: return ''` Closes #14489
Diffstat (limited to 'addons/pos_cache/data/pos_cache_data.xml')
0 files changed, 0 insertions, 0 deletions