-
-
Notifications
You must be signed in to change notification settings - Fork 65
[WIP] odoo2odoo connector framework #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 8.0
Are you sure you want to change the base?
Conversation
Hi @sebalix, thanks for your contribution. Great to see interest on this topic. Since @yelizariev (see comment in #1) has also started on migrating the code from #1 to odoo10 I would propose to share the work for version 8 and 10. What do you think? |
Hi, The main issue for us about #1 is to handle everything: synchronization mechanism, and piece of data to synchronize (like I prefer to separate concerns, as the For instance, in one of our project, we do not handle data model one by one, we have a generic synchronization logic were the input is a list of models That said, I am not against joining the effort especially for v10, I can close my PR without any problem :) I put this code here for someone which could have been interested on the community ML and to get some feedback (as you did!). Regards, |
@sebalix what I wanted to ask is will you add Thank you. |
|
@sebalix I understand your issues. As you correctly said, the PR #1 is originated from IC process requirements. Netherless I like your approach (separating concerns). Thus, I think we should try to fix the module structure and merge the "best" of both PRs. When we agree on the module structure we should start with V8 implementation and build the V10 on top of this. For my customers, V9 is not needed. |
@maljac I would like that, build some base modules and others built on top of them. I don't need v9 neither. We can focus on common Binding, Binder, Mappers, Exporter, Importer classes (I didn't implemented the last one ATM). There are some points where I am not comfortable like the best way to create a binding record, or to export a record with its dependent relationships with a channel of size 4 (and to avoid a double export of one record). From our side we fixed that by setting a channel of size 1, and each data model has a "computed" priority, the volume of data is not important enough to process jobs in parallel. I'm not sure to have enough time too, but I can do my best. What do you prefer, updating your PR, mine, or make a new one? |
Hi, is this project been worked on or is it abandoned... I'd like to use it in v9, but it seems that v9 is not developed yet. Maybe I can help in a v9 migration. Thanks a lot. |
you might be interested in https://github.com/OCA/server-tools/tree/8.0/base_import_odoo ultimately, I think those two should be merged |
Modules |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
This is a WIP PR, I put the code here if people wants to contribute (any help is welcome!).
There are two base modules (framework):
odoo2odoo_backend
: implements someConnectorUnit
classes to synchronize data between Odoo instancesodoo2odoo_node
: adds new CRUD methods similar tocreate
,read
,write
and
unlink
to focus on the data and avoid undesirable behavior (customoverloads of the standard methods). These new methods can be used by the
odoo2odoo_backend
module to drive a low-level data synchronization.These modules do nothing by themself, this is just a framework.
And others modules based on them:
odoo2odoo_ir
: manage synchronization of some basic data (like translations)odoo2odoo_product
: products synchronization (with category, UoM...)