Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2045 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
2321
0
thg 1 24
1868
1
thg 9 23
3316
2
thg 4 23
5501
2
thg 1 23
7989