summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2018-02-13 17:31:40 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-02-19 10:43:15 +0100
commita583a56324c615379e80952ae31a59efcd28d205 (patch)
tree94f5c8f843bf4f04901cf6e41a3fc8b59c106785 /doc/reference
parent906a9af8f22eb46bf806d624c69799750fc3a78c (diff)
[FIX] base, web: don't fold M2M when not in import compatible mode
Before this commit, if the first exported field of an M2M is `id` (the xid) the entire M2M is folded into a single cell with comma-separated xids and any following field is ignored. If `id` is any but the first field, the export behaves normally (with the m2m exported as a "table" inside the parent record). This behaviour makes sense for import-compatible exports where the id is the only thing which can be exported anyway, but it is troublesome outside of that mode as the behaviour of m2m under export becomes incoherent/unpredictable (ish) as it depends on the position of the m2m's `id` in the exports list. Change it so we only perform folding in import-compatible mode (which is the default for backwards compatibility with e.g. API calling export_data directly & the like). opw-813361 Fixes #22600
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions