[FIX] web: legacyLoadViews: correctly retrieve string from arch

X-original-commit: f1f45d2673fe87abfb8cfdd5b978f16db373b53d
Part-of: odoo/odoo#102153
This commit is contained in:
Lucas Perais
2022-10-04 20:57:58 +02:00
parent a02af5b259
commit 9c375b48fa
@@ -64,6 +64,7 @@ export function processArch(arch, viewType, resModel, models) {
const fieldName = node.getAttribute("name");
viewFields[fieldName] = viewFields[fieldName] || {
...models[resModel][fieldName],
string: node.getAttribute("string") || models[resModel][fieldName].string,
views: {},
};
// extract subviews