This is second article about creating setup module for odoo.
You can create setup module for odoo and change company info.

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 change company info:

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
 <record id="base.main_company" model="res.company">
 <field name="name">Your company</field>
 <field name="rml_header1"></field>
 <field name="currency_id" ref="base.HRK"/>
 <field name="street">Your address</field>
 <field name="zip">HR-10 000</field>
 <field name="city">Zagreb</field>
 <field name="country_id" ref="base.hr"/>
 <field name="email">info@yourcompany.com</field>
 <field name="phone">+385 1 123 456</field>
 <field name="fax"> +385 1 123 456</field>
 <field name="website">www.yourcompany.com</field>
 <field name="vat">HR12345678910</field>
 <field name="company_registry">1234567</field>
 </record>
 </data>
</openerp>

 

Complete module is available for download from github:
https://github.com/netjunky-hub/company_setup

Related articles:

http://netjunky.net/create-setup-module-for-odoo-and-change-company-logo/

 

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!