SlideShare a Scribd company logo
1 of 8
Download to read offline
Cài đặt, cấu hình Eclipse để lập trình OpenERP
                  7.0 (Windows)
•Bước 1:
•Download Eclipse Classic: http://www.eclipse.org/downloads/
•Download Python 2.7: http://www.python.org/download/releases/2.7/
•Download Pydev: http://sourceforge.net/projects/pydev/files/pydev/PyDev 2.7.1/
•Download OpenERP 7.0 source: http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-
latest.tar.gz
•Download PostgreSQL: http://www.enterprisedb.com/products-services-
training/pgdownload#windows
•Download các mô đun cần thiết để chạy OpenERP 7.0
•Bạn có thể download tất cả các mô đun tại: http://www.mediafire.com/?
3f7gg7yhm6qwpm7
•Hoặc bạn có thể download từng file
•setuptools: http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-
py2.7.exe
•psycopg2: http://www.stickpeople.com/projects...sycopg2-2.4.6.win32-py2.7-pg9.2.2-
release.exe
•Babel: http://pypi.python.org/packages/any/B/Babel/Babel-0.9.6.win32.exe
•simplejson: http://pypi.python.org/packages/source/s/simplejson/simplejson-
3.0.6.tar.gz
•lxml: http://pypi.python.org/packages/2.7/l/lxml/lxml-2.3.win32-py2.7.exe
•pytz: http://pypi.python.org/packages/2.7/p/pytz/pytz-2012j-py2.7.egg
•pywin32: http://nchc.dl.sourceforge.net/project/pywin32/pywin32/Build 218/pywin32-
218.win32-py2.7.exe
•PIL: http://effbot.org/media/downloads/PIL-1.1.7.win32-py2.7.exe
•Pyyaml: http://pyyaml.org/download/pyyaml/PyYAML-3.10.win32-py2.7.exe
•Reportlab: http://pypi.python.org/packages/2.7/r/reportlab/reportlab-2.6.win32-
py2.7.exe
•mako: http://pypi.python.org/packages/source/M/Mako/Mako-0.7.3.tar.gz
•pychart: http://download.gna.org/pychart/PyChart-1.39.tar.gz
•Werkzeug: http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-0.8.3.tar.gz
•datetimeutil: http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-
2.1.tar.gz
•unittest2: http://pypi.python.org/packages/source/u/unittest2/unittest2-0.5.1.tar.gz
•mock: http://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz
•openid: http://pypi.python.org/packages/source/p/python-openid/python-openid-
2.2.5.tar.gz
•docutils: http://pypi.python.org/packages/source/d/docutils/docutils-0.10.tar.gz
•Bước 2:
•Cài đặt Eclipse
•Cài đặt Python
•Cài đặt Pydev
•Giải nén pydev vào thư mục cài đặt Eclipse
•Giải nén OpenERP 7.0 source vào một chỗ nào đó. Ví dụ: C:/source/openerp7
•Cài đặt các bộ thư viện cho python 2.7
•Cài đặt PostgreSQL (nếu chưa cài), sau khi cài xong, dùng pgAdmin II để kết nối vào
PostgreSQL, sau đó tạo một role mới; bạn nên nhớ kĩ username và password của role
mới này, để sau này kết nối OpenERP server và PostgreSQL; ví dụ: username: openerp,
password: openerp123.
•Bước 3:
•Mở Eclipse lên, tạo 1 pydev project mới




