odoo/odoo#98281

Created by fw-bot
Merged at ec3d4b9de28dfb447ece885b317883d2c450415f

Statuses:

label
odoo-dev:saas-15.2-14.0-fix-display-website-loading-rde-XvnQ-fw
head
bd68120f9bfb3efb5cbe02e7477ee2f863a4ce40
merged
3 years ago by Romain Derie (rde)
odoo/odoo
14.0 #97924
15.0 #98266
saas-15.2 #98281
saas-15.3 #98294
saas-15.4 #98307
16.0
17.0
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
master #98320

[FW][FIX] website: display website in ir.ui.view relation fields

Since 1, the ir.ui.view name_get can suffix the name with the website,
something like Main Layout [Website 1] instead of just Main Layout.
This is fundamental when managing a DB as with the multi website / COW
mechanism, views are duplicated, making it impossible to know which one
is coming from which website (or is the generic one) when selecting a
new record in a field input.

While it worked great for the autocomplete list, the default value when
loading the form/list views were still not displaying the website.
You thus have the same issue: you have to navigate to that view to
figure which one it is.
When managing multi website DBs, this is becoming tricky.

This commit also adds that behavior to the value shown when loading a
form/tree view.

Forward-Port-Of: #97924