Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1893 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 24
2046
0
sty 24
1645
1
wrz 23
3064
2
kwi 23
5194
2
sty 23
7721