fix #IB181K app_odoo_customize对18版本增加模块类型,Odoo中文应用。了解下我们需要优先升级的模块18

This commit is contained in:
Chill
2024-11-06 14:07:23 +08:00
parent bd2e90e6d9
commit c067c819fa
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/** @odoo-module */
import { patch } from "@web/core/utils/patch";
import { ImportModuleListRenderer } from "@base_import_module/base_import_list_renderer";
patch(ImportModuleListRenderer.prototype, {
async onCellClicked(record, column, ev) {
if (record._values.module_type && record._values.module_type === 'odooapp.cn') {
const re_action = {
name: "more_info",
res_model: "ir.module.module",
res_id: record.resId,
type: "ir.actions.act_window",
views: [[false, "form"]],
context: {
'module_name': record._values.name,
'module_type': record._values.module_type,
}
}
this.env.services.action.doAction(re_action);
}
else{
super.onCellClicked(record, column, ev);
}
}
})