How to Hidden “Manage Databases” Option on Odoo Logon Screen

Because of security control purpose, it is unsafe to publish the whole database management option to public. Hence, I would suggest to change the database management screen from original screen as below Diagram 1 to Diagram 2. To achieve it, you only need to edit the “base.xml” file under …/addons/web/static/src/xml directory as below steps.

Diagram 1manage-db1

Diagram 2manage-db2

 

Step 1:

#cd /usr/lib/python2.7/site-packages/openerp-8.0_c7d8e97-py2.7.egg/openerp/addons/web/static/src/xml

Step 2:

#vi base.xml

Step 3:

Find the section of <form id =”db_create” … until  … </form>  as below and delete those content:

<form id=”db_create” name=”create_db_form” style=”display: block;”>

<div class=”oe_view_manager oe_view_manager_current”>

…..

</form>

And then find the sections of  <form id =”db_drop”… </form>, <form id =”db_restore”… </form>, and <form id =”db_change_password”… </form>, and delete all of them.

Step 4:

Find the following and delete the crossed option:

<t t-name=”DatabaseManager.menu”>

<div class=”oe_secondary_menu_section”>Database Management</div>

<ul class=”oe_secondary_submenu nav nav-pills nav-stacked”>

<li><a href=”#db_create”>Create</a></li>

<li><a href=”#db_duplicate”>Duplicate</a></li>

 <li><a href=”#db_drop”>Drop</a></li>

<li><a href=”#db_backup”>Backup</a></li>

<li><a href=”#db_restore”>Restore</a></li>

<li><a href=”#db_change_password”>Password</a></li>

</ul>

 

Hope It is Useful to You.

Odoo Project Management Training Video

Odoo项目管理 (project management) 是组织活动、计划任务、跟踪问题,记录人力资源成本的组织形式。项目可以分为内部项目(研发活动,加快销售进度),私有项目或者客户参与的项目。 内部用户以项目成员的方式参与到项目中,分享项目的活动讯息。

项目活动预备以下阶段,用户也可按合式的运作需要来修改:

odoo-project-mgt

致於详细的项目管理运作,请參考以下英文版的的 Youtube 下载电影教材:

Odoo Training Videos

OpenERP/Odoo provides many advantages to mid-sized companies. It is open source and can be downloaded for free. No strings attached. A growing community. Easy customization. In this video we look at why OpenERP / Odoo may be a good solution for your business.

Feature comparison between Odoo/OpenERP versions 6 and 7

The differences between OpenERP 6 and OpenERP 7 were staggering and dramatically improved usability of the software. This video goes over some of the major enhancements that came with OpenERP 7.

Importing data into Odoo / OpenERP using XML-RPC

One of the most common requirements for implementing a new ERP system is bringing in data from a variety of sources. This video shows how you can get data into OpenERP / Odoo with very little code. While this video demonstrates this for version 7 the XML-RPC interface remains the same for Odoo 8.
In each video on OdooClass.com we always try focus on real business examples whenever possible. Videos that help you solve real problems with Odoo.

Handling product variants in OpenERP (Odoo) version 6

While product variants is built into Odoo 8, back in version 6 adding product variants required a little more effort. This video shows how product variants could be implemented in OpenERP 6.

Security Concern on Odoo Cloud Implementation – Question & Answer

What is the backup policy of Amazon Cloud Service (or the other servers you’d use)?
We have our own backup platform. Daily backups are replicated in 3 different data centers.
Backup history is kept during 3 months for each customer: 7 daily, 4 weekly, 3 monthly.
Manual backups available on demand via customer control panel.
See also here. Read More

Script to install Odoo OpenERP under Amazon AWS Cloud Platform

How to implement a free-of-charge world-class ERP solution without any hardware investment and maintenance cost ? Here is the solution by using Odoo under Amazon Cloud Platform. Pragmatic Odoo OpenERP is a pre-configured, secured, optimized and ready to run image for running Odoo OpenERP on Amazon EC2 in a production mode. Odoo OpenERP is a very popular business suite of application which covers the most important aspects of running a business including Sales, Purchase, Accounting, Finance, HR, Inventory Management, MRP, and POS. We have created a database with necessary modules such as automatic DB backups, Audit trails, encrypted passwords, warnings and alerts, Dashboards, VAT and some of the other must modules in Odoo OpenERP to run it effectively in production.

Read More

Steps to Install odoo ver8 on Fedora20

I tried to install Odoo version 8 (an open source erp system) under Fedora 20 by using the following script, it worked well.

  • information source: http://share008.blogspot.hk/2014/11/install-odoo-openerp-on-fedora.html
Odoo is a suite of business applications, organized in 6 groups: front-end applications, sales management applications, business operations applications, marketing applications, human resources and productivity applications.
The installation of Odoo 8 on a Fedora20 should take about ten minutes if you follow the very easy steps described below.

Read More

Instruction to Install Odoo (OpenERP) on Lunix

What is Odoo?

Odoo – Previously known as OpenERP is a powerful, opensource product built in Python and released under the AGPL license, with hundreds of free apps to help in building and customizing our own ERP in very short span of time. It has a very simple and interactive UI that makes it popular among the users. It comes up with many useful and comprehensive apps like CRM, Accounting, E-Commerce, WMS(Warehouse Management System), KMS(Knowledge Management System), IM(Instant Messaging), Purchase, POS, Fleet Management, Payroll, HR, Business Intelligence etc.. and users can choose and install apps as per their requirements to boost their business.Even users can add/edit fields on any page simply by turning on the “Developer Mode” – which makes it easy to customize from front end.

