Openerp-proxy

Latest version: v1.0.0

Safety actively analyzes 619197 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

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

0.7.1

-------------

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

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 <https://pypi.python.org/pypi/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

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

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 is used
to save index in file
- bugfix in ``utils.AttrDict.__dir__`` method.
now it works, so IPython auto-comlete for
objects that use ``utils.AttrDict`` class works too
- 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 at least one field in cache

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

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.