Contributors mailing list archives
Camptocamp SA, Simone Orsi
getting back to this after quite some time...
Can we do the switch?
On Mon, Nov 9, 2020 at 12:24 PM Simone Orsi <email@example.com> wrote:
@Seb: thanks for putting everything together! :)@Pedro,On Mon, Nov 9, 2020 at 11:46 AM Pedro M. Baeza (Tecnativa) <firstname.lastname@example.org> wrote:It's useful indeed, thanks. Note that a similar technique was already used in modules like `base_multi_company`: https://github.com/OCA/multi-company/blob/12.0/base_multi_company/tests/test_multi_company_abstract.py#L19yeah but this approach - which we used several times in different ways in different contexts - turned out to not be 100% reliable regarding registry cleanup, especially when registering extensions of existing models.I think this should be included in https://github.com/OCA/oca-de# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
corators (and maybe change its name to ocalib or similar), or convert it to a decorator over a class. If we split a lot the number of helpers libraries across OCA, it would be impossible to follow them. Having grouped in one library, will help the discovering and also to join efforts in the maintenance.Probably it's better to keep it separated, at least for now. Also, handling releases for a narrower scope will be easier.Regards.
--Simone OrsiFull stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source.
Full stack Python web developer, Odoo specialist, Odoo Community Board Member, in love with open source.