-
- Downloads
[IMP] adapt all calls to ormcache() to its new API
This fixes a bug on some methods. Because `ormcache` uses the decorator `decorator`, the `context` argument is passed positionally to the decorated lookup method, instead of being passed as a keyword argument. As a consequence, the context dictionary is included in the cache key, which makes the cache lookup fail all the time. Using the new API of `ormcache` gracefully fixes this issue.
Showing
- addons/decimal_precision/decimal_precision.py 1 addition, 1 deletionaddons/decimal_precision/decimal_precision.py
- addons/website/models/website.py 5 additions, 5 deletionsaddons/website/models/website.py
- addons/website_sale/models/sale_order.py 6 additions, 5 deletionsaddons/website_sale/models/sale_order.py
- openerp/addons/base/ir/ir_config_parameter.py 1 addition, 1 deletionopenerp/addons/base/ir/ir_config_parameter.py
Loading
Please register or sign in to comment