Skip to content

Commit

Permalink
Release 0.9.0
Browse files Browse the repository at this point in the history
- Removed old alias *odoo_rpc_client.orm.record.RecordRelations
- Added *search_count* method to objects (models)
- Added *create_record* method to objects (models)
- Added tests for Odoo 11
- Added overloads of operators (+, +=) for recordlists
- Removed *local* database connector, because it is difficult to test it,
  and it is not used so often as *xml-rpc* and *json-rpc* connectors
  May be in future it will have it's own python package.
  • Loading branch information
katyukha committed Oct 28, 2017
2 parents c15c1cc + ad78cd3 commit b66e7c3
Show file tree
Hide file tree
Showing 19 changed files with 220 additions and 292 deletions.
114 changes: 42 additions & 72 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,99 +15,69 @@ cache:
env:
global:
- TEST_DB_SERVICE=1
- ODOO_INST_PATH=/tmp/odoo-inst
matrix:
- ODOO_VERSION="7.0"
ODOO_RELEASE="7.0"
ODOO_PACKAGE="openerp"
ODOO_TEST_PROTOCOL='xml-rpc'

- ODOO_VERSION="8.0"
ODOO_RELEASE="8.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='json-rpc'

- ODOO_VERSION="8.0"
ODOO_RELEASE="8.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='xml-rpc'

- ODOO_VERSION="9.0"
ODOO_RELEASE="9.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='json-rpc'

- ODOO_VERSION="9.0"
ODOO_RELEASE="9.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='xml-rpc'

- ODOO_VERSION="10.0"
ODOO_RELEASE="10.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='xml-rpc'

- ODOO_VERSION="10.0"
ODOO_RELEASE="10.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='json-rpc'
- ODOO_VERSION="11.0"

matrix:
include:
- python: 2.7
env: ODOO_VERSION="7.0"
ODOO_RELEASE="7.0"
ODOO_PACKAGE="openerp"
ODOO_TEST_PROTOCOL='local'
WITH_SUDO="sudo"
OPENERP_SERVER='/etc/openerp/openerp-server.conf'

- python: 2.7
env: ODOO_VERSION="8.0"
ODOO_RELEASE="8.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='local'
WITH_SUDO="sudo"
OPENERP_SERVER='/etc/odoo/openerp-server.conf'

- python: 2.7
env: ODOO_VERSION="9.0"
ODOO_RELEASE="9.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='local'
WITH_SUDO="sudo"
OPENERP_SERVER='/etc/odoo/openerp-server.conf'

- python: 2.7
env: ODOO_VERSION="10.0"
ODOO_RELEASE="10.0"
ODOO_PACKAGE="odoo"
ODOO_TEST_PROTOCOL='local'
WITH_SUDO="sudo"
OPENERP_SERVER='/etc/odoo/odoo.conf'
ODOO_RC='/etc/odoo/odoo.conf'
fast_finish: true

# TODO: set local connector deprecated
#include:
#- python: 2.7
#env: ODOO_VERSION="7.0"
#ODOO_TEST_PROTOCOL='local'
#WITH_SUDO="sudo"
#OPENERP_SERVER='/etc/openerp/openerp-server.conf'

#- python: 2.7
#env: ODOO_VERSION="8.0"
#ODOO_TEST_PROTOCOL='local'
#WITH_SUDO="sudo"
#OPENERP_SERVER='/etc/odoo/openerp-server.conf'

#- python: 2.7
#env: ODOO_VERSION="9.0"
#ODOO_TEST_PROTOCOL='local'
#WITH_SUDO="sudo"
#OPENERP_SERVER='/etc/odoo/openerp-server.conf'

#- python: 2.7
#env: ODOO_VERSION="10.0"
#ODOO_TEST_PROTOCOL='local'
#WITH_SUDO="sudo"
#OPENERP_SERVER='/etc/odoo/odoo.conf'
#ODOO_RC='/etc/odoo/odoo.conf'


install:
- "sudo apt-get update && sudo apt-get install postgresql-client postgresql adduser python-support locate"
- "wget http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/${ODOO_PACKAGE}_${ODOO_RELEASE}.latest_all.deb -O odoo.deb"
- "! command -v wkhtmltopdf >/dev/null 2>&1 && wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb -O wkhtmltox.deb"
- "! command -v wkhtmltopdf >/dev/null 2>&1 && sudo dpkg --force-depends -i wkhtmltox.deb"
- "sudo dpkg --force-depends -i odoo.deb"
- "sudo apt-get install -f -y"
- "wget -O /tmp/odoo-helper-install.bash https://raw.githubusercontent.com/katyukha/odoo-helper-scripts/master/install-system.bash"
- "sudo bash /tmp/odoo-helper-install.bash"
- "sudo odoo-helper install pre-requirements -y"
- "sudo odoo-helper postgres user-create odoo odoo"
- "odoo-helper install sys-deps -y ${ODOO_VERSION}"
- "odoo-install -i $ODOO_INST_PATH --odoo-version ${ODOO_VERSION}"

