Friday, May 26, 2023
2 changes · master
Code cleanup and technical improvements
This update replaces custom styling that prevented text selection with a standard shared class across many Odoo apps. It keeps the user experience consistent while simplifying future maintenance, with no expected change to business workflows.
Original PR description
[REF] *: `user-select-none` refactoring
*{
base,
calendar,
crm,
event,
fleet,
hr_contract,
hr_holiday,
hr_recruitment,
hr_work_entry,
mail,
maintenance,
mass_mailing,
mrp,
note,
portal,
project,
stock,
survey,
utm,
web,
web_editor,
website,
website_event,
website_event_exhibitor,
website_event_meet,
website_event_track,
website_event_track_quiz,
website_forum,
website_profile,
website_sale,
website_slides
}
This PR deletes every CSS assignation in Odoo of `user-select: none`
and replaces it by a newly added BS5 `user-select-none` class either in
its template, JS component, controller or renderer.
Enterprise:
- https://github.com/odoo/enterprise/pull/27160
task-2848355
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis update standardizes how Odoo prevents text selection in many interface elements by using a shared styling class instead of repeated custom rules. It should not change business workflows, but it makes the interface code easier to maintain and more consistent across apps.
Original PR description
[REF] *: `user-select-none` refactoring
*{
account_accountant,
account_consolidation,
account_followup,
account_intrastat,
account_reports,
appointments,
approvals,
documents,
documents_spreadsheet,
helpdesk,
hr_appraisal,
hr_payroll,
industry_fsm_report,
industry_fsm_sale,
mrp_mps,
mrp_plm,
planning,
sale_subscription_dashboard,
sign,
social,
social_crm,
social_facebook,
social_linkedin,
social_push_notifications,
social_twitter,
spreadsheet,
web_cohort,
web_dashboard,
web_enterprise,
web_gantt,
web_studio,
website_helpdesk
}
This PR deletes every CSS assignation in Odoo of `user-select: none`
and replaces it by a newly added BS5 `user-select-none` class either in
its template, JS component, controller or renderer.
Community:
- https://github.com/odoo/odoo/pull/90931
task-2848355