summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-09-17 14:17:29 +0200
committerLucas Perais (lpe) <lpe@odoo.com>2018-09-19 09:12:51 +0200
commit6ce265b8152d96f8dd49b8ceeac736b8143c4f3c (patch)
treed258b7b3641a049061da9af79e6f7be336d9e677 /doc/reference/javascript_reference.rst
parent7640575a24eb5a8af80d989faa400745247fdbb5 (diff)
[FIX] sale_stock: translate product name
Use case: have a partner in fr_FR while operating with a user in en_US Create a SO for that partner add a product which name is translated in french Before this commit, the description of the sale order line takes the *untranslated* name of the product After this commit, it takes the *translated* name of the product The issue was due to a limitation of sudoing within an onchange for related fields (typically the case of product.product.name) In this case, values that are missing in the cache are retrieved from another one In our case: First, _onchange_product_id_check_availability triggers the evaluation of product.name as sudo (later in the stack), without lang in context Second, the function that actually uses the product.name (product_id_change) retrieves the value found before from the 'wrong' cache OPW 1863305, 1884106 closes #27031
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions