Commit c603804
committed
[IMP] dms: OWL UX refinements (phase 2 preview)
Follow-up to OCA#475 phase 1 (the minimal-viable 19.0 [MIG]). Opens on
the ledoent fork against the phase 1 branch so reviewers can preview the
delta on top of OCA#475 before it lands.
- **Breadcrumb modernisation**: replace `path_owl.xml`'s inline-style
`<a oe_form_uri>` + `<span style="display: inline">` pattern with
Odoo 19's `<ol class="o_breadcrumb breadcrumb"><li class="breadcrumb-item">`
Bootstrap idiom. Final segment uses `class="breadcrumb-item active"`
with `aria-current="page"` per Bootstrap a11y guidance.
- **Restore `filter_domain` on `dms_category.xml`** search view —
`filter_domain="['|', ('name', 'ilike', self), ('parent_id', 'child_of', raw_value)]"`
was removed in OCA#475 and re-introduces the 18.0 UX of filtering by parent
category subtree when typing a parent's name. The bare 19.0 default
`ilike` on name lost that behaviour. (Tag search left as default — 18.0's
filter was equivalent to 19.0's default for that field.)
Originally this PR also rewired the kanban `buttonTemplate` from
`dms.KanbanButtons` to the orphan `dms.FileKanbanView.Buttons` template,
but that template uses invalid OWL inheritance syntax
(`<div role="toolbar" position="inside">` instead of `<xpath ...>`) AND
references controller hooks (`uploadFileInputRef`, `onFileInputChange`)
that don't exist on the controller. Reverted; phase 1's classic
`dms.KanbanButtons` template stays in place (it's now self-contained
without `t-inherit` since 19.0's `web.KanbanView.Buttons` is empty).
Deferred to a later round: JS dead-code audit (inconclusive — core 19.0
`LinkPreview` has no native `imageUrl` getter, so our patches may still be
load-bearing), coverage closure, and a proper kanban UX modernisation
once `dms.FileKanbanView.Buttons` is fixed or replaced.
Signed-off-by: Daniel Kendall <dkendall@ledoweb.com>1 parent ba067b0 commit c603804
2 files changed
Lines changed: 25 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments