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

On odoo.sh

  1. I rebuild my main branch, it's a clean database, v15, no installed modules
  2. Open editor, then terminal
  3. odoo-bin scaffold MODULENAME ~/src/user/
  4. I open __manifest__.py in that new module folder and choose from the menu: Odoo > Update current module
  5. The comand runs: odoo-bin -u  MODULENAME --stop-after-init
  6. WARNING xxxxxx-odoosh-main-4995927 odoo.modules.loading: invalid module names, ignored: MODULENAME 

why? how? 

I tried:

  • Starting a fresh branch with this one as its source, same problem
  • I tried restarting Odoo, same problem
  • I tried Update Module List in Odoo apps interface, same problem
  • I moved the folder from ~/src/user to ~/src/odoo/addons, it now works!

I used a previous branch I worked on for custom modules, do the same steps (2-5) and it works just fine!


It seems that ~/src/user as an addon path is ignored somehow in this branch?


What would be the difference between these two branches? I'm very confused here.

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

For anyone wondering, the src/user folder isn't watched until you do a first commit to github, after the rebuild it works as expected

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 25
1020
1
thg 8 25
138
1
thg 8 25
296
4
thg 7 25
1631
1
thg 7 25
920