コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5500 ビュー

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.

関連投稿 返信 ビュー 活動
1
3月 16
21582
3
5月 24
14548
0
3月 17
2857
1
6月 16
2923
2
6月 16
3260