OCA / edi-framework

GNU Affero General Public License v3.0
6 stars 29 forks source link

[16.0][POC] edi_oca: relate multiple records with a single exchange record #42

Closed JordiMForgeFlow closed 3 months ago

JordiMForgeFlow commented 9 months ago

In our projects we have faced different scenarios where we have needed to link more than one Odoo record to an exchange record. For example, in a warehouse integration, you could be exchanging a Product Masterdata file including multiple products, and you want them all to be linked to the exchange record.

Currently the EDI framework only allows to link one Odoo record to an exchange record. Using the current code, a solution could be to use the ability to link exchange records in a parent/child relation. However, in the use case presented you will only sent one file, so it is a bit weird to have child exchange records that will simply do nothing.

My goal is to try to find a solution that fits the current code and allows covering these type of use cases. As a generic approach, I am proposing this POC where we could simply add a model to relate multiple records (being from different models) with a single exchange record. Obviously, if this is agreed as a good solution, we would then work in this PR to implement it properly.

Looking forward to get your opinions!

CC @etobella @simahawk @JaumeBforgeFlow

OCA-git-bot commented 9 months ago

Hi @simahawk, @etobella, some modules you are maintaining are being modified, check this out!

github-actions[bot] commented 5 months ago

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. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.