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

I I'm just learning about odoo, I get a blank web after defining a simple dashboard that only contains h1, here is the javascript:

import { registry } from "@web/core/registry";

const actionRegistry = registry.category("actions");

class LibraryDashboard extends owl.Component{ 

setup(){ }};

LibraryDashboard.template = LibraryDashboard;

actionRegistry.add('library_dashboard_tag', LibraryDashboard);


I already ensure that js and the template on manifest file

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

Make a right click on the mouse and open the inspect, then check the console tab to identify the Javascript related issue in the browser. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 24
1704
1
thg 3 23
3348
1
thg 10 20
3499
1
thg 2 20
6692
0
thg 7 19
3242