•Nhấn Next
•Nhập tên project vào ô Project name
•Lúc chọn Project contents, bỏ dấu check Use default, chọn thư mục OpenERP 7.0
source mà bạn đã giải nén ra, trong trường hợp này là C:/source/openerp7 /thư mục bạn
đã giải nén/
•Chọn Grammar Version phù hợp với bản Python bạn đã cài
•Chọn Interpreter
•Nếu bạn đã cấu hình Python Interpreter thì chọn cái bạn đã cấu hình
•Còn nếu chưa thì: Nhấn vào: Click here to configure interpreter not listed.
•Nhấn vào nút New, dẫn tới nơi Python được cài đặt.
•Nhấn Ok, sau đó nhấn Finish trong hộp thoại tiếp theo.
•Sửa tên file openerp-server thành openerp-server.py
•Copy file openerp-server.conf trong thư mục install (ở trong cùng thư mục với file
openerp-server), để ra cùng với openerp-server.py
•Mở file openerp-server.conf ra, sửa nội dung lại như sau:
•Mã (python):
1.[options]
2.; This is the password that allows database operations:
3.; admin_passwd = admin
4.db_host = localhost
5.db_port = 5432 # cổng kết nối với PostgreSQL
6.db_user = openerp # username của role mới tạo trong PostgreSQL
7.db_password = openerp123 # password của role
•Chạy file openerp-server.py
•Mở trình duyệt web, gõ vào địa chỉ: localhost:8069, là được như hình sau:
•Bước   4: Cài đặt cơ sở dữ liệu mới, hoàn thành.

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Cai dat, cau hinh eclipse de lap trinh open erp 7.0 tren windows

  • 1. Cài đặt, cấu hình Eclipse để lập trình OpenERP 7.0 (Windows) •Bước 1: •Download Eclipse Classic: http://www.eclipse.org/downloads/ •Download Python 2.7: http://www.python.org/download/releases/2.7/ •Download Pydev: http://sourceforge.net/projects/pydev/files/pydev/PyDev 2.7.1/ •Download OpenERP 7.0 source: http://nightly.openerp.com/7.0/nightly/src/openerp-7.0- latest.tar.gz •Download PostgreSQL: http://www.enterprisedb.com/products-services- training/pgdownload#windows •Download các mô đun cần thiết để chạy OpenERP 7.0 •Bạn có thể download tất cả các mô đun tại: http://www.mediafire.com/? 3f7gg7yhm6qwpm7 •Hoặc bạn có thể download từng file •setuptools: http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32- py2.7.exe •psycopg2: http://www.stickpeople.com/projects...sycopg2-2.4.6.win32-py2.7-pg9.2.2- release.exe •Babel: http://pypi.python.org/packages/any/B/Babel/Babel-0.9.6.win32.exe •simplejson: http://pypi.python.org/packages/source/s/simplejson/simplejson- 3.0.6.tar.gz •lxml: http://pypi.python.org/packages/2.7/l/lxml/lxml-2.3.win32-py2.7.exe •pytz: http://pypi.python.org/packages/2.7/p/pytz/pytz-2012j-py2.7.egg •pywin32: http://nchc.dl.sourceforge.net/project/pywin32/pywin32/Build 218/pywin32- 218.win32-py2.7.exe •PIL: http://effbot.org/media/downloads/PIL-1.1.7.win32-py2.7.exe •Pyyaml: http://pyyaml.org/download/pyyaml/PyYAML-3.10.win32-py2.7.exe •Reportlab: http://pypi.python.org/packages/2.7/r/reportlab/reportlab-2.6.win32- py2.7.exe •mako: http://pypi.python.org/packages/source/M/Mako/Mako-0.7.3.tar.gz •pychart: http://download.gna.org/pychart/PyChart-1.39.tar.gz •Werkzeug: http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-0.8.3.tar.gz •datetimeutil: http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil- 2.1.tar.gz •unittest2: http://pypi.python.org/packages/source/u/unittest2/unittest2-0.5.1.tar.gz •mock: http://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz •openid: http://pypi.python.org/packages/source/p/python-openid/python-openid- 2.2.5.tar.gz •docutils: http://pypi.python.org/packages/source/d/docutils/docutils-0.10.tar.gz •Bước 2: •Cài đặt Eclipse •Cài đặt Python •Cài đặt Pydev
  • 2. •Giải nén pydev vào thư mục cài đặt Eclipse •Giải nén OpenERP 7.0 source vào một chỗ nào đó. Ví dụ: C:/source/openerp7 •Cài đặt các bộ thư viện cho python 2.7 •Cài đặt PostgreSQL (nếu chưa cài), sau khi cài xong, dùng pgAdmin II để kết nối vào PostgreSQL, sau đó tạo một role mới; bạn nên nhớ kĩ username và password của role mới này, để sau này kết nối OpenERP server và PostgreSQL; ví dụ: username: openerp, password: openerp123. •Bước 3: •Mở Eclipse lên, tạo 1 pydev project mới •Nhấn Next
  • 3. •Nhập tên project vào ô Project name •Lúc chọn Project contents, bỏ dấu check Use default, chọn thư mục OpenERP 7.0 source mà bạn đã giải nén ra, trong trường hợp này là C:/source/openerp7 /thư mục bạn đã giải nén/ •Chọn Grammar Version phù hợp với bản Python bạn đã cài •Chọn Interpreter •Nếu bạn đã cấu hình Python Interpreter thì chọn cái bạn đã cấu hình •Còn nếu chưa thì: Nhấn vào: Click here to configure interpreter not listed.
  • 4. •Nhấn vào nút New, dẫn tới nơi Python được cài đặt.
  • 5. •Nhấn Ok, sau đó nhấn Finish trong hộp thoại tiếp theo.
  • 6. •Sửa tên file openerp-server thành openerp-server.py •Copy file openerp-server.conf trong thư mục install (ở trong cùng thư mục với file openerp-server), để ra cùng với openerp-server.py •Mở file openerp-server.conf ra, sửa nội dung lại như sau: •Mã (python): 1.[options] 2.; This is the password that allows database operations: 3.; admin_passwd = admin 4.db_host = localhost 5.db_port = 5432 # cổng kết nối với PostgreSQL 6.db_user = openerp # username của role mới tạo trong PostgreSQL 7.db_password = openerp123 # password của role •Chạy file openerp-server.py
  • 7. •Mở trình duyệt web, gõ vào địa chỉ: localhost:8069, là được như hình sau:
  • 8. •Bước 4: Cài đặt cơ sở dữ liệu mới, hoàn thành.