mirror of
https://github.com/bringout/oca-ocb-crm.git
synced 2026-04-24 08:12:02 +02:00
Initial commit: Crm packages
This commit is contained in:
commit
21a345b5b9
654 changed files with 418312 additions and 0 deletions
25
odoo-bringout-oca-ocb-crm/crm/static/src/models/ir_model.js
Normal file
25
odoo-bringout-oca-ocb-crm/crm/static/src/models/ir_model.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/** @odoo-module **/
|
||||
|
||||
import { registerPatch } from "@mail/model/model_core";
|
||||
|
||||
registerPatch({
|
||||
name: "ir.model",
|
||||
fields: {
|
||||
availableWebViews: {
|
||||
compute() {
|
||||
if (this.model === "crm.lead") {
|
||||
return [
|
||||
'list',
|
||||
'kanban',
|
||||
'form',
|
||||
'calendar',
|
||||
'pivot',
|
||||
'graph',
|
||||
'activity',
|
||||
];
|
||||
}
|
||||
return this._super();
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue