This commit is contained in:
李鹏宇
2025-07-02 22:55:42 +08:00
parent 7254cf9bbd
commit a1590d9201
@@ -33,7 +33,7 @@ patch(ListController.prototype, {
onWillStart(async () => {
const manager_data = await this.orm.call('ir.ui.view', 'get_manager_data', [this.env.config.viewId]);
if (!Object.keys(manager_data).length) {
if (!Object.keys(manager_data).length || !manager_data.columns) {
this.ooManager.columns.forEach(val => {
val.visibility = !!!val.column_invisible;
})
@@ -41,6 +41,7 @@ patch(ListController.prototype, {
Object.assign(this.ooManager, manager_data);
this.archInfo.advanced_filter = this.ooManager.filter;
}
this.ooManager.show = manager_data.show;
})
usePosition('ooListRef', () => this.ooManagerRef.el, {