# Normal install
- "$WITH_SUDO pip install --upgrade 'coveralls>=1.1' 'setuptools>=18' pip pbr 'anyfield>=0.1.2' 'flake8>=3'"
- "$WITH_SUDO python setup.py develop"
- "pip install --upgrade 'coveralls>=1.1' 'setuptools>=18' pip pbr 'anyfield>=0.1.2' 'flake8>=3'"
- "python setup.py develop"


before_script:
- "sudo invoke-rc.d ${ODOO_PACKAGE} restart"
- "CDIR42=$(pwd) && cd $ODOO_INST_PATH && odoo-helper start && cd $CDIR42"
- "sleep 3"

script:
- "$WITH_SUDO flake8 odoo_rpc_client --count --statistics;" # test code style
- "$WITH_SUDO coverage run -p setup.py test"
- "$WITH_SUDO coverage combine"
- "flake8 odoo_rpc_client --count --statistics" # test code style
- "bash ./scripts/ci_run_tests.bash"

after_success:
- "$WITH_SUDO coveralls"
- "coveralls"
25 changes: 20 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,35 +1,50 @@
Last changes
============


Release 0.9.0
-------------

- Removed old alias *odoo_rpc_client.orm.record.RecordRelations
- Added *search_count* method to objects (models)
- Added *create_record* method to objects (models)
- Added tests for Odoo 11
- Added overloads of operators (+, +=) for recordlists
- Removed *local* database connector, because it is difficult to test it,
and it is not used so often as *xml-rpc* and *json-rpc* connectors
May be in future it will have it's own python package.


Release 0.8.2
=============
-------------

- Avoid unneccesary encode/decode in db dump/restore logic
- Use simplejson for jsonrpc
- Odoo 10 local connector: correcly close db connections on exit


Release 0.8.1
=============
-------------

- Fix local connector for odoo-9.0 when odoo.py is on python path


Big split: odoo_rpc_client 0.8.0
=============================
--------------------------------

- Split openerp_proxy project to set of smaler project
to avoid bringing lot of unneccessary dependencies.
- This project contains core features, aiming to minimize dependencies.
- Features, not included here, all this features will be still available
in openerp_proxy project, which will depend on this one in feature:
in openerp_proxy project, which will depend on this one in future:
- Extensions (especialy repr extension)
- Sessions
- Shell
- Experimental code (introduced in openerp_proxy 0.7.0)
- Plugin - Diagraming
- New features added:
- Connector: 'local'. It allows to connect to local odoo instalce, without http;
- Connector: 'local'. It allows to connect to local odoo instalce,
without http;

Release 0.7.1
-------------
Expand Down
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ Quick example
Supported Odoo server versions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tested with Odoo: *7.0*, *8.0*, *9.0*, *10.0*
Tested with Python versions: *2.7*, *3.3*, *3.4*, *3.5*, *3.6*
Tested with:
- Odoo versions: *7.0*, *8.0*, *9.0*, *10.0*, *11.0*
- Python versions: *2.7*, *3.3*, *3.4*, *3.5*, *3.6*


Install
Expand Down
4 changes: 3 additions & 1 deletion docs/source/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ Quick example
Supported Odoo server versions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tested with Odoo *7.0*, *8.0*, *9.0*, *10.0*
Tested with:
- Odoo versions: *7.0*, *8.0*, *9.0*, *10.0*
- Python versions: *2.7*, *3.3*, *3.4*, *3.5*, *3.6*


Install
Expand Down
9 changes: 0 additions & 9 deletions docs/source/module_ref/odoo_rpc_client.connection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,3 @@
:members:
:undoc-members:
:show-inheritance:

:mod:`local` Module
--------------------

.. automodule:: odoo_rpc_client.connection.local
:members:
:undoc-members:
:show-inheritance:

3 changes: 1 addition & 2 deletions odoo_rpc_client/connection/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import (xmlrpc, # noqa
jsonrpc, # noqa
local) # noqa
jsonrpc) # noqa
from .connection import (ConnectorBase, # noqa
get_connector, # noqa
get_connector_names) # noqa
Loading

0 comments on commit b66e7c3

Please sign in to comment.