I use vscode to commit my changes to the github repository that my odoo sh project is located. Now my whenever I try to commit this module, I always get this warning. I tried rebuilding, creating another branch, deleting and reuploading the module, but to no avail " invalid module names, ignored: invreport " is always showing, what seems to be the problem.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1. Check the Module Folder Name
- The module folder name inside addons/ must match the module name in __manifest__.py.
- Example: If your module name is "invreport", ensure the folder is also named invreport/.
2. Verify __manifest__.py File
-
Open __manifest__.py and confirm:
python
CopyEdit
{ 'name': 'Inventory Report', 'version': '1.0', 'author': 'Your Name', 'depends': ['base'], 'data': ['views/invreport_view.xml'], 'installable': True, # Ensure this is set 'application': True }
- Make sure 'installable': True is present.
3. Check for Special Characters or Spaces
-
Ensure no spaces, special characters, or uppercase letters in the folder name.
- ❌ inv report → Invalid
- ✅ invreport → Correct
4. Ensure the Module is in the Correct Addons Path
-
Confirm that the module is inside the correct directory in your Odoo.sh repository:
swift
CopyEdit
/odoo/custom/addons/invreport/
5. Clear Cache and Restart Odoo.sh
-
Restart your Odoo.sh instance and run:
bash
CopyEdit
odoo-bin -u all --stop-after-init
- Also, clear VSCode cache by deleting .vscode/ and .gitignore conflicts.
6. Check Git Commit & Push
-
Run the following in VSCode terminal:
bash
CopyEdit
git status git add . git commit -m "Fix invreport module" git push origin <your_branch>
- Ensure the module appears in the commit.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
ต.ค. 23
|
4517 | ||
No module named pooler
แก้ไขแล้ว
|
|
5
ธ.ค. 23
|
19538 | |
|
1
ธ.ค. 23
|
1807 | ||
|
0
พ.ย. 23
|
1873 | ||
|
1
พ.ค. 23
|
3568 |