edi icon indicating copy to clipboard operation
edi copied to clipboard

[13.0][ADD] edi_punchout

Open hbrunn opened this issue 2 years ago • 10 comments

This module implements several punchout protocols:

  • IDS (very DE specific)
  • OCI (quite EU specific)

Allowing users to transfer orders from a webshop supporting the one of the above to Odoo and the other way around.

Note that the current implementation doesn't protect the login credentials of the webshop because of the way the protocols work, so you should enable this functionality only for trusted users.

The above could be helped by implementing cXML or the secure OCI extension, which is not currently the case.

hbrunn avatar Feb 06 '23 12:02 hbrunn

Hello @hbrunn

For the record I'm currently designing for a customer (in 14.0) a cXML punchout implementation. I think there are things we could share in there, but probably making things modular would help. Among the things I had in mind in my (WIP) design:

  • base_punchout module: providing a punchout_session model, recording the punchout protocol, and adding that field on a sale.order. Possibly adding a way to enable punchout on a customer (res.partner) or on a portal user. In my vision the punchout session would use OCA components for protocol implementation, but this is not really a "must have" feature, at least not in the first version.

  • punchout_cxml_quotation: implement the base cXML support (Profile endpoint, punchout initiation, punchout "checkout").

  • website_sale_punchout_cxml: implement the cXML checkout on the odoo eshop (split out because our customer is using shopinvader for the eshop).

Do you think it would be possible to refactor your module to split out a base layer?

gurneyalex avatar Apr 05 '23 09:04 gurneyalex

@gurneyalex I'd say @hbrunn is working in the opposite behavior with Odoo being in the buyer position instead of the supplier.

In any case, we're indeed working in what you're devising :) Here's a sneak peak o very early work on it (more in progress to be released by my partner @ernesto-garcia-tecnativa ): https://github.com/Tecnativa/e-commerce/commit/ce99a5bfa08600e510d49d74857d99b15b43f462

I you want to we can meet and devise possible common efforts :smiley:

chienandalu avatar Apr 05 '23 09:04 chienandalu

yes @gurneyalex @chienandalu this is indeed the other way around.

If I may provide input for the server side: Some suppliers allow to create an account with permissions to only create carts and check them out via punchout (no option to really order at that point), and only send them readonly when they come in via IDS/OCI/cXML. That's a very handy feature for implementing purchase workflows with those protocols to avoid mistakes with manual changes.

hbrunn avatar Apr 06 '23 13:04 hbrunn

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.

github-actions[bot] avatar Jan 21 '24 12:01 github-actions[bot]

@hbrunn Can yuo attend to this PR? 🙏

bosd avatar Feb 14 '24 06:02 bosd

@bosd done

hbrunn avatar Feb 19 '24 08:02 hbrunn

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.

github-actions[bot] avatar Sep 15 '24 12:09 github-actions[bot]