This is third article about creating setup module for odoo.
You can create setup module for odoo and check the technical features box for administrator user.
There is no need for installing modules one by one and after that change company name, address, phone numbers, vat number, logo etc.
With this code you can check the technical features box for administrator user:
<?xml version="1.0" encoding="UTF-8"?> <openerp> <data noupdate="0"> <record id="base.group_no_one" model="res.groups"> <field name="users" eval="[(4, ref('base.user_root'))]"/> </record> </data> </openerp>
Complete module is available for download from github:
https://github.com/netjunky-hub/company_setup
Features:
1.) Replace default logo with your company logo
2.) Populate company info (name, address,zip, city, country…) with the values from res_company_view.xml file
3.) Install other modules and dependencies from openerp.py file
4.) Checks the technical features box for administrator user.
5.) More soon…
Related articles:
http://netjunky.net/create-setup-module-for-odoo-and-change-company-logo/
http://netjunky.net/create-setup-module-for-odoo-and-change-company-info/
Recent Comments