Thursday, March 20, 2014

COMMON COMMANDs FOR OpenERP IN LINUX

1. Start the server
Start the server normally
             $ python openerp-server
Start the server with a specific database
             $ python openerp-server --db-filter your_db

2. Shutdown the server
Find the server PID to kill
             $ ps ax | grep openerp-server
             $ kill -2 <pid>
Or just kill the "openerp-server" process without care about its pid
             $ kill -9 $(pgrep -f "openerp-server")

3. Upgrading server, modules
When OpenERP Python code and XML data files changed, we upgrade all modules or just module "base" (I think update "base" is enough, because almost inherit this module) by the following ways, we do this when start OpenERP server
             $ python openerp-server.py --update=all
OR
             $ python openerp-server.py --update=base, and_more_modules 

Thursday, March 6, 2014

Partners Discussion Room (OpenERP - Perfect Business Collaboration Place)

Use OpenERP for your company, version 7 or later! This article will help you to set up:
- A place to discuss between clients on company projects / How to improve ... anything.
- Messaging with media files


This is one of my "OpenERP - Perfect Business Collaboration Place" articles set:
- Messaging room for partners
- Organize Directories & Sharing Documents by Groups
- Announcing Company Events
- Blogging
- Create website frontend by using Website Builder of OpenERP, no need to code.


The purposes are:
Share information about what's going on, share ideas and thoughts for the future. A place to discuss between clients on how to improve company process... Share documents between partners, handbooks, client contracts, employee contracts, confident documents...


I will have my example to demo, for example we want to set up:
- 1 message place for some partners from Lotus company,
- and 1 message place for some partner from Axo company
so that members in Lotus can not see Axo messages.


The overview picture:

In OpenERP, we should create one generic group for all clients, ex: group “Customer”, and this group can access menu “Messaging”, and all specific client groups will inherit this group to have all the rights of “Customer” group.
Therefore, groups “Lotus” and “Axo” can use menu “Messaging” to access to their message place with us. Go to Settings / Groups to create ERP groups, I created groups “Customer”, “Lotus”, “Axo” as below information:


Group “Customer”:
 - Name: Customer
 - Uses: let it blank
 - Inherited list: inherit no group, because we intend to use it as root group for our client groups.
 - Menu: Choose “Messaging”, so that all inherited groups can access this menu item.


Group “Lotus”:
 - Name: Customer / Lotus
 - Portal: Checked
 - Users:
  dave@lotus.com
  jane@lotus.com
 - Inherited: Customer


Group “Axo:
 - Name: Customer / Axo
 - Portal: Checked
 - Users:
  nathan@axo.com
 - Inherited: Customer


Okay, until now we have our ERP groups, now we continue to create Messaging groups associate with these ERP groups, these message groups are messaging place for ERP groups. Go to Messaging / Join a group, then create 2 new messaging groups as below:


Message group “Lotus Forum”:
- Name: Lotus Forum
- (Lock Icon): Authentication Partners
- Privacy: Selected Group Only
- Authorized Group: Customer / Lotus
As the picture below:
 
Message group “Axo Forum”:
- Name: Axo Forum
- (Lock Icon): Authentication Partners
- Privacy: Selected Group Only
- Authorized Group: Customer / Axo



Now you can let your partners have their messaging place with your company, Lotus partners can only view and post their messages, attach there files in message place, they can not view or send messages in Axo messaging place.