Releases: katyukha/openerp-proxy
Releases · katyukha/openerp-proxy
Release 1.0.0
Release 0.7.1
Release 0.7.1
- Bugfix in
Client.ref
method. now it returnsRecord
instance,
as mentioned in documentation - Added
Record.get(field_name, default)
method.
Release 0.7.0
Release 0.7.0
client.server_version
now is aliase to
client.services.db.server_base_version
- Added
services.db.server_base_version()
which could be safely compared like:
client.services.db.server_base_version() >= pkg_resources.parse_version('9.0')
- Added method
search_read
to orm.object - Drop support of OpenERP 6.0
ext.repr
: Added ability to pass table format to .as_table method
tablefmt arg must be suitable for tabulate.tabulate method from
Tabulate package- Added
openerp_proxy.experimental
subpackage. - Refactored session logic. Logic related to database / client connection
management moved to separate classopenerp_proxy.session.ClientManager
which can be used outside session logic. - Added
Client.ref
method, then returnsRecord
instance for
specified xmlid - Added
Client.database_version_full
andClient.database_version
properties - Added
Session.del_db
andClientManager.del_client
methods - Added
client.services.db.db_exist
method wrapper
Release 0.6.9
Release 0.6.9
external_ids
plugin now addsRecord.as_xmlid
method- bugfix: ensure thet record is present in cache on init of Record class
- bugfix: [json-rpc], if RPC method results in None, then there is no
'result' object in response, so if there are no 'error' object, nor 'result',
then suppose that 'result' is None, thus it is possible to deal with
Odoo methods, that returns None as result via RPC
Release 0.6.8
- bugfix in
HTMLTable.to_csv
for Python 3 related to writing non-ascii characters to csv file - Link to new example added to readme
- session added property index_rev, which now is used to save index in file
- bugfix in
utils.AttrDict.__dir__
method. now it works allowing IPython auto-comlete for
objects that useutils.AttrDict
class - better support of last IPython shell
- prefetching:
- bugfix: some times when passed few fields with
same names, prefetch raises strange errors (atleast on odoo 7.0 instance) - improvement: prefetch only records that have no atleast one field in cache
- bugfix: some times when passed few fields with
Release 0.6.7
- Representation module improvements
- HField: added
is_header
parameter, which in HTML representation wraps field in<th>
tag
instead of default<td>
orm.Record
representation improvement: now it is displayed as three-column table with
system field name, user visible field name and field value
- HField: added
- Examples:
- Added one more example:
RecordList Representation.ipynb <examples/RecordList Representation.ipynb>
__
- Added one more example:
- Bugfixes:
- session: client._no_save attr was not set on client by default
- session: connection index now saved in session too
- representation: better handled cases when HField._field is callable which throws error,
now, if field._silent is set, then no error will be raised - representation: if HField which results in HTML capable value displayed not inside HTMLTable,
then default value representation will be used, not HTML one.
Release 0.6.6
- Bugfix: Issue #4
- Bugfix: double call to _get_registered_objects, caused be cleaning caches,
on assess to any service first time - module_utils plugin fixes mostly related to dir method (used for auto-complete in IPython)
- added
stdcall
decorators toupgrade
andinstall
methods of 'ir.module.module' object - Bugfix in
__dir__
implementation for plugin object - added
installed_modules
property tomodule_utils
plugin - better tests for this plugin
- added
Release 0.6.5
- Added
openerp_proxy.plugins.external_ids
plugin openerp_proxy.ext.repr
: better support ofIPython.display.HTML
objects representationopenerp_proxy.ext.sugar
: Added ability to access plugins directly fromclient
instance
For example, instead of writingclient.plugins.Test
, you may writeclient.Test
stdcall
decorator andstdcall
-methods. All methods oform.object.Object
instances,
decorated with this decorator will be visible as methods oform.record.Record
andorm.record.RecordList
instances, which means that these methods could be called inmeth([ids], *, context=context, **)
format.
all automaticaly generated proxy method are marked asstdcall
This is implemented to be able to usedir
-based auto-completition for such method for
Record
andRecordList
instancesopenerp_proxy.plugin.Plugins
,openerp_proxy.plugin.PluginManager
,
openerp_proxy.service.service.ServiceManager
,openepr_proxy.service.service.ServiceBase
representation
improvements (better__str__
and__repr__
overrides)- Bugfix. Automaticaly clean service caches when new service class is defined
- Added
__contains__
override formodule_utils
plugin. Thus it is posible to check
if some addon is available on odoo easier:'project_sla' in client.plugins.module_utils
or'project_sla' in client.module_utils
- Improved documentation
Version 0.6.4
- Added
Client.user_context
property - Bugfix in
openerp_proxy.ext.repr
with nested tables when, field is a function - Fix for PR #3
- Documentation improvements
Version 0.6.3
- Added
Record.copy()
method override. - HTML representation fixes and improvements