Author Topic: odoo for openerp on linux  (Read 7857 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
odoo for openerp on linux
« on: กุมภาพันธ์ 06, 2016, 04:46:21 PM »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: odoo for openerp on linux
« Reply #1 on: กุมภาพันธ์ 06, 2016, 05:26:38 PM »
Nightly repositories
To benefit from the best experience of our nightlies, you should use our repositories. They are available for Debian (and similar distributions like Ubuntu) and RedHat distributions (esp. Centos and Fedora). Using an Odoo nightly repository, you will be able to install and upgrade Odoo with the help of your traditional package manager (apt or yum).

If you plan to run the PostgreSQL cluster on the same host than the Odoo one, install PostgreSQL before. This way, Odoo will be able to create and configure its user.
If you want to use a nightly repository for the 7.0 version, the name of the package is openerp.

Setup of the Debian nightly repository details

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo
Setup of the RedHat nightly repository details

yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo
yum update && yum install odoo


golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: odoo for openerp on linux
« Reply #2 on: กุมภาพันธ์ 08, 2016, 11:38:06 PM »
Remove MariaDB from your server:

yum remove mariadb mariadb-server
Ensure that your yum package repository is up to date and all installed packages have been upgraded with the latest bug fixes and security patches using the following commands:

yum clean all
yum update
Install PostgreSQL and PHP PostgreSQL extension:

yum install postgresql-libs postgresql-server postgresql php-pgsql php-gd
Install all prerequisite packages using the following command:

yum install babel python-devel libxslt-python pyparsing python-dateutil python-decorator python-imaging python-jinja2 python-ldap python-lxml python-mako python-psycopg2 python-reportlab python-requests python-werkzeug python-yaml python-docutils  python-matplotlib python-unittest2.noarch python-babel python-gevent pygtk2 glade3 pytz libxslt-devel bzr automake gcc gcc-c++ byacc kernel-headers
Restart the Apache web server:

systemctl restart httpd.service
Initialize the PostgreSQL database cluster:

postgresql-setup initdb
Configure the PostgreSQL service to start automatically on server boot:

systemctl enable postgresql.service
Start PostgreSQL service and set a password for the ‘postgres’ user:

systemctl start postgresql.service
su - postgres
psql
\password postgres
(Enter new password twice)
\q
exit
Create new system user named ‘odoo’:

adduser odoo
passwd odoo
Create ‘odoo’ user in PostgreSQL using the following command:

su - postgres -c "createuser --pwprompt --createdb --no-createrole --no-superuser odoo"
(Enter new 'odoo' user password twice)
Download the latest version of Odoo and extract it to the ‘/opt’ directory on your virtual server:

cd /opt
wget http://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz
tar -xvzf /root/odoo_8.0.latest.tar.gz
mv odoo-8.* odoo
cd odoo
Install Odoo 8:

python setup.py install
cp openerp-server /usr/local/bin/odoo-server
mkdir -p /var/log/odoo/
touch /var/log/odoo/odoo-server.log
chown odoo /var/log/odoo/odoo-server.log
chmod 644 /var/log/odoo/odoo-server.log
Give the ‘odoo’ user permission to install new modules:

chown odoo -R /usr/lib/python2.7/site-packages/odoo-8*/openerp/addons/
Run the following commands:

vi ~odoo/.bashrc
export LD_LIBRARY_PATH; LD_LIBRARY_PATH=/usr/local/lib
source ~odoo/.bashrc
Edit the ‘/etc/odoo-server.conf’ configuration file and add the following lines:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo
db_password = False
addons_path = /usr/lib/python2.7/site-packages/odoo-8.0_20150306-py2.7.egg/openerp/addons/
#do not forget to change 'odoo-8.0_20150306-py2.7.egg' with the actual directory on your server
logfile = /var/log/odoo/odoo-server.log
log_level = error
Edit the ‘/var/lib/pgsql/data/pg_hba.conf’ configuration file and allow local access to PostgreSQL databases:

vi /var/lib/pgsql/data/pg_hba.conf
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust # changed from 'peer'
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust # changed from 'ident'
# IPv6 local connections:
host    all             all             ::1/128                 trust # changed from 'ident'
Optionally, if you want to allow remote access to PostgreSQL databases, add the following line to ‘/var/lib/pgsql/data/pg_hba.conf’ configuration file:

host    all             all             0.0.0.0/0               md5
Check the PostgreSQL server encoding:

su - postgres
psql
postgres=# \l
                             List of databases
   Name    |  Owner   | Encoding  | Collate | Ctype |   Access privileges
-----------+----------+-----------+---------+-------+-----------------------
 postgres  | postgres | SQL_ASCII | C       | C     |
 template0 | postgres | SQL_ASCII | C       | C     | =c/postgres          +
           |          |           |         |       | postgres=CTc/postgres
 template1 | postgres | SQL_ASCII | C       | C     | =c/postgres          +
           |          |           |         |       | postgres=CTc/postgres
To change the template1 encoding to UTF8, run the following commands:

update pg_database set datallowconn = TRUE where datname = 'template0';
\c template0
update pg_database set datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 encoding = 'UTF8';
update pg_database set datistemplate = TRUE where datname = 'template1';
\c template1
update pg_database set datallowconn = FALSE where datname = 'template0';
\q
Restart the PostgreSQL server:

systemctl restart postgresql.service
To start Odoo automatically when the server is booted, add a systemd unit file with the following content:

vi /usr/lib/systemd/system/odoo.service
[Unit]
Description=Advanced OpenSource ERP and CRM server
Requires=postgresql.service
After=postgresql.service
[Install]
Alias=odoo.service
[Service]
Type=simple
PermissionsStartOnly=true
EnvironmentFile=-/etc/conf.d/odoo-server
User=odoo
Group=odoo
SyslogIdentifier=odoo-server
PIDFile=/run/odoo/odoo-server.pid
ExecStartPre=/usr/bin/install -d -m755 -o odoo -g odoo /run/odoo
ExecStart=/usr/local/bin/odoo-server -c /etc/odoo-server.conf --pid=/run/odoo/odoo-server.pid --syslog $OPENERP_ARGS
ExecStop=/bin/kill $MAINPID
[Install]
WantedBy=multi-user.target
The last thing left to do is enabling and starting up the service:

systemctl enable odoo.service
Start Odoo:

systemctl start odoo.service
Open http://your-server-IP:8069/web/database/manager and create a new database.


sakexcel02

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: odoo for openerp on linux
« Reply #4 on: พฤษภาคม 14, 2016, 01:21:05 PM »
 :) best

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: odoo for openerp on linux
« Reply #5 on: พฤษภาคม 17, 2016, 03:34:39 PM »
script for odoo 8 on ubuntu 14
https://www.techreceptives.com/blog/odoo-news-1/post/step-by-step-guide-to-install-odoo-v8-on-ubuntu-14-04-lts-10

