Odoo 10
Revision as of 17:37, 29 October 2016 by Nicolas Rollin (talk | contribs)
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
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)