Community mailing list archives
Re: V8 - New APIby
Akretion, Raphael Valyi
in the mean time, this web_context_module we made will save your life: as long as a method has a context argument, then we hack the web client so that you can tunnel any extra argument inside it without the need to alter existing method signatures:
I'll personally take care its usage get increased among the OCA where it makes sense so that compatibility increase. As for the core addons, they are roughly tested with all modules installed, so core methods have signature that tend to work well enough for the core modules already even if their arguments may look arbitrary when you move out of the core and use some complex localization for instance.
This is absolutely a hack, but I made 1 year ago, exactly because I knew it would take years to get the new API everywhere, so meanwhile you can still work and do your projects in the most compatible way possible.
I also think it's not feasible to convert more modules before v8. There are still quite a few bugs https://github.com/odoo/odoo/issues and IMHO this is way more important to process these patches ad fix the regressions than try to bundle more stuff in the release and create other regressions (most of the regression happened after the new API. The new API was an absolutely required move but still it comes at a cost).
On Wed, Jul 30, 2014 at 9:29 AM, Fabien Pinckaers <firstname.lastname@example.org> wrote:
On 07/30/2014 02:16 PM, Gustavo Marino wrote: > Fabien: > Even if not all modules are rewritten, sale and purchase are very good > candidates to have under the new API, because there are many > customization modules based on these two basic ones. account and event have been ported to new API but we don't plan to port more modules before v8. The v8 API is frozen now, so we can't change anything. sale and purchase will be amongst the firsts modules that will be reimplemented in new API for v9. Thanks, -- Fabien Pinckaers Odoo Founder Phone: +126.96.36.199.00