Skip to content

Commit

Permalink
Merge pull request #1 from katyukha/dev
Browse files Browse the repository at this point in the history
Release 0.8.1
=============

- Fix local connector for odoo-9.0 when odoo.py is on python path
  • Loading branch information
katyukha authored Feb 7, 2017
2 parents 2711aec + 1fb9dd1 commit 250d290
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 26 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,31 +61,32 @@ matrix:
ODOO_PACKAGE="openerp"
ODOO_TEST_PROTOCOL='local'
WITH_SUDO="sudo"
ODOO_TEST_LOCAL_ARGS="['-c', '/etc/openerp/openerp-server.conf']"
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"
ODOO_TEST_LOCAL_ARGS="['-c', '/etc/odoo/openerp-server.conf']"
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"
ODOO_TEST_LOCAL_ARGS="['-c', '/etc/odoo/openerp-server.conf']"
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"
ODOO_TEST_LOCAL_ARGS="['-c', '/etc/odoo/odoo.conf']"
OPENERP_SERVER='/etc/odoo/odoo.conf'
ODOO_RC='/etc/odoo/odoo.conf'


install:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Last changes
============

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
=============================

Expand Down
1 change: 1 addition & 0 deletions odoo_rpc_client/connection/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _start_odoo_services(self):
try:
# Odoo 10.0+
import odoo
import odoo.release # to avoid 9.0 with odoo.py on path
except ImportError:
try:
# Odoo 9.0 and less versions
Expand Down
21 changes: 0 additions & 21 deletions odoo_rpc_client/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- encoding: utf-8 -*-
import os
import six
import functools

Expand All @@ -8,17 +7,8 @@
'DirMixIn',
'UConverter',
'wpartial',
'makedirs',
'xinput',
)


# Python 2/3 workaround in raw_input
try:
xinput = raw_input
except NameError:
xinput = input

# Check if anyfield is installed
# and import function which converts SField instances to functions
try:
Expand All @@ -28,17 +18,6 @@ def normalizeSField(fn):
return fn


def makedirs(path):
""" os.makedirs wrapper. No errors raised if directory already exists
:param str path: directory path to create
"""
try:
os.makedirs(path)
except os.error:
pass


def wpartial(func, *args, **kwargs):
"""Wrapped partial, same as functools.partial decorator,
but also calls functools.wrap on its result thus shwing correct
Expand Down
2 changes: 1 addition & 1 deletion odoo_rpc_client/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.8.0" # pragma: no cover
version = "0.8.1" # pragma: no cover

0 comments on commit 250d290

Please sign in to comment.