For online demo of Odoo apps, you can sign up here and take a free tour: https://accounts.odoo.com/web/signup

Odoo v8 setup:

Odoo has released its latest stable version i.e., V8 on 18th September 2014 with some new features and bug fixes.

Odoo can be set up in Windows, Ubuntu, CentOS, but for better performance & safety it recommends Ubuntu.

Odoo uses Postgresql database server and switching the Db server involves rewriting the entire ORM – which is a very big task.

Following are the steps to install Odoo v8 on ubuntu 14.04 LTS:

Step:1

Make sure you have freshly installed Ubuntu 14.04 LTS with everything up-to-date

sudo apt-get update && upgrade -y

Step:2

Now let’s install all the necessary Python libraries.

sudo apt-get install python-dateutil python-decorator python-docutils python-feedparser \
python-gdata python-gevent python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml\ 
python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel \
python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \
python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-werkzeug \
python-xlwt python-yaml wkhtmltopdf

Step:3

Create the Odoo user that will run the application

sudo useradd openerp -m -s /bin/bash

Step:4

Install and configure the Postgresql DB server

sudo apt-get install postgresql
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Enter password for new role: ********
Enter it again: ********
exit

Step:5

Install the Odoo server. (Install git in case you don’t have it)

sudo apt-get install git

Switch to Openerp user and check out Odoo source repository where you want

sudo mkdir /home/openerp
sudo chown -R openerp:openerp openerp
sudo chmod -R 750 openerp
cd /home/openerp/
sudo su - openerp -s /bin/bash
git clone -b 8.0 https://github.com/odoo/odoo.git

 Step:6

The default configuration file of the server is: /home/openerp/odoo/debian/openerp-server.conf

We’ll copy this config file and put it inside /etc/

sudo cp /home/openerp/odoo/debian/openerp-server.conf /etc/
sudo chown openerp:openerp /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf

Now we need to edit this config file as shown below:

db_password = False
addons_path = /home/openerp/odoo/addons
logfile = /var/log/openerp-server.log

If you are developing a custom module for openerp and its source code is present in a different location, suppose I’m developing a module named import_export which is present in /var/www/projects/ then, in order to load this module along with the other addons of openerp, we have to include this in the addons list of the above config file as :

addons_path = /home/openerp/odoo/addons, /var/www/projects/

Once the config file is edited and saved, then we can execute the following commands to check the server actually runs.

sudo su openerp -s /bin/bash
/home/openerp/odoo/openerp-server

If we end up with end up with a few lines eventually saying OpenERP is running and waiting for connections then we are all set. Now just hitCTRL+C  stop the server and exit to leave openerp user account.

Step:7

Default ports for Odoo are:

Odoo without IM module(i.e., without psycopg2) : 8069

Odoo with IM module enabled (i.e., with psycopg2) : 8072

Postgresql DB server for Odoo : 5432

Note: IM module is Instant Messaging. To enable this module in Openerp we need to run the server using openerp-gevent which requires the python-psycopg2 library. In this case Openerp server will be run on 8072 port.

But if we don’t want this IM module, then we can run openerp-server instead of openerp-gevent and in that case Openerp server will be run on 8069 port.

We can now run Odoo server in different ways.

1. From supervisorctl:

If you don’t have supervisor process manager, you can install it by:

apt-get install supervisor

Once supervisor is all set, then we need to edit the supervisor.conf file (/etc/supervisor/supervisord.conf) to add Openerp as a  program.

[program:openerp]
command=python /home/openerp/odoo/openerp-gevent -c /etc/openerp-server.conf
numprocs=1
directory=/home/openerp/odoo/
stdout_logfile=/var/log/openerp-server.log
autostart=true
autorestart=true
user=openerp
stopsignal=KILL

If you are developing any custom module and want to keep on updating it each time we restart the server, to reflect your changes, then you need to append -u <your module name> at the end of the command shown above i.e., suppose my module name is import_export then:

command= python /home/openerp/odoo/openerp-gevent -c /etc/openerp-server.conf -u import_export

The -c is followed by the config file of openerp and -u for updating modules.-u all stands for updating all modules

The command line options for Openerp are available here:

https://doc.odoo.com/6.0/developer/1_1_Introduction/4_command_line/

Now once the supervisorconf is set, then we have to update it first to read the changes and restart the server:

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl restart openerp

Then on the browser we have to type the following url and reload:

If we are using openerp-gevent (which is for IM module) then url will be :[hostname]:8072

For example: localhost:8072

Otherwise if we are running it with openerp-server (without IM module) then it will use port 8069:

For example: localhost:8069

2. As a service:

To run Odoo as service we have to do the following:

sudo cp /home/openerp/odoo/debian/init /etc/init.d/openerp
sudo vim /etc/init.d/openerp

change DAEMON=/usr/bin/openerp-server

to DAEMON=/home/openerp/odoo/openerp-server

save the file and exit

Now put Odoo as a service:

sudo update-rc.d -f openerp start 20 2 3 4 5

And start your Odoo/Openerp service as:

sudo service openerp start

*** Enjoy Openerp V8 ***

Open ERP System (Odoo system)

Recently, I searched an open source ERP software system for our factory use. Luckily, I found an OpenERP software application system (previous name as TinyERP, now name as Odoo). It is programmed by using Python, a very popular programming tools nowadays. After my preliminary test, I had very width functionality with acceptable performance and easy-to-use. It should be a good software application for SME, and I have to study it in-deep. Read More