Odoo 10
Revision as of 19:19, 14 January 2017 by Nicolas Rollin (talk | contribs) (Nicolas Rollin moved page OpenERP to Odoo)
Odoo
Installation
Prerequisite
Pyhton
apt-get install python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi poppler-utils python-pip python-pypdf python-passlib python-decorator gcc python-dev mc bzr python-setuptools python-markupsafe python-reportlab-accel python-zsi python-yaml python-argparse python-openssl python-egenix-mxdatetime python-usb python-serial lptools make python-pydot python-psutil python-paramiko poppler-utils python-pdftools antiword python-requests python-xlsxwriter python-suds python-psycogreen python-ofxparse python-gevent
Jnodes
apt-get install npm ln -s /usr/bin/nodejs /usr/bin/node npm install -g less less-plugin-clean-css
User Odoo
adduser --system --home=/opt/odoo --group odoo
Gdata
cd /opt/odoo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gz tar zxvf gdata-2.0.18.tar.gz chown -R odoo: gdata-2.0.18 gdata-2.0.18/ python setup.py install
Account Link
Account Master
select id, name from account_account where name in ('Product Sales', 'Expenses');
id | name -----+--------------- 19 | Product Sales 23 | Expenses (2 rows)
Property
select id, name, type, fields_id, value_reference, res_id from ir_property where value_reference like '%23' or value_reference like '%19';
id | name | type | fields_id | value_reference | res_id ----+--------------------------------+----------+-----------+--------------------+-------- 4 | property_account_expense_categ | many2one | 1947 | account.account,23 | 5 | property_account_income_categ | many2one | 1948 | account.account,19 | (2 rows)
Model
select id, model, name, relation, field_description from ir_model_fields where id in (1947, 1948);
id | model | name | relation | field_description ------+------------------+--------------------------------+-----------------+------------------- 1947 | product.category | property_account_expense_categ | account.account | Expense Account 1948 | product.category | property_account_income_categ | account.account | Income Account (2 rows)