Monday, 27 June 2016

Odoo 9 : Adding background image for login screen

1) create a new xml file as 'webclient_templates.xml' an add below code.
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
 
        <template id="login_layout_inherited_your_module" inherit_id="web.login_layout">
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/your_module/static/src/css/your_css_file.css"/>
            </xpath>
        </template>

        </data>
</openerp>

2) Create a new .css file your  module and add below code.

.container {
background-image: url('/your_module/static/src/img/your_image.jpg');
}

Odoo 9 : Replace 'Powered by Odoo' Footer string

1) Create a new xml file as 'webclient_templates.xml' and add below code.

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
       
        <!-- Purpose : Replace Odoo string and link as per your company's link and name - Added by Nivas M -->
        <template id="inherited_web_menu_secondary" inherit_id="web.menu_secondary">
        <xpath expr="//div[@class='oe_footer']" position="replace">
           <div class="oe_footer">
              Powered by <a href="http://yourcompany.com/" target="_blank"><span>Your Company</span></a>
           </div>
            </xpath>
        </template>

</data>
</openerp>




Friday, 24 June 2016

Odoo 9 Database Backup and Restore

Taking DB backup:

1)      Go to database Manager
2)      Click on backup link in your database
3)      Enter your master password (if you have set Master password).Backup format as: zip (includes filestore)
4)      Extract the downloaded zip file
5)      Your db is now in sql format as dump.sql

Restoring sql format db in new db

1) Create a new db in local with owner selection
2) Go to location
                C:\Program Files\PostgreSQL\9.2\bin -> select psql.exe file
                2.1) (menu)File -> Open commant prompt 


3) Go to comment prompt  and type

   psql.exe  –U db_user db_name < “your sql file location”

4) Enter db_user password
                It data will be start to move from sql format db to your created db.
5) Finally.You can check your data in created db now.