Код: Выделить всё
/** @odoo-module **/
import { PivotGroupByMenu } from "@web/views/pivot/pivot_group_by_menu";
import { patch } from "@web/core/utils/patch";
import { useService } from "@web/core/utils/hooks";
import { onWillStart } from "@odoo/owl";
patch(PivotGroupByMenu.prototype, {
setup() {
super.setup(...arguments);
this.orm = useService("orm");
onWillStart(async () => {
const res = await this.orm.call("access.management", "get_hidden_field", [
this?.env?.searchModel?.resModel,
]);
this.fields = this.fields.filter((ele) => res.includes(ele.name));
});
},
});
The following modules are needed by other modules but have not been defined, they may not be present in the correct asset bundle:
Код: Выделить всё
["@web/core/network/rpc_service", "@web/views/pivot/pivot_renderer"]
["@aymymorify_access_management/js/hide_chatt 18. Полосы поворота в этой версии?
Подробнее здесь: https://stackoverflow.com/questions/796 ... ound-error
Мобильная версия