cd /root
sudo wget bit.ly/odoo_v8 && bash odoo_v8

#!/bin/bash
sudo adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 'odoo' --group odoo
sudo mkdir /etc/odoo && mkdir /var/log/odoo/
sudo apt-get update && apt-get upgrade -y && apt-get install postgresql postgresql-server-dev-9.3 build-essential python-imaging python-lxml python-ldap python-dev libldap2-dev libsasl2-dev npm nodejs git python-setuptools libxml2-dev libxslt1-dev libjpeg-dev python-pip gdebi -y
git clone --depth=1 --branch=8.0 https://github.com/odoo/odoo.git /opt/odoo/odoo
sudo chown odoo:odoo /opt/odoo/ -R && sudo chown odoo:odoo /var/log/odoo/ -R && cd /opt/odoo/odoo && sudo pip install -r requirements.txt
sudo npm install -g less less-plugin-clean-css -y && sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /tmp && wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && sudo gdebi -n wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && rm wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin/ && sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin/
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && sudo gunzip GeoLiteCity.dat.gz && sudo mkdir /usr/share/GeoIP/ && sudo mv GeoLiteCity.dat /usr/share/GeoIP/
sudo su - postgres -c "createuser -s odoo"
sudo su - odoo -c "/opt/odoo/odoo/odoo.py --addons-path=/opt/odoo/odoo/addons -s --stop-after-init"
sudo mv /opt/odoo/.openerp_serverrc /etc/odoo/openerp-server.conf
sudo cp /opt/odoo/odoo/debian/init /etc/init.d/odoo && chmod +x /etc/init.d/odoo
sudo ln -s /opt/odoo/odoo/odoo.py /usr/bin/odoo.py
sudo update-rc.d -f odoo start 20 2 3 4 5 .
sudo service odoo start

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: odoo for openerp on linux
« Reply #6 on: พฤษภาคม 17, 2016, 03:44:35 PM »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: odoo for openerp on linux
« Reply #7 on: มิถุนายน 14, 2016, 04:08:25 PM »
CRM คืออะไร
CRM ย่อมาจาก Customer Relationship Management คือ การบริหารความสัมพันธ์กับลูกค้า ซึ่งหมายถึงวิธีการที่เราจะบริหารให้ลูกค้ามีความรู้สึกผูกพันธ์กับสินค้า ,บริการ หรือองค์กรของเรา เมื่อลูกค้าเค้ามีความผูกพันธ์ในทางที่ดีกับเรา แล้วก็ลูกค้านั้นไม่คิดที่จะเปลี่ยนใจไปจากสินค้าหรือบริการของเรา ทำให้เรามีฐานลูกค้าที่มั่้นคง และนำมาซึ่งความมั่นคงของบริษัท ดังนั้น การที่จะรู้ซึ้งถึงสถานะความผูกพันธ์กับลูกค้าได้นั้น เราก็ต้องอาศัยการสังเกตุพฤติกรรมของลูกค้า แล้วนำมาวิเคราะห์หาความเกี่ยวข้องระหว่าง พฤติกรรมของลูกค้ากับกลยุทธ์ทางการตลาดของเรา กระบวนการทำงานของระบบ CRM มี 4 ขั้นตอนดังนี้
    1.Identify เก็บข้อมูลว่าลูกค้าของบริษัทเป็นใคร เช่น ชื่อลูกค้า ข้อมูลสำหรับติดต่อกับลูกค้า
    2.Differentiate วิเคราะห์พฤติกรรมของลูกค้าแต่ละคน และจัดแบ่งลูกค้าออกเป็นกลุ่มตามคุณค่าที่ลูกค้ามีต่อบริษัท
    3.Interact มีปฏิสัมพันธ์กับลูกค้าเพื่อเรียนรู้ความต้องการของลูกค้า และเพื่อสร้างความพึงพอใจให้กับลูกค้าในระยะยาว
    4.Customize นำเสนอสินค้าหรือบริการที่มีความเหมาะสมเฉพาะตัวกับลูกค้าแต่ละคน

