b5af8198faae413b903dbd6409768e76a4fa0454
default_focus form attribute for html_field
When rendering a form view that has a truthy `default_focus` attribute, the renderer looks for the element in its tree that has its `name` as `id`. However in the case of `html_field` it couldn't find it since `html_field` failed to apply that `id` to its focusable element (the editable root). This adds the `id` to the editable root when rendering the element in `wysiwyg`, and also directly applies `contenteditable` to it so the `focus` method actually does what we expect it to, even though we are waiting for `HtmlFieldWysiwygAdapterComponent` to be mounted before actually instantiating the editor itself. task-3073096 X-original-commit: 7e14e2a9c055f5b30b7510ffad994fa10196e34d Part-of: odoo/odoo#106622
…
…
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%