odoo/odoo#98266

Created by fw-bot
Merged at ac69ccac7c496374e5cee8206fee6ed3ba1b8802

Statuses:

label
odoo-dev:15.0-14.0-fix-display-website-loading-rde-aEji-fw
head
abf22b86299f0eb0945684cbc30d4ddb3def296b
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
saas-17.4
18.0
saas-18.1
saas-18.2
saas-18.3
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