Skip to content

Commit

Permalink
Enabled testing on python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
katyukha committed Aug 28, 2015
1 parent 500ff8f commit a802dff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@ python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"

env:
- ODOO_VERSION="8.0" ODOO_PACKAGE="odoo" ODOO_TEST_PROTOCOL='xml-rpc'
Expand Down
11 changes: 7 additions & 4 deletions CHANGELOG.rst
@@ -1,18 +1,21 @@
master:
- Experimental Python 3 support
- *Backward incompatible*: Changed session file format.
*Start up imports* and *extra_paths* moved to *options* section of file.
- *Backward incompatible*: Changed signature of ``Session.connect()`` method.
- *Backward incompatible*: Renamed ``ERP_Proxy`` to ``Client`` and inherited objects renamed in such way
(for example sugar extension module)

- Experimental *Python 3.3+* support
- Added ``HField.with_args`` method.
- Added basic implementation of graph plugin.
- Improved ``openerp_proxy.ext.log_execute_console`` extension. Added timing.
- Added ``Client.clean_caches()`` method, which is used to clean cache of registered models
- RecordList prefetching logic moved to cache module and highly refactored
(Added support of prefetching of related fields)
- Added ``Client.login(dbname, user, password)`` method.
- Changed signature of ``Session.connect()`` method.
- Added ``HTMLTable.update`` method.
- Added ``RecordList.copy()`` and ``RecordList.existing()`` methods.
- Added ``HTMLTable.to_csv()`` method.
- Renamed ``ERP_Proxy`` to ``Client`` and inherited objects renamed in such way
(for example sugar extension module)
- Added ``Client.server_version`` property
- Client parametrs (dbname, user, pwd) now are not required.
This is useful when working with ``db`` service (``client.services.db``)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -28,7 +28,7 @@ OpenERP internal code to perform operations on **OpenERP** / **Odoo** objects hi
Features
~~~~~~~~

- Experimental *Python 3* support
- Experimental *Python 3.3+* support
- supports call to all public methods on any OpenERP/Odoo object including:
*read*, *search*, *write*, *unlink* and others
- Have *a lot of speed optimizations* (especialy for situation, where required processing of
Expand Down
8 changes: 6 additions & 2 deletions openerp_proxy/plugins/module_utils.py
Expand Up @@ -13,12 +13,16 @@ class Meta:
def upgrade(self, ids):
""" Immediatly upgrades module
"""
return self.button_immediate_upgrade(ids)
res = self.button_immediate_upgrade(ids)
self.proxy.clean_caches() # because new models may appear in DB, so registered_objects shoud be refreshed
return res

def install(self, ids):
""" Immediatly install module
"""
return self.button_immediate_install(ids)
res = self.button_immediate_install(ids)
self.proxy.clean_caches() # because new models may appear in DB, so registered_objects shoud be refreshed
return res


class ModuleUtils(Plugin):
Expand Down

0 comments on commit a802dff

Please sign in to comment.