mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix #IB181K app_odoo_customize对18版本增加模块类型,Odoo中文应用。了解下我们需要优先升级的模块18
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user