-
- Downloads
[FIX] delivery: Shipping product is added in user language
Steps to reproduce: - Install Sales,Inventory - Set delivery methods - Set customer language in French have the user in English - Create sale order with at least one item - Add a delivery Method, Free Delivery Method Issue: Sale order line related to delivery product is in both the customer language and user language. If you print and invoice, the delivery method line will be in two different languages Cause: Partner language wasn't being applied to context and therefore translations were not in partner's language. Solution: A local variable context was defined and assigned the partner language to in the local scope. This induces translations to occur in partner's language. https://github.com/odoo/odoo/blob/cff91c6acbb7ef6a884d4dc4170574b83ff6e4cb/odoo/tools/translate.py#L416-L417 Backport of 863537b9 opw-3000159 closes odoo/odoo#103663 Signed-off-by:Nicolas Lempereur (nle) <nle@odoo.com> Co-authored-by:
Pedro <peso@odoo.com>
Please register or sign in to comment