diff options
| author | Raphael Collet <rco@openerp.com> | 2015-11-24 15:37:48 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-11-25 09:59:35 +0100 |
| commit | 8e1a5add38ddc6d19a38f7eff7c5645de4a4b1a4 (patch) | |
| tree | 34660aeee4dfa73c788042e6ce977038ecdae94c /addons/web/static/src/js/framework | |
| parent | 3e03cfe7ac82cd8df3dd5819b1c730706dc6451d (diff) | |
[FIX] api: improve decorator `returns` to handle special cases, like method `search`
Add the possibility in the decorator to specify the `upgrade` and `downgrade`
functions that convert values between APIs. Both function have the same API:
upgrade(self, value, *args, **kwargs)
downgrade(self, value, *args, **kwargs)
The arguments ``self``, ``*args`` and ``**kwargs`` are the ones passed to the
method, following its new-API signature.
Fixes #4944, #7830.
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions
