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

Hi,

I read, that it is possible, to use odoo with a couple of databases.

Is there a script or something, which installs in all databases per default the accounting and sales module?


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

 

Very good suggestion @Ray:

@Fabian you can do it following way:

In the __openerp__.py file, need to add 'auto_install': True as shown in the below example(it is from web_calendar module).

{
'name': 'Web Calendar',
'category': 'Hidden',
'description':"""
OpenERP Web Calendar view.
==========================
""",
'author': 'OpenERP SA, Valentino Lab (Kalysto)',
'version': '2.0',
'depends': ['web'],
'data' : [
'views/web_calendar.xml',
],
'qweb': [
'static/src/xml/*.xml',
],
'auto_install': True
}
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Create a module that depends on the modules you want installed, you can even set your module to autoinstall so every new database you create will automatically have all the dependent modules installed.

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

Oh that sounds great can you tell me how to set my module to autoinstall?

Feasible solution is auto_install in __openerp__.py file. @fabian you can see @Hardikgiri's Answer.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 16
22240
How can I create a Popup Message? แก้ไขแล้ว
3
พ.ค. 24
15112
0
มี.ค. 17
3192
1
มิ.ย. 16
3425
2
มิ.ย. 16
3644