Skip to content
Snippets Groups Projects
Commit dea4e82c authored by Aaron Bohy's avatar Aaron Bohy
Browse files

[FIX] web: support kanban_view_ref attribute on many2one


Since commit [1], the Many2One field supports the attribute
"kanban_view_ref". When set, and when on a small screen, its value
is used as id of the kanban view to open when the user clicks in
the Many2One input (in the SelectCreateDialog). We lost the support
of this attribute in the owl conversion of the fields. This commit
thus re-introduce it.

Note that it is now deprecated and won't be supported in next
versions (>= saas-16.3), as it can simply be set in the context
instead. For instance:
```xml
  <field name="team_id" kanban_view_ref="%(sales_team.crm_team_view_kanban)s"/>
```
->
```xml
  <field name="team_id" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}"/>
```

[1] 80a8b662

opw 3152174

closes odoo/odoo#119024

Signed-off-by: default avatarGéry Debongnie <ged@odoo.com>
parent da1f1b2b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment