Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1990 Prikazi

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

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
apr. 24
2268
0
jan. 24
1820
1
sep. 23
3265
2
apr. 23
5422
2
jan. 23
7917