diff options
| author | Luis González <lgonzalez@vauxoo.com> | 2020-10-18 00:31:19 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-10-20 15:18:41 +0000 |
| commit | 746bacf680c74603f63f7b46304b8fb364e0d60e (patch) | |
| tree | c4cd4b240797309900c2374f59472e20420651aa /addons/website/static/src/js | |
| parent | 4f7a314eff2725d7bf03188634eff7af9b82cd0d (diff) | |
[IMP] sale_management: Non-deterministic elements in views
There are currently some elements in views that are not reachable on a
deterministic way when those views are inherited. That means, to reach
them, positional selectors need to be used (e.g. `last()`). That causes
inherited views to get broken when there are small changes in element
position.
A good example of this is [1]:
<th class="text-right">Unit Price</th>
Which can't be filtered by:
- Class, because there are several `<th>` elements with the same class
- Text content, because when content is translated, selector will fail
To solve the above, this change provides IDs for several elements, to make
possible/easier to reach them on a safely manner.
[1] https://github.com/odoo/odoo/blob/54b40f1eb096/addons/sale_management/report/sale_report_templates.xml#L15
closes odoo/odoo#60378
X-original-commit: c4c45ff1533f8b9c726d4ba6563d5bdb14bd3ebb
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/website/static/src/js')
0 files changed, 0 insertions, 0 deletions
