Releases: katyukha/openerp-proxy
Releases · katyukha/openerp-proxy
Release 1.0.0
Release 0.7.1
Release 0.7.1
- Bugfix in
Client.refmethod. now it returnsRecordinstance,
as mentioned in documentation - Added
Record.get(field_name, default)method.
Release 0.7.0
Release 0.7.0
client.server_versionnow 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_readto 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.experimentalsubpackage. - 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.refmethod, then returnsRecordinstance for
specified xmlid - Added
Client.database_version_fullandClient.database_version
properties - Added
Session.del_dbandClientManager.del_clientmethods - Added
client.services.db.db_existmethod wrapper
Release 0.6.9
Release 0.6.9
external_idsplugin now addsRecord.as_xmlidmethod- 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_csvfor 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.AttrDictclass - 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_headerparameter, which in HTML representation wraps field in<th>tag
instead of default<td> orm.Recordrepresentation 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
stdcalldecorators toupgradeandinstallmethods of 'ir.module.module' object - Bugfix in
__dir__implementation for plugin object - added
installed_modulesproperty tomodule_utilsplugin - better tests for this plugin
- added
Release 0.6.5
- Added
openerp_proxy.plugins.external_idsplugin openerp_proxy.ext.repr: better support ofIPython.display.HTMLobjects representationopenerp_proxy.ext.sugar: Added ability to access plugins directly fromclientinstance
For example, instead of writingclient.plugins.Test, you may writeclient.Teststdcalldecorator andstdcall-methods. All methods oform.object.Objectinstances,
decorated with this decorator will be visible as methods oform.record.Recordandorm.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
RecordandRecordListinstancesopenerp_proxy.plugin.Plugins,openerp_proxy.plugin.PluginManager,
openerp_proxy.service.service.ServiceManager,openepr_proxy.service.service.ServiceBaserepresentation
improvements (better__str__and__repr__overrides)- Bugfix. Automaticaly clean service caches when new service class is defined
- Added
__contains__override formodule_utilsplugin. 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_contextproperty - Bugfix in
openerp_proxy.ext.reprwith 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