[spiderpowa-pdf src=”https://infotechmanagefactory.com/wp-content/uploads/2014/12/Odoo-Presentation-Jun-2014.pdf”]Odoo Presentation – Jun 2014
IT人在工廠日記 – 国内过年前的治安问题
近期我的国内厂区附近发生多起开小车人员,以借手机打电话的名义实施抢夺案件,因为临近年关,是抢盗案件的高发期,所以提醒大家,近期在国内要特别小心治安。
温馨提醒国内工作的人:在个人住所处(厂内宿舍、出租屋等)请勿存放大量现金和贵重物品,个人银行卡和身份证务必分开及要妥善存放。外出时,尽量多人结伴同行,注意四周环境,个人财物不要过度外露,马路上尽量少打电话,更不可将手机借给陌生人,以防止被盗窃、被抢夺。遇到紧急情况,请勿慌张,应及时向路人求救及报警。
关于中国2015年社会保险缴费工资和缴费基数调整
根据东莞《中华人民共和国社会保险法》和《社会保险费征缴暂行条例》
有关规定,东莞市社会保障局要求各企业单位从2015年1月1日起,按东莞
市职工月平均工资2139元标准调整社会保险费缴费工资。按社保分档级缴费
方式,调整后各档级缴费工资标准如下。
1、各档级缴费工资标准
第一级:员工、组长、助理、文员、管理,申报缴费工资为2139元;
第二级:主管,申报缴费工资为2150元;
第三级:工程师,申报缴费工资为2160元;
第四级:经理、高级工程师,申报缴费工资为2170元;
第五级:副总、总经理,申报缴费工资为2180元.
2、各级次个人缴交费用
第一级:市内194.34元/人/月,市外183.65元/人/月;
第二级:市内195.28元/人/月,市外184.53元/人/月;
(第三级:市内196.13元/人/月,市外185.33人/月;
第四级:市内196.98元/人/月,市外186.13元/人/月;
第五级:市内197.83元/人/月,市外186.93元/人/月.
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.
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
The installation of Odoo 8 on a Fedora20 should take about ten minutes if you follow the very easy steps described below.
更換电脑防火墙设备
- 前言
防火墙是电脑网络的重要设备,可以监控和保障网络的通讯,确保资讯流通的效率和安全,这设备已是现今必不可少的工具。
- 现时的防火墙问题
约於十月中开始,本工厂的防火墙设备运作不稳定,连接外网经常断线,影响员工的上网,可是重新启动防火墙後便回复正常。以前每个月需要重启防火墙一至二次,现时每天也有机会需要重启,这可能是因为防火墙设备老化,所以本部建议更换防火墙设备。 Read More
IT人在工廠日記 – 防火墙问题
大约於十月中开始,我公司的防火墙设备运作不稳定,连接外网经常断线,影响员工的上网,可是重启防火墙後便回复正常。以前每个月需要重启防火墙一至二次,现时每天也有机会需要重启,这可能是因为防火墙设备老化所至,而搜索过大部份网上论坛的评语,发现我使用的 Zyxel 防火墙设备的质素和评价差劲,一般只能正常运作三年,而我的 Zyxel 防火墙亦已使用了三年多,所以是时间更换了。
奉劝各位,不要贪平选用 Zyxel 防火墙呀!
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 ***
IT人在工廠日記 – 請佔中學聯不要上京面聖
近日的佔中進展,學聯安排上京面聖,可是,這绝對是挑釁的動作,徹回普選框架的奇蹟不會出現的,請願人士或會被禁入境、或會被監禁,而這只會激發香港佔中人士,令事件更難收科。所有讚成學生上京做烈士的人,居心叵測,絕非出於善意。希望學生不要做蠢事吧!
另外,梁特首在這件事情上,完全表演出其我臥臥底身份的超卓能力,例如:
第一,他從來沒有一個正確的決定或行為是平息佔中事件,只有激化,令香港越亂越好;
第二,搗亂香港對習近平不利,正是江派的原意,是身為江派臥底的首要工作;
第三,搗亂香港亦可討好外國勢力,也是其臥臥底的工作,應有可觀的報酬。
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