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

I wan't to install a owned custom module during database creation. With the purpose of have a package .deb in debian, who install openerp and get my module automatically configured and running.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Yes.

You need to set the auto_install tag in the __openerp__.py file:

'auto_install': True

See https://accounts.openerp.com/forum/Help-1/question/19776

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

Thanks Ray, I did what you are mentioned but the module don't appear installed, maybe I have to running openerp-server command with argument --init=module to do something? I will try.

Does the module appear in the list of modules AVAILABLE to install when a new database is created (an no modules have been installed) ?

ผู้เขียน

No, does not appear. I have to refresh list of modules to be included and then it appear available to install

ผู้เขียน คำตอบที่ดีที่สุด

Thanks Ray, I did what you are mentioned but the module don't appear installed, maybe I have to running openerp-server command with argument --init=module to do something? I will try.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try to include 'active': True, in __openerp__.py file of module you want to install by default.

อวตาร
ละทิ้ง