CRM มีความสัมพันธ์เกี่ยวกับเทคโนโลยีสารสนเทศในด้านการนำซอฟต์แวร์มาใช้ในการพัฒนาเพื่อดึงดูดลูกค้า สร้างความสัมพันธ์กับลูกค้า เช่น Web Site เป็นต้น CRM software  ช่วยในการจัดการฐานข้อมูลลูกค้า วิเคราะห์ข้อมูล และเป็นช่องทางในการติดต่อกับลูกค้า ซึ่ง CRM software มักแบ่งออกเป็น 3 ส่วนดังนี้
    1.Operational CRM เป็นซอฟท์แวร์ front office ที่ใช้ช่วยจัดการกระบวนการทางธุรกิจที่เกี่ยวข้องกับลูกค้า ไม่ว่าจะเป็น sales, marketing หรือ service เช่น การจัดการข้อมูลติดต่อลูกค้า การเสนอราคา การบริหารฝ่ายขาย การเก็บข้อมูลพฤติกรรมลูกค้า ระบบบริการลูกค้า เป็นต้น
    2.Analytical CRM ระบบวิเคราะห์ข้อมูลลูกค้าที่รวบรวมได้จากส่วน Operational CRM หรือจากแหล่งอื่นๆ เพื่อแบ่งลูกค้าออกเป็นกลุ่มและค้นหากลุ่มลูกค้าเป้าหมายที่บริษัทสามารถนำเสนอสินค้า หรือบริการเพิ่มเติมได้
    3.Collaborative CRM ระบบช่วยสนับสนุนในการติดต่อปฏิสัมพันธ์กับลูกค้าผ่านทางช่องทางต่างๆ เช่น ติดต่อส่วนตัว จดหมาย แฟกซ์ โทรศัพท์ เว็บไซต์ E-Mail เป็นต้น รวมถึงช่วยจัดการทรัพยากรที่บริษัทมีคือพนักงาน กระบวนการทำงาน และฐานข้อมูล (Database ) ลูกค้า เพื่อนำไปให้บริการแก่ลูกค้าและช่วยรักษาฐานลูกค้าของบริษัทได้ดีขึ้น

