Dear team,
I am using Odoo 10 community.
We want some modules to be auto installed on Database creation.
Mainly required modules are:
Sale, account, invoicing..
We have set the auto_install flag in __manifest__.py file for each module as below..
'installable': True,
'auto_install': True,
However, still when we create Database, these modules are not auto installed.
I tried to change auto_install to True on all its dependent modules as well.. But still nothing works..
Team,
Please help.. I am badly stuck.. This is imp for few projects..
Any input is highly appreciable..
create a init file with "-i sale -i account -i invoicing .... --stop-after-init --without-demo=all"
use with correct model names.
Thanks. I didnt knew that there is option as stop-after-init...
I did not understand where to keep the new __init__ file ??
I have added this line in my startup script from where I start the server but it will have issues again when new DB created :(
However, if this solution works with init file , it will be great .
I will be thankful if you can put some light on the init file solution and mention the path where this init file to be kept and how does odoo run this init file on db creation ?
see my post below. you don't need to worry about creating new db. if you write your init scripts properly to handle all.