Skip to content

Releases: katyukha/openerp-proxy

Release 1.0.0

02 Sep 16:58
Compare
Choose a tag to compare

Release 1.0.0

  • core logic moved to separate package: odoo-rpc-client <https://github.com/katyukha/odoo-rpc-client>__
  • Added new parameter to HField class: highlighters that allows to highlight HTMLTable cells

Release 0.7.1

09 Dec 14:32
Compare
Choose a tag to compare

Release 0.7.1

  • Bugfix in Client.ref method. now it returns Record instance,
    as mentioned in documentation
  • Added Record.get(field_name, default) method.

Release 0.7.0

07 Oct 10:11
Compare
Choose a tag to compare

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 class openerp_proxy.session.ClientManager
    which can be used outside session logic.
  • Added Client.ref method, then returns Record instance for
    specified xmlid
  • Added Client.database_version_full and Client.database_version
    properties
  • Added Session.del_db and ClientManager.del_client methods
  • Added client.services.db.db_exist method wrapper

Release 0.6.9

06 Jun 13:08
Compare
Choose a tag to compare

Release 0.6.9

  • external_ids plugin now adds Record.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

27 Apr 07:37
Compare
Choose a tag to compare
  • 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 use utils.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

Release 0.6.7

11 Apr 10:48
Compare
Choose a tag to compare
  • 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
  • Examples:
    • Added one more example:
      RecordList Representation.ipynb <examples/RecordList Representation.ipynb>__
  • 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

23 Mar 11:03
Compare
Choose a tag to compare
  • 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 to upgrade and install methods of 'ir.module.module' object
    • Bugfix in __dir__ implementation for plugin object
    • added installed_modules property to module_utils plugin
    • better tests for this plugin

Release 0.6.5

10 Mar 15:25
Compare
Choose a tag to compare
  • Added openerp_proxy.plugins.external_ids plugin
  • openerp_proxy.ext.repr: better support of IPython.display.HTML objects representation
  • openerp_proxy.ext.sugar: Added ability to access plugins directly from client instance
    For example, instead of writing client.plugins.Test, you may write client.Test
  • stdcall decorator and stdcall-methods. All methods of orm.object.Object instances,
    decorated with this decorator will be visible as methods of orm.record.Record and orm.record.RecordList
    instances, which means that these methods could be called in meth([ids], *, context=context, **) format.
    all automaticaly generated proxy method are marked as stdcall
    This is implemented to be able to use dir-based auto-completition for such method for
    Record and RecordList instances
  • openerp_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 for module_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

04 Mar 12:17
Compare
Choose a tag to compare
  • 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

04 Mar 12:16
Compare
Choose a tag to compare
  • Added Record.copy() method override.
  • HTML representation fixes and improvements