9444e2cfb56482929d9e0bd42888b8cc8f211ec5
Current Behavior: The word "Discount" is translated in the users language unlike the content of the description which is translated into the customer's language Expected behavior: The word "Discount" should be translated as the content of the description. Steps to reproduce: Sales > Product > Discount & Loyalty Create a new loyalty program and add a translation to the reward description. Create a SO for a customer with the same language. Add products to meet the requirements of the loyalty program and click on Promotion. A line is created for the reward, but the word "Discount" is not translated into the customer's language, but the rest of the description is. Cause of the issue: The translation of the word Discount is done inside a dictionary comprehension using the _ = GettextAlias() method. As a result, 'self' does not appear in the arguments from which _ guesses the contextual language. Therefore, the language in which the translation happens is the contextual language of the request (user). Fix: The translation is applied before the discionary comprehension so that the method "_" correctly guesses the contextual language. opw-3700429 closes odoo/odoo#155296 X-original-commit: 03cbf7238400130c412a1606b6a9a2f22725e590 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%