ประโยชน์ของ CRM ต่อธุรกิจ
1.CRM ช่วยเพิ่มความสามารถในการให้บริการลูกค้าได้ดีขึ้น เช่น ใช้เว็บไซต์ในการให้ข้อมูลเกี่ยวกับสินค้า วิธีการใช้สินค้า และให้ความช่วยเหลือแก่ลูกค้าได้ตลอด 24 ชั่วโมง เป็นช่องทางให้ลูกค้าแนะนำติชมต่อบริการของบริษัทได้ง่าย ช่วยให้ลูกค้าสามารถ customize ความต้องการของตนเองได้ทันที เป็นต้น

2.CRM ช่วยพัฒนาความสัมพันธ์ระหว่างบริษัทกับลูกค้าให้ดีขึ้น ช่วยให้บริษัทรู้ความสนใจ ความต้องการ และพฤติกรรมการซื้อของลูกค้า ทำให้บริษัทสามารถนำเสนอสินค้าที่เหมาะสม กับลูกค้าได้ และช่วยให้บริษัทสามารถให้บริการหลังการขายแก่ลูกค้าตามที่ลูกค้าต้องการได้ การสร้างความสัมพันธ์กับลูกค้าในระยะยาวจะช่วยเพิ่ม loyalty ที่ลูกค้ามีต่อบริษัท ลดการสูญเสียลูกค้า ลดต้นทุนการตลาด เพิ่มรายได้จากการที่ลูกค้าซื้อซ้ำหรือแนะนำให้คนรู้จักซื้อสินค้าของบริษัท และนั่นหมายถึงกำไรของบริษัทที่เพิ่มมากขึ้น

ขอบคุณข้อมูลจาก : http://www.mindphp.com/%E0%B8%84%E0%B8%B9%E0%B9%88%E0%B8%A1%E0%B8%B7%E0%B8%AD/73-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3/2072-crm-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3.html

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: odoo for openerp on linux
« Reply #8 on: สิงหาคม 03, 2017, 09:17:45 PM »
## ODOO9 on Ubuntu 16.06LTS
reference :https://www.odoo.yenthevg.com/installing-odoo-9-ubuntu-16-04/

apt-get update
apt-get upgrade

sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/All/odoo_install.sh
sudo vi odoo_install.sh
sudo chmod +x odoo_install.sh
./odoo_install.sh

port default จะเป็น 8069 ครับ
ถ้าใช้งาน ODOO (OpenERP) ใน GCP (Google Cloud Platform) ต้องทำการรัน ให้เปิด port 8069
#iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8069
แล้วเปิด  Allow HTTP traffic (http 80 ) บนตัว Instance ด้วย.

หลังจากนั้นก็เปิดเข้า web โดยไม่ต้องใส่ port 8069 ครับผม
http://ip_addr
« Last Edit: สิงหาคม 04, 2017, 09:27:21 AM by golfreeze »