Daily updates from Odoo
Tuesday, March 8, 2022
1 change · master
Code cleanup and technical improvements
This update removes an older compatibility layer from several web modules and replaces it with the newer standard approach. It should not change day-to-day behavior, but it reduces technical debt and helps keep the interface easier to maintain and improve over time.
Original PR description
* dashboard,enterprise,grid,mobile,studio Before this commit, components used `el` and `trigger` but this works thanks to LegacyComponent. LegacyComponent has been introduced to ease the transition from owl 1 to owl 2. This commit replaces the uses of `el` by `useRef` and `trigger` by adding callback in props. Without these owl 1 features, components no longer need to extend LegacyComponent. This commit also adapts the tests to use `getFixture` instead of `el`. Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Simon Genin (ges) <ges@odoo.com> Co-authored-by: luvi <luvi@odoo.com> Co-authored-by: Jorge Pinna Puissant <jpp@odoo.com>