We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impacted versions: 13.0 Steps to reproduce:
Current behavior:
Video/Screenshot link (optional):
The screen in English:
The screen in Arabic:
The text was updated successfully, but these errors were encountered:
@mart-e not sure if you are the proper to check this.
Sorry, something went wrong.
Oh that's a fun one. The line is in red thanks to the expression
decoration-danger="activity_date_deadline and (activity_date_deadline < current_date)"
When evaluating the condition in Arabic, you get something like activity_date_deadline = "2020-09-17" but current_date = "٢٠٢٠-٠٩-١٧" current_date is a localised moment() date.
activity_date_deadline = "2020-09-17"
current_date = "٢٠٢٠-٠٩-١٧"
current_date
diff --git a/addons/web/static/src/js/views/basic/basic_model.js b/addons/web/static/src/js/views/basic/basic_model.js index 7c449b43ce3..e38a5eda708 100644 --- a/addons/web/static/src/js/views/basic/basic_model.js +++ b/addons/web/static/src/js/views/basic/basic_model.js @@ -3545,7 +3545,7 @@ var BasicModel = AbstractModel.extend({ active_id: evalContext.id || false, active_ids: evalContext.id ? [evalContext.id] : [], active_model: element.model, - current_date: moment().format('YYYY-MM-DD'), + current_date: moment().locale("en").format('YYYY-MM-DD'), id: evalContext.id || false, current_company_id: current_company, }, session.user_context, element.context, evalContext);
@aab-odoo maybe ?
No branches or pull requests
Impacted versions:
13.0
Steps to reproduce:
Current behavior:
Video/Screenshot link (optional):
The screen in English:
The screen in Arabic:
The text was updated successfully, but these errors were encountered: