Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4621 มุมมอง

I would like to implement a module which forces load of others.

Is it ok to use an __openerp__.py whith the right dependences and an empty __init__.py?

I have tried an empty __init__.py and the following __openerp__.py:

{
'name': 'Base Module'
'description': 'Forces Installation of base modules'
'author': 'E.M.',
'depends': ['account_accountant', 'sale', 'stock', 'purchase', 'calendar', 'contacts', 'document'],
}

But module does not appear in the list despite the path is added and the server has been restarted.

อวตาร
ละทิ้ง

I tried the same as your trial with no success, hope anyone offers help

คำตอบที่ดีที่สุด

You need to complete and fix the __openerp__.py dict, you need to correctly define a dict , could use something like this:


{
'name': 'Base Module',
'description': 'Forces Installation of base modules',
'author': 'E.M.',
'depends': ['account_accountant', 'sale', 'stock', 'purchase', 'calendar', 'contacts', 'document'],
      'auto_install': False,
        'application': True,
        'installable': True,

}


อวตาร
ละทิ้ง
ผู้เขียน

Thanks Axel, unfortunately adding those fields does not fix the issue. I double checked everything restarted server and uploaded the module list but still no success. Module is missing.

If the previous fix is not working for you then you are facing permission issues. Check that the user used to run odoo have permission for the modules and also for the config file where you set the addons_path option normaly chown user -R /path/to/config/or/modules And chmod 755 -R /path/to/config/or/modules

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 15
6236
1
มิ.ย. 16
8748
Update Module List odoo แก้ไขแล้ว
1
ธ.ค. 15
13235
3
ธ.ค. 15
6099
Odoo module development with eclipse แก้ไขแล้ว
1
ต.ค. 15
7230