Community News http://www.openerp.com/planet/rss Community News Feeds en Akretion : Open calling partner in 1 click with the OpenERP-Asterisk connector http://feedproxy.google.com/~r/akretion/~3/ZE02ScykVCE/ <h2>Open calling partner in 1 click with the OpenERP-Asterisk connector</h2> <p>Akretion, the author of the <a href="https://launchpad.net/openerp-asterisk-connector">OpenERP-Asterisk connector</a>, is proud to announce the immediate availability of a new feature on the connector: the ability to open the calling partner in one click in OpenERP.</p> <p>Here is a typical usage scenario of this new feature:</p> <ol> <li><p>Someone calls you and you pickup the phone. You click on the button <em>Open calling partner</em> in OpenERP : OpenERP sends a query to Asterisk to get a list of the current phone calls.</p></li> <li><p>If OpenERP finds a phone call involving the user&rsquo;s phone, it gets the phone number of the calling party.</p></li> <li><p>OpenERP searches the phone number of the calling party in its database and, if a record matches, it shows the name of the related Partner and proposes to open it, or open its related sale orders or invoices:</p></li> </ol> <p><img src="http://akretion.s3.amazonaws.com/assets/ast_sshot-calling-party.jpg" alt="Open calling partner feature" /></p> <p>Another incredible thing about this new feature is that it&rsquo;s already fully documented on the <a href="/en/products-and-services/openerp-asterisk-voip-connector">dedicated web page</a> on Akretion&rsquo;s Web site.</p> <p>This page also presents Akretion&rsquo;s service offering to help you deploy the OpenERP-Asterisk connector. Who can better help you deploy this solution than the author of the module himself ?</p> <p>Please note that this new feature is only available for OpenERP <strong>version 6.1</strong> for the moment. But Akretion can backport it to your version of OpenERP on request.</p> Sun, 13 May 2012 02:00:00 +0200 Akretion : Formation OpenERP - Magento/PrestaShop : 3-4-5 juillet 2012 - Lyon ou Paris http://feedproxy.google.com/~r/akretion/~3/SkF2xOTN5pk/ Tue, 24 Apr 2012 02:00:00 +0200 OpenERP 5.0 : Welcome to New CTP Partner In Malaysia ! http://openerp-team.blogspot.com/2012/04/welcome-to-new-ctp-partner-in-malaysia.html <div dir="ltr" style="text-align: left;" trbidi="on"><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-bd5J_dJ4n3o/T5UAZz_A3PI/AAAAAAAAA8s/bTixBS7xr5o/s1600/ingenuity_logo2.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-bd5J_dJ4n3o/T5UAZz_A3PI/AAAAAAAAA8s/bTixBS7xr5o/s1600/ingenuity_logo2.png" /></a></div><div style="text-align: justify;">We are happy to announce that we have added new CTP Partner in Open ERP community. OpenERP has designed a Certified Training Partner Program to leverage OpenERP training capabilities worldwide.This program aim is to enable OpenERP Partners to provide a consistent and high quality level of training. OpenERP Partners who wish to be appointed as a Certified Training Partner They provide specialized functional and Technical Training aspects in ERP solutions comprising- Product lifecycle management, Supply chain management, Warehouse Management, Customer Relationship Management, Sales Order Processing, Online Sales, Financials, Human Resources and Decision Support System etc. Now they have joined hands with us to give new reach to Open ERP application.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">INGENUITY is a Malaysian company synonymous with Provision of ready-to-market business software, Open source ERP solutions, Deployment of hardware and ICT related integration services, Consumer and retail IT and electronics, Research and development of enterprise applications.&nbsp;</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">With the capabilities to deliver comprehensive IT solutions from SMEs to MNCs, Ingenuity provides tailored ERP solutions to meet business requirements by integrating existing databases with business applications such as Accounting, CRM, Warehousing, Logistic, HRM, Marketing, Project, Manufacturing for our clients in various industries.&nbsp;</div><div style="text-align: justify;"><br /></div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7097521503264860891-6170819487943098742?l=openerp-team.blogspot.com' alt='' /></div> Mon, 23 Apr 2012 09:12:00 +0200 Agile Business Group : Super Calendar http://planet.domsense.com/en/2012/04/openerp-super-calendar/?utm_source=rss&utm_medium=rss&utm_campaign=openerp-super-calendar <p>OpenERP provides a very flexible way to manage several types of views, like tree, form, kanban, gantt and calendar. This means, for instance, that you can view your or scheduled calls calendar by simply clicking on the &#8216;calendar&#8217; button from the list view.</p> <p>But what if you want to see all your deadlines within a unique calendar view?</p> <p>You can use the <a href="http://apps.openerp.com/addon/6899">super calendar</a> <img src='http://planet.domsense.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p> <h1>Configuration</h1> <p>After installing the module you can go to</p> <p>Super calendar → Configuration → Configurators</p> <p>and create a new configurator. For instance, if you want to see meetings and phone calls, you can create the following lines</p> <p><a href="http://planet.domsense.com/wp-content/uploads/2012/04/meetings.png"><img class="alignnone size-medium wp-image-1436" title="meetings" src="http://planet.domsense.com/wp-content/uploads/2012/04/meetings-300x116.png" alt="" width="300" height="116" /></a></p> <p><a href="http://planet.domsense.com/wp-content/uploads/2012/04/phone_calls.png"><img class="alignnone size-medium wp-image-1437" title="phone_calls" src="http://planet.domsense.com/wp-content/uploads/2012/04/phone_calls-300x100.png" alt="" width="300" height="100" /></a></p> <p>Then, you can use the &#8216;Generate Calendar&#8217; button or wait for the scheduled action (&#8216;Generate Calendar Records&#8217;) to be run.</p> <p>When the calendar is generated, you can visualize it by the &#8216;super calendar&#8217; main menu.</p> <p>Here is a sample monthly calendar:</p> <p><a href="http://planet.domsense.com/wp-content/uploads/2012/04/month_calendar.png"><img class="alignnone size-medium wp-image-1439" title="monthly calendar" src="http://planet.domsense.com/wp-content/uploads/2012/04/month_calendar-300x151.png" alt="" width="300" height="151" /></a></p> <p>And here is the weekly one:</p> <p><a href="http://planet.domsense.com/wp-content/uploads/2012/04/week_calendar.png"><img class="alignnone size-medium wp-image-1440" title="weekly calendar" src="http://planet.domsense.com/wp-content/uploads/2012/04/week_calendar-300x159.png" alt="" width="300" height="159" /></a></p> <p>As you can see, several filters are available. A typical usage consists in filtering by &#8216;Configurator&#8217; (if you have several configurators, &#8216;Scheduled calls and meetings&#8217; can be one of them) and by your user. Once you filtered, you can save the filter as &#8216;Advanced filter&#8217; or even add it to a dashboard.</p> <p>As usual, you can find code and bug tracker on our <a href="https://launchpad.net/domsense-agilebg-addons">launchpad project</a>.</p> Tue, 17 Apr 2012 19:24:55 +0200 Agile Business Group : How to create an OpenERP module: the easy way http://planet.domsense.com/en/2012/04/how-to-create-an-openerp-module-the-easy-way/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-create-an-openerp-module-the-easy-way <p>Every OpenERP developer or integrator knows how can be annoying to create a new module or to add new features (like views,actions, etc) to it. There are several approaches for bootstrapping it.</p> <p>The first, the most common I think, is to copy &amp; paste an existing module (or an empty one), rename it, and replace all the bits to fit your needs. The second is to use an IDE like Eclipse or TextMate or Sublime-text and create or load all the predefined snippets you need.</p> <p>This requires a little time but still, can be avoided. Also, could lead to errors, typos, etc, and this <em>must</em> be avoided.</p> <p>Starting from my <a title="Plone website" href="http://plone.org/" target="_blank">Plone</a> background where tools like <a title="ZopeSkel on pypi" href="http://pypi.python.org/pypi/ZopeSkel" target="_blank">ZopeSkel</a> and <a title="Paste project" href="http://pythonpaste.org/" target="_blank">Paste</a> (coupled with <a title="Buildout project" href="http://www.buildout.org/" target="_blank">Buildout</a> ) are  today mainstream solutions for bootstrapping our  development environments and creating new packages, I tried to get rid of this c&amp;p approach.</p> <p>I released a package called <a title="OpenERP bootstrap package" href="http://pypi.python.org/pypi/openerp_bootstrap" target="_blank">openerp_bootstrap</a> aimed at speeding up the creation of new modules and new features. For the time being there are only two templates ready to be used:</p> <ul> <li><strong>openerp_newmodule</strong> that lets you create a basic generic module</li> <li><strong>openerp_theme</strong> that lets you create a basic custom web theme</li> </ul> <p>Let&#8217;s see how to use them. First of all install openerp_bootstrap using python setuptools or distribute:</p> <pre class="shell">sudo easy_install openerp_bootstrap</pre> <pre class="shell">sudo pip install openerp_bootstrap</pre> <p>After that, a new executable called &#8216;paster&#8217; will be available. You can list the available templates by running:</p> <pre class="shell"># paster create --list-templates Available templates: basic_package: A basic setuptools-enabled package openerp_newmodule: Template for creating a basic openerp package skeleton openerp_theme: Template for creating a basic openerp theme skeleton paste_deploy: A web application deployed through paste.deploy</pre> <p>&nbsp;</p> <p>As you can see, there are two openerp_* templates. You can use them by calling &#8216;paster create -t $TEMPLATE_NAME&#8217;. When you call it you will be prompted with step-by-step questions that will allow you to customize your module while creating it. Let&#8217;s see an example:</p> <pre class="shell"> # paster create -t openerp_newmodule Selected and implied templates: openerp-bootstrap#openerp_newmodule Template for creating a basic openerp package skeleton Enter project name: my_new_module Variables: egg: my_new_module package: my_new_module project: my_new_module Enter module_name (Module name (like "Project Issue")) ['My Module']: My new shiny module Enter description (One-line description of the module) ['']: A module that does this and that Enter version (Version) ['1.0']: Enter author (Author name) ['']: John Doe Enter author_email (Author email) ['']: john@doe.com Enter category (Category) ['']: Enter website (Website) ['']: www.johndoe.com Enter depends (Dependencies [space-separated module names]) ['']: account Enter is_web (Is web addon? [yes/no]) ['no']: Creating template openerp_newmodule Creating directory ./my_new_module Copying __init__.py to ./my_new_module/__init__.py Copying __openerp__.py_tmpl to ./my_new_module/__openerp__.py </pre> <p>And, here we go! We&#8217;ll find all the data we need into our module&#8217;s manifest (__openerp__.py):</p> <pre class="shell"> # cat ./my_new_module/__openerp__.py # -*- coding: utf-8 -*- { 'name': 'My new shiny module', 'version': '1.0', 'category': '', 'description': """A module that does this and that""", 'author': 'John Doe (john@doe.com)', 'website': 'www.johndoe.com', 'license': 'AGPL-3', 'depends': ['account'], 'init_xml': [], 'update_xml': [], 'demo_xml': [], 'active': False, 'installable': True, } </pre> <p>Let&#8217;s create a theme now:</p> <pre class="shell"> # bin/paster create -t openerp_theme Selected and implied templates: openerp-bootstrap#openerp_theme Template for creating a basic openerp theme skeleton Enter project name: my_custom_theme Variables: egg: my_custom_theme package: my_custom_theme project: my_custom_theme Enter module_name (Module name (like "My Theme")) ['My Theme']: My brand new theme Enter description (One-line description of the module) ['']: Customer X project theme Enter version (Version) ['1.0']: Enter author (Author name) ['']: Mr Foo Enter author_email (Author email) ['']: mr@foo.com Enter category (Category) ['']: Enter website (Website) ['']: www.foo.com Enter depends (Dependencies [space-separated module names]) ['']: project Enter has_css (Needs CSS? [yes/no]) ['yes']: Enter has_js (Needs Javascript? [yes/no]) ['yes']: Enter has_xml (Needs QWeb XML? [yes/no]) ['no']: Creating template openerp_theme Creating directory ./my_custom_theme Copying __init__.py to ./my_custom_theme/__init__.py Copying __openerp__.py_tmpl to ./my_custom_theme/__openerp__.py Recursing into static Creating ./my_custom_theme/static/ Recursing into css Creating ./my_custom_theme/static/css/ Copying +normalized_name+.css_tmpl to ./my_custom_theme/static/css/my_custom_theme.css Recursing into js Creating ./my_custom_theme/static/js/ Copying +normalized_name+.js_tmpl to ./my_custom_theme/static/js/my_custom_theme.js Recursing into xml Creating ./my_custom_theme/static/xml/ Copying +normalized_name+.xml_tmpl to ./my_custom_theme/static/xml/my_custom_theme.xml </pre> <p>This will create a web module with all the static resources you need ready to be customized.</p> <pre class="shell"> # cat ./my_custom_theme/__openerp__.py # -*- coding: utf-8 -*- { 'name': 'My brand new theme', 'version': '1.0', 'category': '', 'description': """Customer X project theme""", 'author': 'Mr Foo (mr@foo.com)', 'website': 'www.foo.com', 'license': 'AGPL-3', 'depends': ['project', 'web'], 'init_xml': [], 'update_xml': [], 'demo_xml': [], 'active': False, 'installable': True, 'web':True, 'css': [ 'static/css/my_custom_theme.css', ], 'js': [ 'static/js/my_custom_theme.js', ], } </pre> <pre class="shell"> # ls my_custom_theme/static/* my_custom_theme/static/css: my_custom_theme.css my_custom_theme/static/js: my_custom_theme.js </pre> <p>Was that difficult? <img src='http://planet.domsense.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> And now the most important &#8211; but still missing &#8211; part: add modules&#8217; contents like views, classes, fields, etc. Using PasteScript &#8216;local commands&#8217; we&#8217;ll be able to add sub-templates for adding new objects and customize them on the fly, doing something like:</p> <pre class="shell"> # cd my_new_module # paster addcontent newmodel project.custom.model [...] # paster addcontent field project_custom_model [...] </pre> <p>Wouldn&#8217;t be great? That&#8217;s all for the moment.</p> <p>The development package it&#8217;s on <a href="https://github.com/simahawk/openerp_bootstrap" title="OpenERP bootstrap package" target="_blank">github</a>. Feel free to fork and contribute back or to submit <a href="https://github.com/simahawk/openerp_bootstrap/issues" title="OpenerERP bootstrap issues" target="_blank">issues</a>.</p> <p>NOTE: the package is still in alpha state so it could be a little bit buggy <img src='http://planet.domsense.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p> Tue, 03 Apr 2012 17:08:45 +0200 Novapoint Group : How To Make Deposit Tickets in OpenERP http://www.novapointgroup.com/blog/86-how-to-make-deposit-tickets-in-openerp <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: ">NovaPoint Group LLC (<a href="http://www.novapointgroup.com" target="_blank" title="NovaPoint Group">www.novapointgroup.com</a>), an OpenERP Partner, has created a new Make Deposit Ticket module to help customers create and manage bank deposit tickets made of multiple deposit items (e.g. multiple checks, checks and cash, etc). </span><span style="font-size: 11pt;">The module was designed at the request and input of multiple US clients, and after benchmarking the basic capabilities of other ERP/Accounting systems. </span><span style="font-size: 11pt; font-family: ">The module can be found on apps.openerp.com and is named <a href="http://apps.openerp.com/addon/7003?filter={%22order_by%22%3A+%22click_counter+desc%22%2C+%22text_search%22%3A+%22Bank+Deposit+Ticket+%22}&amp;page=0" target="_blank" title="Module Link">npg_account_make_deposit</a>. <br /></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: ">The purpose of the module:</span></p> <ul> <li> <p><span style="font-size: 11pt; font-family: ">Easily group customer payments received into deposit tickets</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Help improve bank account and statement reconciliation<br /></span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Support segregation of duties for financial control<br /></span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Match existing processes used by many "check centric" or retail companies</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Support multiple types of bank accounts</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Be easy to use<br /></span></p> </li> </ul> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: ">The module manages:</span></p> <ul> <li> <p><span style="font-size: 11pt; font-family: ">The creation of Deposit Tickets</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Which deposit items are assigned to deposit tickets</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Automatic capturing of Deposit Ticker preparer and verifier information</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">Security - Preparer and Verifier Groups</span></p> </li> <li> <p><span style="font-size: 11pt; font-family: ">GL entries automatic generated for deposit tickets</span></p> </li> <li><span style="font-size: 11pt; font-family: ">Correcting deposit tickets</span></li> </ul> <p><span style="font-size: 11pt; font-family: ">The module supports following Deposit Ticket process:</span></p> <p><img src="http://www.novapointgroup.com/images/stories/makedeposit/bankdepositticket_step1.jpg" border="0" alt="Make Deposit Process Flow Step 1" title="Make Deposit Process Flow" width="400" style="vertical-align: middle; border: 2px solid black;" /></p> <p><img src="http://www.novapointgroup.com/images/stories/makedeposit/bankdepositticket_step2.jpg" border="0" alt="Make Deposit Process Flow Step 2" title="Make Deposit Process Flow Step 2" width="400" style="vertical-align: middle; border: 2px solid black;" /></p> <p><span style="font-size: 11pt; font-family: ">The sample make deposit form view: </span></p> <p><img src="http://www.novapointgroup.com/images/stories/makedeposit/depositticketform.png" border="0" alt="Make Deposit Form View" title="Make Deposit Form View" width="500" style="vertical-align: middle; border: 2px solid black;" /></p> <p><span style="font-size: 11pt; font-family: ">The module also supports tracking the Method of Deposit (e.g. Teller, ATM, Night Drop, Remote Deposit Capture, Mobile Deposit Capture), Deposit Bag #'s, and Deposit Receipt Tracking #'s.<br /></span></p> <p><span style="font-size: 11pt; font-family: ">Addition future enhancements planned include a new webkit Deposit Ticket Summary Report, and the ability to print MICR deposit tickets for the bank.</span></p> <p><span style="font-size: 11pt; font-family: ">The module also includes detailed documentation.</span></p> <p><span style="font-size: 11pt; font-family: ">To learn more visit apps.openerp.com or download it <a href="http://apps.openerp.com/addon/get_module_as_zip/7003/npg_account_make_deposit.zip" target="_blank" title="Download link">here</a>.<br /></span></p> <ul> </ul> <p class="MsoNormal" style="text-align: justify;"> </p> <p><span style="font-size: 11pt; font-family: ">media contact: dphicks (at) novapointgroup.com<br /></span></p> Thu, 15 Mar 2012 06:00:00 +0100 Novapoint Group : Novapoint Group Partners with CompuPay for US OpenERP Payroll http://www.novapointgroup.com/blog/87-novapoint-group-partners-with-compupay <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: ">NovaPoint Group LLC, an OpenERP Partner, has partnered with <a href="http://www.compupay.com/l/novapoint/" target="_blank" title="CompuPay">CompuPay</a>, a leading provider of online payroll solutions, to offer US customers payroll </span><a href="http://www.compupay.com/payroll_solutions/c/online_payroll/"><span style="font-family: "> </span></a><span style="font-size: 11pt; font-family: ">products and HR-related services for <a href="http://www.openerp.com/" target="_blank" title="OpenERP">OpenERP</a>. This solution addresses the payroll needs of company's utilizing OpenERP in the United States. The partnership delivers a competitive alternative to leading ERP/Accounting online payroll and HR services found in the market today.</span><span style="font-size: 11pt; font-family: "> </span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: ">Integration of CompuPay's online payroll and HR services with OpenERP supports the following process:</span></p> <ul> <li><span style="font-size: 11pt; font-family: ">Users enter attendance and timesheet information in OpenERP</span></li> <li><span style="font-size: 11pt; font-family: ">HR managers send the attendance and timesheet information directly to CompuPay</span></li> <li><span style="font-size: 11pt; font-family: ">The CompuPay payroll and calculation engine calculates payroll, submits payments and reporting information to the appropriate legal entities</span></li> <li><span style="font-size: 11pt; font-family: ">CompuPay payroll pays employees using either Direct Deposit, Check, or Payroll Card</span></li> <li><span style="font-size: 11pt; font-family: ">The payroll accounting entries are imported directly into OpenERP's GL using a pre-assigned mapping</span></li> </ul> <p><span style="font-size: 11pt; font-family: ">The solution is a cost-effective way to reduce the burden associated with calculating and processing payroll by outsourcing the processing to an award winning leading firm. Company administrators are relieved of the time-consuming process of monitoring constantly changing payroll requirements, updating a payroll engine and calculations, processing payroll, delivering pay, collecting and remitting taxes to tax collection authorities.</span></p> <p><span style="font-size: 11pt; font-family: ">To learn more, fill out the <a href="http://www.compupay.com/l/novapoint/" target="_blank" title="CompuPay Online Payroll">contact form</a>, or visit http://www.compupay.com/l/novapoint/</span></p> <p> </p> <p><span style="font-size: 11pt; font-family: ">media contact: dphicks (at) novapointgroup.com<br /></span></p> Thu, 15 Mar 2012 06:00:00 +0100 The Open Sourcerer : How to: OpenERP 6.1, Ubuntu 10.04 LTS, nginx SSL Reverse Proxy http://www.theopensourcerer.com/2012/03/12/how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy <p>This article follows on (hopefully not unsurprisingly) from <a href="2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts">the basic 6.1 installation howto</a>.</p> <p>In this post I&#8217;ll describe <em>one way</em> of providing SSL encrypted access to your shiny new OpenERP 6.1 server running on Ubuntu 10.04 LTS. </p> <p>This time I thought I&#8217;d use the <a href="http://nginx.org/en/">nginx</a> (<em>pronounced like &#8220;Engine X&#8221;</em>) webserver to act as a reverse proxy and do SSL termination for web, GTK client and WebDAV/CalDAV access. nginx is gaining in popularity and is now the second most popular web server in the world according to some figures. It has a reputation for being fast and lean &#8211; so it seemed like a good choice for a relatively simple job like this. </p> <p>I&#8217;m indebted to xat for <a href="http://blog.thamini.com/xat/howto-add-some-additional-security-your-openerp-web-client-ssl-using-nginx">this post</a> which provided the main configuration script for a reverse proxy on OpenERP 6.0. The changes I have made to xat&#8217;s original configuration are: different port number, some additional rewrite rules to support WebDAV and the new mobile interface, new location for static files.</p> <p><em>NB: For the purposes of this how to, we&#8217;ll be using self-signed certificates. A discussion of the pros and cons of this choice is beyond the scope of this article.</em></p> <h3>Step 1. Install nginx</h3> <p>On your server install nginx by typing:</p> <p><code>sudo apt-get install nginx</code></p> <p>Next, we need to generate a SSL certificate and key.</p> <h3>Step 2. Create your cert and key</h3> <p>I create the files in a temporary directory then move them to their final resting place once they have been built (the first <code>cd</code> is just to make sure we are in our home directory to start with):</p> <p><code>cd<br /> mkdir temp<br /> cd temp</code></p> <p>Then we generate a new key, you will be asked to enter a passphrase and confirm:</p> <p><code>openssl genrsa -des3 -out server.pkey 1024</code></p> <p>We don&#8217;t really want to have to enter a passphrase every time the server starts up so we remove the passphrase by doing this:</p> <p><code>openssl rsa -in server.pkey -out server.key</code></p> <p>Next we need to create a signing request which will hold the data that will be visible in your final certificate:</p> <p><code>openssl req -new -key server.key -out server.csr</code></p> <p>This will generate a series of prompts like this: Enter the information as requested:</p> <blockquote><p> You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter &#8216;.&#8217;, the field will be left blank.<br /> &#8212;&#8211;<br /> Country Name (2 letter code) [AU]:<br /> State or Province Name (full name) [Some-State]:<br /> Locality Name (eg, city) []:<br /> Organization Name (eg, company) [Internet Widgits Pty Ltd]:<br /> Organizational Unit Name (eg, section) []:<br /> Common Name (eg, YOUR name) []:<br /> Email Address []:</p> <p>Please enter the following &#8216;extra&#8217; attributes<br /> to be sent with your certificate request<br /> A challenge password []:<br /> An optional company name []:The Client&#8217;s Company </p></blockquote> <p>And finally we self-sign our certificate.</p> <p><code>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</code></p> <p>We only need two of the files in the working directory, the key and the certificate. But before we can use them they need to have their ownership and access rights altered:</p> <p><code>sudo chown root:www-data server.crt server.key<br /> sudo chmod 640 server.crt server.key</code></p> <p>And then we put them in a sensible place:</p> <p><code>sudo mkdir /etc/ssl/nginx<br /> sudo chown www-data:root /etc/ssl/nginx<br /> sudo chmod 710 /etc/ssl/nginx<br /> sudo mv server.crt server.key /etc/ssl/nginx/</code></p> <p>Now the key and certificate are safely stored away, we can tell nginx where they are and what it should be doing&#8230;</p> <h3>Step 3. Create the nginx site configuration file</h3> <p>We create a new configuration file</p> <p><code>sudo nano /etc/nginx/sites-available/openerp</code></p> <p>with the following content:</p> <p><strong>Note: You will need to change all references to <code>10.0.0.26</code> in the following file to either the domain name or static IP address of your server. This was the IP address of the machine I built this test script on. It will not work unless changed to suit your own system!</strong></p> <blockquote> <pre> <code>upstream openerpweb { server 127.0.0.1:8069 weight=1 fail_timeout=300s; } server { listen 80; server_name 10.0.0.26; # Strict Transport Security add_header Strict-Transport-Security max-age=2592000; rewrite ^/mobile.*$ https://10.0.0.26/web_mobile/static/src/web_mobile.html permanent; rewrite ^/webdav(.*)$ https://10.0.0.26/webdav/$1 permanent; rewrite ^/.*$ https://10.0.0.26/web/webclient/home permanent; } server { # server port and name listen 443 default; server_name 10.0.0.26; # Specifies the maximum accepted body size of a client request, # as indicated by the request header Content-Length. client_max_body_size 200m; # ssl log files access_log /var/log/nginx/openerp-access.log; error_log /var/log/nginx/openerp-error.log; # ssl certificate files ssl on; ssl_certificate /etc/ssl/nginx/server.crt; ssl_certificate_key /etc/ssl/nginx/server.key; # add ssl specific settings keepalive_timeout 60; # limit ciphers ssl_ciphers HIGH:!ADH:!MD5; ssl_protocols SSLv3 TLSv1; ssl_prefer_server_ciphers on; # increase proxy buffer to handle some OpenERP web requests proxy_buffers 16 64k; proxy_buffer_size 128k; location / { proxy_pass http://openerpweb; # force timeouts if the backend dies proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; # set headers proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forward-For $proxy_add_x_forwarded_for; # Let the OpenERP web service know that we're using HTTPS, otherwise # it will generate URL using http:// and not https:// proxy_set_header X-Forwarded-Proto https; # by default, do not forward anything proxy_redirect off; } # cache some static data in memory for 60mins. # under heavy load this should relieve stress on the OpenERP web interface a bit. location ~* /web/static/ { proxy_cache_valid 200 60m; proxy_buffering on; expires 864000; proxy_pass http://openerpweb; } }</code> </pre> </blockquote> <p>UPDATE: 04/04/2012. I have added a line to the above file: <code>client_max_body_size 200m;</code> thanks to <a href="http://kirkmanlabs.com/">Praxi</a> for reminding me about this. The default setting is just 1MB which will stop users from uploading any files larger than that, including databases!</p> <p>And then we can enable the new site configuration by creating a symbolic link in the <code>/etc/nginx/sites-enabled</code> directory.</p> <p><code>sudo ln -s /etc/nginx/sites-available/openerp /etc/nginx/sites-enabled/openerp</code></p> <h3>Step 4. Change the OpenERP server configuration file</h3> <p>The next step is to re-configure the OpenERP server so that non-encrypted services are not accessible from the outside world.</p> <p>In <code>/etc/openerp-server.conf</code> the non-encrypted services will only listen on localhost, i.e. not from external connections so in effect only traffic from nginx will be accepted.</p> <p>After opening the file for editing, just add 127.0.0.1 to the xmlrpc and netrpc interface lines as shown below.</p> <p><code>sudo nano /etc/openerp-server.conf</code></p> <blockquote><p> <code>xmlrpc_interface = 127.0.0.1<br /> netrpc_interface = 127.0.0.1</code> </p></blockquote> <p>That&#8217;s it. Everything is now configured.</p> <h3>Step 5. Try it out</h3> <p>Restart the services to load the new configurations</p> <p><code>sudo service openerp-server restart<br /> sudo service nginx restart</code></p> <p>You should not be able to connect to the web client on port 8069 and the GTK client should not connect on either the NetRPC (8070) or XMLRPC (8069) services. </p> <p>For web access you just need to visit https://your-ip-or-domain and in the GTK client you will need to use port 443 (https) and choose the XMLRPC (Secure) protocol.</p> <p>The nginx configuration above will also redirect any incoming requests for port 80 to port 443 (https) and it also makes sensible redirects for the mobile and WebDAV/CalDAV services. (From what I can gather however WebDAV clients really don&#8217;t handle redirects so this bit is probably not that useful). I think the best bet for WebDAV/CalDAV is just to provide the correct URL in the first place.</p> <p>For CalDAV access then, the URL to a calendar will be something like this:</p> <p><code>https://your-ip-or-domain/webdav/DB_NAME/calendars/users/USERNAME/c/CALENDAR_NAME</code></p> <p>There you have it. In OpenERP 6.1 this job actually proved to be a little simpler than the previous version largely due to the integrated web interface. There are also fewer configuration changes required in <code>openerp-server.conf</code>.</p> <p>Finally, I really wanted to try and make use of the WSGI support in OpenERP 6.1 instead of the method above, but my efforts to get this to work from nginx or Apache have so far ended in failure <img src='http://www.theopensourcerer.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> Obviously if anyone wants to provide a working config for that please feel free to add a comment and link.</p> Mon, 12 Mar 2012 12:02:08 +0100 Stephane Wirtel : Move to an other blog engine http://stephane-wirtel-at-tiny.blogspot.com/2012/03/move-to-other-blog-engine.html Hi all,<br /><br />I know you like to read my invisible "posts" but I want to inform you I use an other system on my own website. <a href="http://wirtel.be/">http://wirtel.be</a><br /><br />See you later on my new blog.<br /><br />Stéphane<div class="blogger-post-footer">OpenERP: http://www.openerp.com<img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8352820668110486648-6333321119630135671?l=stephane-wirtel-at-tiny.blogspot.com' alt='' /></div> Tue, 06 Mar 2012 08:22:00 +0100 Camptocamp : PrestaShop-OpenERP : Camptocamp and Akretion announce the release of the connector http://www.camptocamp.com/fr/blog/2012/02/camptocamp-and-akretion-announce-the-release-of-the-prestashop-openerp-connector/ <p style="margin-bottom: 0cm;" lang="en-US" align="JUSTIFY">Many e-commerce companies running PrestaShop are looking for a global solution that includes stock management and accounting. For a successful e-commerce company, automating stock management, supplier orders and accounting are critical in order to have a profitable business. <a href="http://www.openerp.com" target="_blank">OpenERP</a> and <a href="http://www.prestashop.com/" target="_blank">PrestaShop</a> complement each other perfectly:</p> <ul> <li> <p style="margin-bottom: 0cm;" lang="en-US" align="JUSTIFY">PrestaShop manages the front office: product catalog, customer accounts, carts, order validation and payment by credit card;</p> </li> <li> <p style="margin-bottom: 0cm;" lang="en-US" align="JUSTIFY">OpenERP handles the back office: stock management, supplier orders, customer claims, accounting, etc.</p> </li> </ul> <p>Until now, the only thing that was missing was a connector between these two software!</p> <p>Thanks to Camptocamp and Akretion, this link is now possible!</p> <p>Please find the complete press release <a href="http://www.camptocamp.com/fr/presse/doc_download/22-2012-02-23-prestashop-openerp-connector" target="_blank">here</a>.</p> <h6 style="text-align: justify;"><span style="color: #c0c0c0;"><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em>Camptocamp: Official Gold partner in Switzerland, France and Austria (localisation of financial accounting for this countries) / Partenaire officiel Gold en Suisse, France et Autriche (localisation de la comptabilité financière pour ces pays) / Offizieller Gold-Partner in der Schweiz, Frankreich und Österreich (Anpassung der Finanzbuchhaltung für diese Länder)</em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></span></h6> Thu, 23 Feb 2012 15:32:31 +0100 Akretion : Akretion and Camptocamp announce the release of the PrestaShop-OpenERP connector http://feedproxy.google.com/~r/akretion/~3/CB5Nipk1jPg/ <h2>Akretion and Camptocamp announce the release of the PrestaShop-OpenERP connector</h2> <p><em>February 23rd 2012</em></p> <p><a href="http://www.akretion.com/">Akretion</a> and <a href="http://www.camptocamp.com/">Camptocamp</a> announce the immediate and worldwide availability of the PrestaShop-OpenERP connector version 0.1.</p> <p><a href="http://www.prestashop.com/">PrestaShop</a> is an Open Source e-commerce software written in PHP that provides an easy-to-use and high-performance solution to set up an online shop. <a href="http://www.openerp.com/">OpenERP</a> is an Open Source ERP software written in Python that provides an extended functional coverage: Customer Relationship Management (CRM), sales and purchase administration, stock management, Material Requirement Planning (MRP), accounting, etc.</p> <p>Many e-commerce companies running PrestaShop are looking for a global solution that includes stock management and accounting. For a successful e-commerce company, automating stock management, supplier orders and accounting are critical in order to have a profitable business. OpenERP and PrestaShop complement each other perfectly:</p> <ul> <li>PrestaShop manages the <em>front office</em>: product catalog, customer accounts, carts, order validation and payment by credit card;</li> <li>OpenERP handles the <em>back office</em>: stock management, supplier orders, customer claims, accounting, etc.</li> </ul> <p>The only thing that was missing was a connector between these two software!</p> <p>This first version of the PrestaShop-OpenERP connector has been developed during a one-week <em>code sprint</em> that took place on February 6th &ndash; 10th 2012 in Seythenex (Haute-Savoie, France). This large R&amp;D effort of Akretion and Camptocamp (with the participation of one developer from Julius Network Solutions) is the kick-start of a new Open Source software project called <strong>PrestashopERPconnect</strong>. Akretion and Camptocamp form the <em>PrestashopERPconnect core editors</em> and are the official maintainers of the project.</p> <p>Sebastien Beau, e-commerce project manager at Akretion, declares: &ldquo;<em>Our target was to be capable of importing orders from PrestaShop to OpenERP at the end of our one-week code sprint. But before importing the first order, we needed to develop the synchronization of shops, currencies, languages, countries, carriers and products. We reached our target on Thursday evening, so we deserved to go skiing on Friday afternoon at the <a href="http://www.lasambuy.com/">La Sambuy</a> ski resort!</em>&rdquo;</p> <p>Joël Grand-Guillaume, Business Solution Division Manager at Camptocamp in Lausanne adds: &ldquo;<em>We did not only bring the finest swiss chocolates to this code sprint; we also brought our long experience of software development on the OpenERP framework and our knowledge of software architecture.</em>&rdquo;</p> <p>The PrestaShop company contributed to the development of the connector by providing technical support on the PrestaShop webservices that are used by the connector. Nebojsa Stojanovic, Chief Technical Officer of PrestaShop, declares: &ldquo;<em>The development of the PrestaShop-OpenERP connector is the proof that our large developers community is a key differentiator compared with proprietary e-commerce solutions. We are very happy to see our award-winning Open Source e-commerce platform connected to one of the leading Open Source ERP solutions.</em>&rdquo;</p> <h3>FAQ about the PrestaShop-OpenERP connector</h3> <ol> <li><p><strong>What is the license of the connector? Where can I get the source code?</strong> This connector is published under the GNU Affero General Public License version 3 (the same license as OpenERP). The source code is available on Launchpad: <a href="https://launchpad.net/prestashoperpconnect/">https://launchpad.net/prestashoperpconnect</a> (Launchpad is a development platform that hosts many Open Source software projects, including OpenERP and Ubuntu).</p></li> <li><p><strong>Which versions of OpenERP and PrestaShop are supported?</strong> Regarding OpenERP, the connector has been developed on OpenERP 6.1, which was released yesterday. And concerning PrestaShop, it supports all versions of PrestaShop starting from version 1.4, which is the first version of PrestaShop to propose a webservice interface. It doesn&rsquo;t require any module in PrestaShop. The current version of the connector comes with the mapping of objects between OpenERP 6.1 and PrestaShop 1.5 only. PrestaShop 1.5 is currently under development and will introduce multi-shop support and many other features. Adding support for PrestaShop 1.4 should be easy.</p></li> <li><p><strong>You publish this connector for free on the Internet&hellip; how do you earn a living?</strong> Akretion and Camptocamp &ndash; the <em>PrestashopERPconnect core editors</em> &ndash; have developed this connector as part of their R&amp;D effort. Both companies are strong supporters of Open Source software and have a long history of code contributions to OpenERP and other Open Source projects. Instead of spending millions in Sales and Marketing, they estimate that this code contribution is a better means to generate customer demand for software development on the connector and/or OpenERP and also for their trainings, professional services and SaaS (Software as a Service) offers.</p></li> <li><p><strong>Is the connector ready for production use?</strong> This version 0.1 has all the essential building blocks to connect OpenERP and PrestaShop and already supports the import of orders from PrestaShop to OpenERP in simple scenarios. Depending on how PrestaShop is used, generic or specific developments on the connector may be required.</p></li> <li><p><strong>What should I be aware of before deploying the connector?</strong> This connector can be downloaded by anyone on the Internet but it requires deep knowledge of OpenERP, PrestaShop and the connector&rsquo;s internals to be deployed successfully in production. The <em>PrestashopERPconnect core editors</em> are available to help you deploy this solution for your PrestaShop-based e-commerce business.</p></li> </ol> <h3>About Akretion</h3> <p>Akretion is an OpenERP-expert company based in Brazil (Rio de Janeiro) and France (Lyons) with a strong experience in e-commerce projects. Akretion key contributions to Open Source software include the Magento-OpenERP connector, the Asterisk-OpenERP connector, the Brazilian localization for OpenERP, support for French customs formalities (DEB and DES) in OpenERP and the OOOR connector to use OpenERP from the Ruby programming language. Akretion sells training, consulting, software development and SaaS (Software as a Service) on OpenERP.</p> <h3>About Camptocamp</h3> <p>Incorporated in 2001, Camptocamp is an Open Source software editor and integrator in three complimentary areas: Business Solutions (OpenERP, Business Intelligence, e-commerce), Geospatial Solutions and Infrastructure Solutions. Camptocamp strives to deliver high value-added services (consulting, R&amp;D, training, support) to its customers in order to assist them in deploying efficient and sustainable Open Source applications. Based in Lausanne (Switzerland), Chambéry (France) and Vienna (Austria), Camptocamp counts 43 employees with functional as well as technical skills.</p> <h3>Press contacts</h3> <ul> <li><p>Akretion: Alexis de Lattre &ndash; Mail: alexis.delattre (at) akretion.com</p></li> <li><p>Camptocamp: Maxime Wiot – Mail: maxime.wiot (at) camptocamp.com – Phone: +33 4 79 44 44 94 or +41 21 619 10 10</p></li> </ul> Thu, 23 Feb 2012 01:00:00 +0100 The Open Sourcerer : How to install OpenERP 6.1 on Ubuntu 10.04 LTS http://www.theopensourcerer.com/2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-install-openerp-6-1-on-ubuntu-10-04-lts <p><a href="http://www.openerp.com"><img src="http://www.theopensourcerer.com/wp-content/uploads/2011/04/logo1.png" alt="OpenERP Logo" title="OpenERP Logo" width="190" height="46" class="size-full wp-image-2815 alignleft" /></a>The new release of OpenERP 6.1 <a href="http://www.openerp.com/node/1056">heralds a great many incremental improvements</a> in the product plus a complete re-write of the web interface; which is a massive improvement and much more an integral part of OpenERP than it&#8217;s predecessor.</p> <p><strong>UPDATE: By popular request <a href="http://www.theopensourcerer.com/2012/03/12/how-to-openerp-6-1-ubuntu-10-04-lts-nginx-ssl-reverse-proxy/">here is a subsequent post describing how to set up a reverse proxy and ssl using nginx.</a></strong></p> <p>As my <a href="http://www.theopensourcerer.com/2011/04/19/how-to-install-openerp-6-on-ubuntu-10-04-lts-server-part-1">previous howto</a> for 6.0 was a such roaring success I thought I&#8217;d better do something for the new 6.1 release too. </p> <p>Before continuing, I should mention that you can simply <a href="http://nightly.openerp.com/6.1/releases/openerp_6.1-1-1_all.deb">download</a> a &#8220;.deb&#8221; package of OpenERP 6.1 and install that on Ubuntu. But that doesn&#8217;t provide me with enough fine grained control over what and where things get installed and it restricts our flexibility to modify &#038; customise hence I prefer to do it a slightly more manual way&#8230; <em>(It should be said though, that this install process should only take about 10-15 minutes once the host machine has been built)</em></p> <p>So without further ado here we go:</p> <h3>Step 1. Build your server</h3> <p>I install just the bare minimum from the install routine (you can install the <code>openssh-server</code> during the install procedure or install subsequently depending on your preference).</p> <p>After the server has restarted for the first time I install the <code>openssh-server</code> package (so we can connect to it remotely) and <code>denyhosts</code> to add a degree of brute-force attack protection. There are other protection applications available: I’m not saying this one is the best, but it’s one that works and is easy to configure and manage. If you don’t already, it’s also worth looking at setting up key-based ssh access, rather than relying on passwords. This can also help to limit the potential of brute-force attacks. [NB: This isn't a How To on securing your server...]</p> <p><code>sudo apt-get install openssh-server denyhosts</code></p> <p>Now make sure you are running all the latest patches by doing an update:</p> <p><code>sudo apt-get update</code><br /> <code>sudo apt-get dist-upgrade</code></p> <p>Although not always essential it’s probably a good idea to reboot your server now and make sure it all comes back up and you can login via ssh.</p> <p>Now we’re ready to start the OpenERP install.</p> <h3>Step 2. Create the OpenERP user that will own and run the application</h3> <p><code>sudo adduser --system --home=/opt/openerp --group openerp</code></p> <p>This is a “system” user. It is there to own and run the application, it isn’t supposed to be a person type user with a login etc. In Ubuntu, a system user gets a UID below 1000, has no shell (it’s actually <code>/bin/false</code>) and has logins disabled. Note that I’ve specified a “home” of <code>/opt/openerp</code>, this is where the OpenERP server code will reside and is created automatically by the command above. The location of the server code is your choice of course, but be aware that some of the instructions and configuration files below may need to be altered if you decide to install to a different location.</p> <p>A question I was asked a few times in the previous how to for 6.0 was how to run the OpenERP server as the openerp system user from the command line if it has no shell. This can be done quite easily:</p> <p><code>sudo su - openerp -s /bin/bash</code></p> <p>This will <code>su</code> your current terminal login to the openerp user (the &#8220;<code>-</code>&#8221; between <code>su</code> and <code>openerp</code> is correct) and use the shell <code>/bin/bash</code>. When this command is run you will be in openerp&#8217;s home directory: <code>/opt/openerp</code>.</p> <p>When you have done what you need you can leave the openerp user&#8217;s shell by typing <code>exit</code>.</p> <h3>Step 3. Install and configure the database server, PostgreSQL</h3> <p><code>sudo apt-get install postgresql</code></p> <p>Then configure the OpenERP user on postgres:</p> <p>First change to the postgres user so we have the necessary privileges to configure the database.</p> <p><code>sudo su - postgres</code></p> <p>Now create a new database user. This is so OpenERP has access rights to connect to PostgreSQL and to create and drop databases. Remember what your choice of password is here; you will need it later on:</p> <p><code>createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp</code><br /> <code>Enter password for new role: ********</code><br /> <code>Enter it again: ********</code></p> <p>Finally exit from the postgres user account:</p> <p><code>exit</code></p> <h3>Step 4. Install the necessary Python libraries for the server</h3> <p><em style="font-size:80%;color:#FFF;">Update 27/02/2012: Many thanks to <a href="http://www.theopensourcerer.com/2012/02/22/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/comment-page-1/#comment-40647">Gavin</a> for reporting. Have added python-simplejson to the package list.</em></p> <p><code>sudo apt-get install python-dateutil python-feedparser python-gdata \<br /> python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \<br /> python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \<br /> python-simplejson python-tz python-vatnumber python-vobject python-webdav \<br /> python-werkzeug python-xlwt python-yaml python-zsi</code></p> <p><em>From what I can tell, on Ubuntu 10.04 the package python-werkzeug is too old and this will cause the server to not start properly. If you are trying this on a later version of Ubuntu then you might be OK, but just in-case you can also do the following.</em></p> <blockquote><p>I found it necessary to install a more recent version of Werkzeug using Python&#8217;s own package management library PIP. The python pip tool can be installed like this:</p> <p><code>sudo apt-get install python-pip</code></p> <p>Then remove Ubuntu&#8217;s packaged version of werkzeug:</p> <p><code>sudo apt-get remove python-werkzeug</code></p> <p>Then install the up-to-date version of werkzeug:</p> <p><code>sudo pip install werkzeug</code> </p></blockquote> <p>With that done, all the dependencies for installing OpenERP 6.1 are now satisfied, including for the new integral web interface.</p> <h3>Step 5. Install the OpenERP server</h3> <p>I tend to use <code>wget</code> for this sort of thing and I download the files to my home directory.</p> <p>Make sure you get the latest version of the application. At the time of writing this it’s 6.1-1; I got the download links from their download page.</p> <p><code>wget http://nightly.openerp.com/6.1/releases/openerp-6.1-1.tar.gz</code></p> <p>Now install the code where we need it: <code>cd</code> to the <code>/opt/openerp/</code> directory and extract the tarball there.</p> <p><code>cd /opt/openerp</code><br /> <code>sudo tar xvf ~/openerp-6.1-1.tar.gz</code></p> <p>Next we need to change the ownership of all the the files to the OpenERP user and group.</p> <p><code>sudo chown -R openerp: *</code></p> <p>And finally, the way I have done this is to copy the server directory to something with a simpler name so that the configuration files and boot scripts don’t need constant editing (I called it, rather unimaginatively, server). I started out using a symlink solution, but I found that when it comes to upgrading, it seems to make more sense to me to just keep a copy of the files in place and then overwrite them with the new code. This way you keep any custom or user-installed modules and reports etc. all in the right place.</p> <p><code>sudo cp -a openerp-6.1-1 server</code></p> <p>As an example, should OpenERP 6.1-2 come out soon, I can extract the tarballs into /opt/openerp/ as above. I can do any testing I need, then repeat the copy command so that the modified files will overwrite as needed and any custom modules, report templates and such will be retained. Once satisfied the upgrade is stable, the older 6.1-1 directories can be removed if wanted.</p> <p>That’s the OpenERP server software installed. The last steps to a working system is to set up the configuration file and associated boot script so OpenERP starts and stops automatically when the server itself stops and starts.</p> <h3>Step 6. Configuring the OpenERP application</h3> <p>The default configuration file for the server (in <code>/opt/openerp/server/install/</code>) is actually very minimal and will, with only one small change work fine so we&#8217;ll simply copy that file to where we need it and change it&#8217;s ownership and permissions:</p> <p><code>sudo cp /opt/openerp/server/install/openerp-server.conf /etc/<br /> sudo chown openerp: /etc/openerp-server.conf<br /> sudo chmod 640 /etc/openerp-server.conf</code></p> <p>The above commands make the file owned and writeable only by the openerp user and group and only readable by openerp and root.</p> <p>To allow the OpenERP server to run initially, you should only need to change one line in this file. Toward to the top of the file change the line <code>db_password = False</code> to the same password you used back in step 3. Use your favourite text editor here. I tend to use nano, e.g. </p> <p><code>sudo nano /etc/openerp-server.conf</code></p> <p>One other line we might as well add to the configuration file now, is to tell OpenERP where to write its log file. To complement my suggested location below add the following line to the <code>openerp-server.conf</code> file:</p> <p><code>logfile = /var/log/openerp/openerp-server.log</code></p> <p>Once the configuration file is edited and saved, you can start the server just to check if it actually runs.</p> <p><code>sudo su - openerp -s /bin/bash</code><br /> <code>/opt/openerp/server/openerp-server</code></p> <p>If you end up with a few lines eventually saying OpenERP is running and waiting for connections then you are all set. Just type <code>CTL+C</code> to stop the server then <code>exit</code> to leave the openerp user&#8217;s shell. </p> <p>If there are errors, you&#8217;ll need to go back and check where the problem is.</p> <h3>Step 7. Installing the boot script</h3> <p>For the final step we need to install a script which will be used to start-up and shut down the server automatically and also run the application as the correct user. There is a script you can use in <code>/opt/openerp/server/install/openerp-server.init</code> but this will need a few small modifications to work with the system installed the way I have described above. <a href="http://www.theopensourcerer.com/wp-content/uploads/2012/02/openerp-server">Here’s a link</a> to the one I’ve already modified for 6.1-1.</p> <p>Similar to the configuration file, you need to either copy it or paste the contents of this script to a file in <code>/etc/init.d/</code> and call it <code>openerp-server</code>. Once it is in the right place you will need to make it executable and owned by root:</p> <p><code>sudo chmod 755 /etc/init.d/openerp-server</code><br /> <code>sudo chown root: /etc/init.d/openerp-server</code></p> <p>In the configuration file there’s an entry for the server’s log file. We need to create that directory first so that the server has somewhere to log to and also we must make it writeable by the openerp user:</p> <p><code>sudo mkdir /var/log/openerp</code><br /> <code>sudo chown openerp:root /var/log/openerp</code></p> <h3>Step 8. Testing the server</h3> <p>To start the OpenERP server type:</p> <p><code>sudo /etc/init.d/openerp-server start</code></p> <p>You should now be able to view the logfile and see that the server has started.</p> <p><code>less /var/log/openerp/openerp-server.log</code></p> <p>If there are any problems starting the server you need to go back and check. There’s really no point ploughing on if the server doesn’t start…</p> <p><div id="attachment_3090" class="wp-caption alignright" style="width: 310px"><a href="http://www.theopensourcerer.com/wp-content/uploads/2012/02/openerp-6.1-home.png"><img src="http://www.theopensourcerer.com/wp-content/uploads/2012/02/openerp-6.1-home-300x150.png" alt="OpenERP 6.1 Home Screen" title="OpenERP 6.1 Home Screen" width="300" height="150" class="size-medium wp-image-3090" /></a><p class="wp-caption-text">OpenERP 6.1 Home Screen</p></div><br /> If the log file looks OK, now point your web browser at the domain or IP address of your OpenERP server (or localhost if you are on the same machine) and use port 8069. The url will look something like this:</p> <p><code>http://IP_or_domain.com:8069</code></p> <p>What you should see is a screen like this one:</p> <div class="clear"></div> <p>What I do recommend you do at this point is to change the super admin password to something nice and strong (Click the &#8220;Manage Databases&#8221; link below the main Login box). By default this password is just &#8220;admin&#8221; and knowing that, a user can create, backup, restore and <strong>drop</strong> databases! This password is stored in <em>plain text</em> in the <code>/etc/openerp-server.conf</code> file; <em>hence why we restricted access to just openerp and root</em>. When you change and save the new password the <code>/etc/openerp-server.conf</code> file will be re-written and will have a lot more options in it.</p> <p>Now it’s time to make sure the server stops properly too:</p> <p><code>sudo /etc/init.d/openerp-server stop</code></p> <p>Check the logfile again to make sure it has stopped and/or look at your server’s process list.</p> <h3>Step 9. Automating OpenERP startup and shutdown</h3> <p>If everything above seems to be working OK, the final step is make the script start and stop automatically with the Ubuntu Server. To do this type:</p> <p><code>sudo update-rc.d openerp-server defaults</code></p> <p>You can now try rebooting you server if you like. OpenERP should be running by the time you log back in.</p> <p>If you type <code>ps aux | grep openerp</code> you should see a line similar to this:</p> <p><code>openerp 1491 0.1 10.6 207132 53596 ? Sl 22:23 0:02 python /opt/openerp/server/openerp-server -c /etc/openerp-server.conf</code></p> <p>Which shows that the server is running. And of course you can check the logfile or visit the server from your web browser too.</p> <p>That&#8217;s it!</p> <p>OpenERP 6.1 really is a major step up in terms of improvements from 6.0 and the new integrated web interface (with a Point of Sale and a Mobile interface built-in) are really very cool. Performance has improved considerably and the way the new web service interfaces to OpenERP is very different. So, if I get the time, the next instalment of these posts will go into a bit of detail about how this works and some alternative ways to provide more secure access, such as reverse proxy.</p> Wed, 22 Feb 2012 23:44:45 +0100 OpenERP 5.0 : Welcome to New CTP Partner In Indonesia ! http://openerp-team.blogspot.com/2012/02/welcome-to-new-ctp-partner-in-indonesia.html <div dir="ltr" style="text-align: left;" trbidi="on"><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://www.openerp.com/sites/default/files/partnerslogo/addsoft.png?1283926197" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://www.openerp.com/sites/default/files/partnerslogo/addsoft.png?1283926197" /></a></div><div style="text-align: justify;">We are happy to announce that we have added new CTP Partner in Open ERP community. OpenERP has designed a Certified Training Partner Program to leverage OpenERP training capabilities worldwide.This program aim is to enable OpenERP Partners to provide a consistent and high quality level of training. OpenERP Partners who wish to be appointed as a Certified Training Partner They provide specialized functional and Technical Training aspects in ERP solutions comprising- Product lifecycle management, Supply chain management, Warehouse Management, Customer Relationship Management, Sales Order Processing, Online Sales, Financials, Human Resources and Decision Support System etc. Now they have joined hands with us to give new reach to Open ERP application.&nbsp;</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Adsoft (PT Alam Dewata Utama), an Indonesian private limited company, was founded in year 2001, specializes in providing OpenERP Consulting, Development, Support and Training for Enterprises in Indonesia, leveraging packaged open source software which provides significant benefits over proprietary software including customizability, scalability, ease of use and low total cost of ownership.</div><div style="text-align: justify;">We have expertises in Enterprise Resource Planning (ERP), Customer Relationship Management (CRM), Human Resource Management (HRM), Business Intelligence, Data and System Integration and Web Design and Development. For more information, please visit our website at http://www.adsoft.co.id</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Checks the events on <a href="http://www.openerp.com/events">http://www.openerp.com/events</a> hosted by Adsoft.<span class="Apple-tab-span" style="white-space: pre;"> </span></div></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7097521503264860891-8926774578932198849?l=openerp-team.blogspot.com' alt='' /></div> Mon, 20 Feb 2012 06:21:00 +0100 Akretion : Formation OpenERP - Magento : 3-4-5 avril 2012 - Lyon http://feedproxy.google.com/~r/akretion/~3/fVWZmtNb4wU/ Thu, 16 Feb 2012 01:00:00 +0100 Simplee : Mise en ligne du Site SIMPLEE http://www.simplee.fr/2011/10/mise-en-ligne-du-site-simplee/ Forts de leurs expertises reconnues, Didier DEMANGE (Gérant de la société 5eme Sens &#38; Associé d&#8217;Agilia Conseils) consultant en stratégie d&#8217;entreprise et performance commerciale, et Nicolas JEUDY (Gérant de la société Tux Services) expert informaticien en management des systèmes d&#8217;information ont le plaisir de vous annoncer la création de Simplee. Simplee est une société spécialisée [...] Mon, 23 Jan 2012 07:06:37 +0100 Gustavo Orrillo : Securing your system http://erpmoldeo.wordpress.com/2012/01/17/securing-your-system/ Quick post of a script worth using. If your openerp-server is running on a Linux server, this server should be secured. Linux is a more secure server than Windows, but still is vulnerable to attacks. If you are new to the security field in Linux, there is a tool you should try, Bastille Unix. If [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=440&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Wed, 18 Jan 2012 00:12:34 +0100 Gustavo Orrillo : How to debug your OpenERP modules http://erpmoldeo.wordpress.com/2012/01/17/how-to-debug-your-openerp-modules/ Debugging your OpenERP modules is quite straightforward, as long as you know basic Python programming. Just insert the following line in your module: import pdb;pdb.set_trace() Then restart your openerp-server with the &#8211;debug option # openerp-server &#8211;debug Then monitor your server console. You will see your server stop and show you a command line prompt where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=436&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Tue, 17 Jan 2012 11:55:31 +0100 Gustavo Orrillo : Calculating a product cost with OpenERP http://erpmoldeo.wordpress.com/2012/01/14/calculating-a-product-cost-with-openerp/ Last week I had the opportunity to try a very useful module that, IMHO, should be included in OpenERP core. This module is product_extended and can be found in the extras repository, you can download it with the following command: #  bzr branch lp:openobject-addons/extra-6.0 This module does many things, among them shows the product last [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=430&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Sat, 14 Jan 2012 22:08:33 +0100 Agile Business Group : OpenERP – new web client (6.1) – javascript hooks http://planet.domsense.com/en/2012/01/openerp-new-web-client-6-1-javascript-hooks/?utm_source=rss&utm_medium=rss&utm_campaign=openerp-new-web-client-6-1-javascript-hooks <p>I was trying to inject some custom code on logout event. My code was never executed though. Finally I got it working thanks to Xavier Morel (<a title="openerp web client 6.1: how to override base javascript functions" href="http://stackoverflow.com/questions/8817467/openerp-web-client-6-1-how-to-override-base-javascript-functions">see my question on stackoverflow</a>).</p> <p>Here is the clue: you can &#8220;easily&#8221; inject an handler for a given event (openerp-web specific ones) by doing like this:<br /> <code> <pre><strong> openerp.yourmodule = function(openerp) { openerp.webclient.on_logout.add_first( function () { alert('thatsme!'); } ); } </strong></pre> <p></code><br /> You must pay attention to 2 things particularly:</p> <ol> <li>you MUST <strong>use &#8220;openerp.webclient&#8221;</strong> and not <strong>&#8220;openerp.web.WebClient&#8221;</strong></li> <li>you MUST <strong>use your module name</strong> in order to get the JS loaded</li> </ol> <p>This last point is among the few informations you find in the not-so-official docs contained into the web module (<a title="OpenERP – new web client (6.1) documentation" href="http://planet.domsense.com/en/2012/01/openerp-new-web-client-6-1-documentation/">see my previous blogpost on how to get them</a>).</p> <p>Using &#8220;<strong>add_first</strong>&#8221; I&#8217;m adding an event handler for the logout event which will be executed before any existing handler.</p> <p>If you look at the original code of the web module you&#8217;ll find other &#8220;hooks&#8221; like &#8220;add_last&#8221; which in turns add your handler at the end of the queue.</p> Wed, 11 Jan 2012 19:40:12 +0100 Agile Business Group : OpenERP – new web client (6.1) documentation http://planet.domsense.com/en/2012/01/openerp-new-web-client-6-1-documentation/?utm_source=rss&utm_medium=rss&utm_campaign=openerp-new-web-client-6-1-documentation <p>Even if it&#8217;s not yet available on the web (don&#8217;t ask why&#8230;. :S) you can view the new OpenERP web client documentation on your machine. That&#8217;s what you have to do in order to get it:</p> <p>first of all install <strong>sphinx</strong> if you don&#8217;t have it in your system (assuming you are using a linux system<strong></strong>):</p> <pre><strong>$ sudo pip install sphinx</strong></pre> <p>or</p> <pre><strong>$ sudo easy_install sphinx</strong></pre> <p>then you have to compile the docs. Go to the web package doc folder:</p> <pre><strong>$ cd web/trunk/doc</strong></pre> <p>(if you have downloaded OpenERP trunk following <a title="Quickly get and run OpenERP 6.1 (trunk)" href="http://planet.domsense.com/en/2011/12/quickly-get-and-run-openerp-6-1-trunk/">elbati&#8217;s how-to</a> you&#8217;ll have the web client in this path)</p> <p>and run</p> <pre><strong>$ make source html</strong></pre> <p>That&#8217;s it! Now you can browse the docs by going to the newly generated folder <strong>web/trunk/doc/build/html</strong> and opening <strong>index.html</strong> into your favorite web browser.</p> <p>As any other OpenERP documentation is quite un-finished but it&#8217;s a good starting point for skimming trough the new web client capabilities.</p> <p><strong>UPDATE: docs are now available here: <a href="http://planet.domsense.com/docs/openerp-web/en/index.html">http://planet.domsense.com/docs/openerp-web/en/index.html</a></strong></p> Mon, 09 Jan 2012 12:07:40 +0100 Gustavo Orrillo : Managing your openerp processes with Supervisor http://erpmoldeo.wordpress.com/2012/01/02/managing-your-openerp-processes-with-supervisor/ Reading a book on system administration with Python I found Supervisor, which is a tool that allows you manage your programs. I found it easy to install and learn, and in minutes I had it running in my system. After reading the documentation, which took me minutes, I was able to configure its configuration file, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=424&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Mon, 02 Jan 2012 12:13:15 +0100 Gustavo Orrillo : Automated actions in OpenERP http://erpmoldeo.wordpress.com/2011/12/28/automated-actions-in-openerp/ In OpenERP, as in any other ERP or system, you need to perform certain tasks regularly. Tasks such as performing a backup, calculating ABC categories, running the MRP planner, etc. How do you get this done in OpenERP? It&#8217;s quite easy and you don&#8217;t need your server administrator to get this done. Scheduling tasks in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=418&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Thu, 29 Dec 2011 00:37:55 +0100 Gustavo Orrillo : Logging from your OpenERP module http://erpmoldeo.wordpress.com/2011/12/27/logging-from-your-openerp-module/ I always wondered how to, in the OpenERP web client, show those informational messages in the top of the web client. Messages such as &#8216;PO/00001 created&#8217;. They are very informational for users. Well&#8230; reading a presentation on the differences between OpenERP v5 and v6 I found that one of the additions was the self.log function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=411&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Tue, 27 Dec 2011 17:27:52 +0100 Gustavo Orrillo : ABC Analysis in OpenERP http://erpmoldeo.wordpress.com/2011/12/26/abc-analysis-in-openerp/ ABC analysis is very well covered in this Wikipedia article. So no point of talking about it again here. Thing is, how do you implement it in OpenERP. Truth is, it is not a great deal. You only need to pull the sale order lines for the past six months (for example, could be a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=405&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Mon, 26 Dec 2011 12:20:13 +0100 Gustavo Orrillo : Checking lead-times in OpenERP http://erpmoldeo.wordpress.com/2011/12/23/checking-lead-times-in-openerp/ In case you need to check your suppliers&#8217; lead-times in OpenERP, it is quite easy. You need to go to Warehouse &#62; Reporting &#62;  Movement Analysis. You will be able to see a view where you can filter by partner, product, location and other attributes the planned lead-time and execution lead-time. This is a great [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=401&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Fri, 23 Dec 2011 10:21:37 +0100 Gustavo Orrillo : Data integrity issues in MRP implementations http://erpmoldeo.wordpress.com/2011/12/22/data-integrity-issues-in-mrp-implementations/ A good description of the data integrity issues found in MRP implementations can be found in the article on MRP in Wikipedia. In a nutshell, if the information in your manufacturing system is bad, don&#8217;t expect its planning to be any better (or GIGO). While you are implementing the MRP module in OpenERP, you should [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=383&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Thu, 22 Dec 2011 12:25:07 +0100 Gustavo Orrillo : Deleted records in OpenERP http://erpmoldeo.wordpress.com/2011/12/21/deleted-records-in-openerp/ Sooner or later you will find yourself with pgAdmin (or any other query tool) querying the OpenERP database in order to pull statistical information. It happens, and it is a healthy sign of your OpenERP implementation. Something you need to keep in mind is how OpenERP &#8220;deletes&#8221; its records. It does not physically remove them. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=379&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Wed, 21 Dec 2011 12:13:59 +0100 Gustavo Orrillo : Time-outs and the openerp-web client http://erpmoldeo.wordpress.com/2011/12/20/time-outs-and-the-openerp-web-client/ Sometimes you need to change the time-out setting of your openerp-web client application. There might be many reasons for this, among them the need to submit long  processes or views that take minutes to retrieve the desired data. Doing this is no big deal with the GTK client, but gets tricky  when it comes to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erpmoldeo.wordpress.com&amp;blog=18384637&amp;post=361&amp;subd=erpmoldeo&amp;ref=&amp;feed=1" width="1" height="1" /> Tue, 20 Dec 2011 11:22:23 +0100 NaN-tic : NaN·tic at Tecnocampus http://www.nan-tic.com/en/nan%C2%B7tic-at-tecnocampus <p>On November 24th I had the pleasure to explain our experience in the creation and development of our company at&nbsp;<a href="http://www.tecnocampus.cat">Tecnocampus de Mataró</a>&nbsp;in the production and operations course, invited by <a href="https://twitter.com/#!/diegobartolome">Diego</a> <a href="http://diegobartolome.com/">Bartolomé</a>&nbsp;from&nbsp;<a href="http://www.tauyou.com">tauyou</a>.</p> <p>It was an encouraging experience which I hope I can repeat in the future. We must also thank the collaboration of Alex from&nbsp;<a href="http://www.planetronic.es">Planetronic</a>&nbsp;who answered the questions of some students who made an excellent work studying NaN·tic's case. By the way, you can watch their presentation <a href="http://prezi.com/82-auxhgmg_t/present/?auth_key=1nv7h9d&amp;follow=xng2ov4pw4oo#39_1415840">here</a>.</p> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <p>There, I also met <a href="https://twitter.com/#!/alexarabat">Alex Araujo</a>&nbsp;who recorded and edited the talk and a small interview (in Catalan)&nbsp;that you can see below (announcement&nbsp;<a href="http://blocs.tecnocampus.cat/unitat-tecno-didactica/2011/11/29/nan-tic/">here</a>). Also you can see the <a href="http://www.livestream.com/utd_tcm/video?clipId=pla_a20f9757-0dfd-4b18-afb0-18066f5d1aed">original video</a>&nbsp;that was streamed live!</p> <p>&nbsp;</p> <p><!--break--><!--break--></p> <p>&nbsp;</p> </div> <div><center><iframe allowfullscreen="" frameborder="0" height="337" mozallowfullscreen="" src="http://player.vimeo.com/video/32796978?color=ff9933" webkitallowfullscreen="" width="600"></iframe></center></div> <div> <p>&nbsp;</p> </div> <div><center><iframe allowfullscreen="" frameborder="0" height="330" mozallowfullscreen="" src="http://player.vimeo.com/video/32792909?title=0&amp;byline=0&amp;portrait=0" webkitallowfullscreen="" width="600"></iframe></center></div> Thu, 15 Dec 2011 17:45:12 +0100 Ecuador : Aeroo Reports – Instalación Windows 1ra Parte http://openerpecuador.org/2011/12/12/aeroo-reports-instalacion-windows-1ra-parte/ <p>Bien, antes que nada quiero agradecer a Ezequiel Fernandez en Argentina por compartir con la comunidad Hispana, sobre el uso de Aeroo Reports</p> <p><a title="http://openerpargentina.com.ar/EzequielFernandez/Report_aeroo" href="http://openerpargentina.com.ar/EzequielFernandez/Report_aeroo" target="_blank">http://openerpargentina.com.ar/EzequielFernandez/Report_aeroo</a></p> <p>Y Sobre todo a el increíble trabajo de Allistek(<a title="http://www.alistek.com" href="http://www.alistek.com/" target="_blank">http://www.alistek.com</a>), ya que gracias a ellos tenemos una alternativa mas sencilla de configurar nuestros reportes que el motor de reportes RML.</p> <p>En el foro en ingles se indica como compilar el instalador de OpenERP para Windows con la versión 2.6 de Python, para ser sincero tuve que escarbar unos cuantos días para lograr hacerlo, con algunos tropiezos y frustraciones&#8230;, pero bueno voy a tratar de dar una guía de como habilitar aeroo reports para los usuarios de Windows</p> <p>Básicamente el problema de la instalación en Windows, es que el instalador all-in-one o el del server que encontramos en la pagina de openerp esta compilado con Python 2.5, para poder conectarse con la librería de PyUNO(Necesario por el Aeroo Reports), es necesario que las versión sobre la que corre el Open sea las misma que la de la libreria y ademas debemos agregar en las librerias necesarias para el modulo(<a title="https://launchpad.net/aeroolib" href="https://launchpad.net/aeroolib" target="_blank">https://launchpad.net/aeroolib</a>, Genshi, entre otras)</p> <p>Primero para poder lograr compilar el instalador de openerp necesitan instalar las siguientes dependencias, que las pueden encontrar en este link</p> <p><a title="https://code.launchpad.net/~openerp-groupes/openerp/win-installer-trunk" href="https://code.launchpad.net/~openerp-groupes/openerp/win-installer-trunk" target="_blank">https://code.launchpad.net/~openerp-groupes/openerp/win-installer-trunk</a></p> <p>Pueden bajarlo por medio del Bazaar, o descargar cada una de las dependencias en la carpeta 2.6.</p> <p>Les recomiendo usar windows XP SP3 para este procedimiento.</p> <p>Instalan Todas las librerías</p> <ul> <li>Primero se intala python2.6.X.msi</li> <li>Despues se instalan todos los demás ejecutables(.exe), el orden en realidad no es demasiado importante</li> <li>Los archivos que son de extensión .egg deben copiarlas en C:\Python26\Lib\site-packages</li> <li>Los archivos compresos de extensión .gz lo descomprimen completamente, luego desde el interprete de comandos(cmd.exe) ejecutan dentro de la ruta de los archivos descompresos &#8220;C:\Python26\python.exe setup.py install&#8221;, luego se mostrara la secuencia de instalación e indicara que se instalo correctamente el con sus dependencias, esto debe hacerse por cada archivo que esta compreso</li> <li>Hay una librería que no se encuentra dentro de las dependencias de la página que es PyXML, aqui les dejo un link <a title="http://somethinkodd.com/PyXML/PyXML-0.8.4.win32-py2.6.exe" href="http://somethinkodd.com/PyXML/PyXML-0.8.4.win32-py2.6.exe" target="_blank">http://somethinkodd.com/PyXML/PyXML-0.8.4.win32-py2.6.exe</a> en donde puede encontrar el instalador</li> <li>Otra librería que hace falta es PyParsing, de esta no encontré un instalador, pero podemos instalarla con el siguiente comando &#8220;c:\Python26\Scripts\easy_install.exe pyparsing&#8221;, esto descargara la última versión</li> <li>Librerías que también falta es la de vobject, <a title="http://vobject.skyhouseconsulting.com/vobject-0.8.1c.tar.gz" href="http://vobject.skyhouseconsulting.com/vobject-0.8.1c.tar.gz" target="_blank">http://vobject.skyhouseconsulting.com/vobject-0.8.1c.tar.gz</a>, hacemos el mismo procedimiento de los archivos comprimidos</li> <li>Por ultimo hay la libreria para el uso de CalDAV, que se llama Pywebdav, que la pueden instalar con el comando &#8220;c:\Python26\Scripts\easy_install.exe pywebdav&#8221;</li> <li>Librerias de Aeroo Reports</li> <ul> <li>De la página <a title="https://launchpad.net/aeroolib" href="https://launchpad.net/aeroolib">https://launchpad.net/aeroolib</a> descargamos la ultima versión de la librería, que para este caso use la RC4, <a title="http://launchpad.net/aeroolib/trunk/rc4/+download/aeroolib.tar.gz" href="http://launchpad.net/aeroolib/trunk/rc4/+download/aeroolib.tar.gz" target="_blank">http://launchpad.net/aeroolib/trunk/rc4/+download/aeroolib.tar.gz</a></li> <li>La descomprimimos y tal como hicimos con las anteriores ejecutamos el comando &#8221;C:\Python26\python.exe setup.py install&#8221; dentro de la carpeta instalada y esto procesara las dependencias, que en este caso es la librería Genshi</li> </ul> </ul> <p>Ahora, hay que corregir un error en la libreria PyXML que fue escrita antes de la aparición de python26, que usa un nombre de variable que es una palabra reservada en python26, asi que deben corregir dos archivos, que se encuentran en esta ruta</p> <p>C:\Python26\Lib\site-packages\_xmlplus\xpath\ParsedAbbreviatedAbsoluteLocationPath.py -&gt; en la linea 27 y 28 es necesario reemplazar la palabra &#8220;as&#8221; por cualquier otro nombre, en mi caso solo coloque un 1 adelante de la palabra</p> <p>C:\Python26\Lib\site-packages\_xmlplus\xpath\ParsedAbbreviatedRelativeLocationPath.py -&gt; en este archivo esta en la linea 31,32</p> <p>Algo que también cabe recalcar antes de compilar, es que la libreria nativa de Python26 de xml tiene unas clases en una carpeta que se llama etree, el PyXML no usa esta librería por defecto así que debemos copiarla en la carpeta para poder tener la librería al momento de ejecutar openerp</p> <p>En esta carpeta C:\Python26\Lib\site-packages\_xmlplus, debemos pegar la carpte &#8220;etree&#8221; que esta en la ruta C:\Python26\Lib\xml, asi no tendremos problemas con nuestra instalación</p> <p>Descargamos los Fuentes, desde el sitio de openerp o pueden realizarlo a través del bazaar</p> <p><a title="http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz" href="http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz" target="_blank">http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz</a></p> <p>Descomprimimos los fuentes, preferiblemente en la raiz(C:\).</p> <p>Luego desde la consola, entramos a la carpeta donde esta descompreso los fuentes del open-erp ejecutamos este comando &#8220;c:\Python26\python.exe setup.py py2exe&#8221;</p> <p>Despues dentro de la carpeta win32 ejecutamos el mismo comando</p> <p>Debido a que el el script de open procesa las dependencias de sus librerías, no incluye a genshi ni a aeroolib, así que tenemos que agregarlas manualmente. Luego de ejecutar los comandos de arriba, en nuestra carpeta se debe haber creado una llamada &#8220;dist&#8221;, dentro esta lo que son los ejecutables como tal del openerp para windows, existe un archivo library.zip que es donde estan algunas librerias, debemos agregar a este zip las carpetas de nuestras librerías que para mi ejemplo estan en:</p> <ul> <li> C:\Python26\Lib\site-packages\aeroolib-1.0.0.RC4-py2.6.egg\aeroolib</li> <li>C:\Python26\Lib\site-packages\Genshi-0.6-py2.6\genshi</li> </ul> <p>Luego de esto, ya estamos listos para generar el instalador para el server, esto lo hace el programa NSIS, lo abrimos y damos clic en &#8220;Compile Script&#8221;, luego de esto el software se encargara de crear el programa instalador para windows</p> <p>&nbsp;</p> <p>Bueno después de esto tenemos que copiar nuestros módulos dentro de la carpeta addons en windows, o la podemos agregar a nuestro instalador, como sea, ya podemos usar los módulos en <a title="https://launchpad.net/aeroo" href="https://launchpad.net/aeroo" target="_blank">https://launchpad.net/aeroo</a>.</p> <p>En una segunda entrega espero poder hacer una guia de como conectarse con PyUNO para convertir en PDF y otros formatos los reportes de Aeroo Reports</p> <p>Y para los que no quieren pasar por todo este tramite, les dejo es link donde pueden encontrar el instalador del ejercicio <a href="https://rapidshare.com/files/2332288264/openerp-server-setup-6.0.3.exe" rel="nofollow">https://rapidshare.com/files/2332288264/openerp-server-setup-6.0.3.exe</a>(Corregido)</p> <p>Saludos</p> <p>Christopher Ormaza</p> <p>Ecuadorenlinea.net</p> Mon, 12 Dec 2011 06:05:47 +0100