跳至內容
選單
此問題已被標幟
1 回覆
1858 瀏覽次數

i used a variable in odoo14 js it is worked
var DocumentsInspector = require('documents.DocumentsInspector');

how can I use odcumentinspector in odoo 16?

also,i have same facing problem with  const DocumentsKanbanController = require('documents.DocumentsKanbanController'); it is don't worked in odoo 16

頭像
捨棄
最佳答案

Hi,
There is a lot of change that comes when Odoo was upgraded from version 14 to 16. Currently, in the case of the backend, we are using OWL (Odoo Web Library). If you want to import "Documents Inspector" using the updated OWL JavaScript syntax, you can use the following code snippets:

/** @odoo-module */
import { DocumentsInspector } from "@documents/views/inspector/documents_inspector";


For importing DocumentsKanbanController:

/** @odoo-module */
import { DocumentsKanbanController } from "@documents/views/kanban/documents_kanban_controller";


Hope it helps

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 24
1933
0
1月 24
1567
1
9月 23
2993
2
4月 23
5113
2
1月 23
7622