- No change. Re-upload to PyPI.
- Default location for the configuration file is the initial working directory.
- Enhanced syntax for method :meth:`RecordList.filtered`.
E.g. instead of
records.filtered(lambda r: r.type == 'active')
it's faster to userecords.filtered(['type = active'])
. - Support unary operators even for Python 3.
- Basic sequence operations on :class:`Env` instance.
- No change. Re-upload to PyPI.
- Fix :meth:`RecordList.mapped` method with empty one2many or many2many fields.
- Hide arguments of
partial
objects.
- Fix new feature of 2.1.4.
- Support
env['res.partner'].browse()
and return an emptyRecordList
.
- Fix a bug where method
with_context
returns an error if we update the values of the logged-in user before. - Allow to call RPC method
env['ir.default'].get(...)
thanks to a passthrough in the :meth:`Model.get` method.
- Store the cursor :attr:`Env.cr` on the :class:`Env` instance in local mode.
- Drop support for Python 3.2 and 3.3
- Do not call ORM method
exists
on an empty list because it fails with OpenERP. - Provide cursor :attr:`Env.cr` in local mode, even with OpenERP instances.
- Optimize and fix method :meth:`RecordList.filtered`.
- Allow to bypass SSL verification if the server is misconfigured.
Environment variable
ODOOLY_SSL_UNVERIFIED=1
is detected. - Accept multiple command line arguments for local mode. Example:
odooly -- --config path/to/odoo.conf --data-dir ./var
- Add
self
to theglobals()
in interactive mode, to mimic Odoo shell. - On login, assign the context of the user:
env['res.users'].context_get()
. Do not copy the context when switching database, or when connecting with a different user. - Drop attribute
Client.context
. It is only available as :attr:`Env.context`. - Fix hashing error when :attr:`Env.context` contains a list.
- Assign the model name to
Record._name
. - Fix installation/upgrade with an empty list.
- Catch error when database does not exist on login.
- Format other Odoo errors like
DatabaseExists
.
- Fix cache of first
Env
in interactive mode. - Correctly invalidate the cache after installing/upgrading add-ons.
- Add tests for :meth:`Model.with_context`, :meth:`Model.sudo` and :meth:`Env.sudo`.
- Copy the context when switching database.
- Change interactive prompt
sys.ps2
to" ... "
.
- Provide :meth:`Env.sudo` in addition to same method on
Model
,RecordList
andRecord
instances. - Workflows and method
object.exec_workflow
are removed in Odoo 11. - Do not prevent login if access to
Client.db.list()
is denied. - Use a cache of :class:`Env` instances.
- Add documentation for methods :meth:`RecordList.exists` and :meth:`RecordList.ensure_one`.
- Add documentation for methods :meth:`RecordList.mapped`, :meth:`RecordList.filtered` and :meth:`RecordList.sorted`.
- Add documentation for methods :meth:`Model.with_env`, :meth:`Model.sudo` and :meth:`Model.with_context`. These methods are also available on :class:`RecordList` and :class:`Record`.
- Changed method
exists
on :class:`RecordList` and :class:`Record` to return record(s) instead of ids. - Fix methods
mapped
,filtered
andsorted
. Add tests. - Fix method
RecordList.ensure_one()
when there's identical ids orFalse
values. - Fix method
RecordList.union(...)
and related boolean operations.
- First release of Odooly, which mimics the new Odoo 8.0 API.
- Other features are copied from ERPpeek 1.7.