summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2021-05-11 11:52:55 +0000
committerRomain Derie <rde@odoo.com>2021-05-12 09:58:41 +0000
commit045c6ad3353bb0849d3f93d3488d8dcd8b8975b0 (patch)
tree4a7c57def96c9a9dbfd143e03d3c00ca9f9bb5a9 /setup
parentf31f1972ff0e35deb3005ce160930b70ddc8e531 (diff)
[FIX] product: correctly consider context key for display_name
Regarding of the `display_default_code` context value, `display_name` is supposed to return the product code or not, eg: > product.display_name > '[FURN_6666] Acoustic Bloc Screens' > product.with_context(display_default_code=False).display_name > 'Acoustic Bloc Screens' But since the context was not considered when accessing this field, it would always return the cached value, which was set from the first time that field was read, with the `display_default_code` value used at that time. tl;dr: `display_name` was ignoring the context once cached. One of the critical issue was that internal code were displayed on the eshop cart (not the eshop itself), see `name_short`. task-2517830 closes odoo/odoo#70727 X-original-commit: b5b4d38adf1f3960cda21b795a26e67b978b2901 Signed-off-by: Raphael Collet (rco) <rco@openerp.com> Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
Diffstat (limited to 'setup')
0 files changed, 0 insertions, 0 deletions