Skip to content
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

[16.0] Assistance Required for EDI Process sale orders from ext storage #121

Open
Hbohry opened this issue Dec 2, 2024 · 11 comments
Open
Labels
question Further information is requested

Comments

@Hbohry
Copy link

Hbohry commented Dec 2, 2024

EDIT: Odoo 16.0 EE

We are currently facing some difficulties in setting up the EDI process on Odoo and need your assistance to move forward.

Here is what we've done so far:

To implement the EDI process, we have cloned all the modules into the EDI Framework repository.

We have watched the OCA Days videos on EDI (2021, 2022, and 2023).

Our goal is to create a quote automatically on Odoo from FTP, and we believe the EDI modules should handle this task.

We have followed these steps:

  • Configuration of the FTP server.

  • Configuration of EDI Backend and EDI Backend Type.

  • Configuration of Exchange Type and its component:

components:
    process:
        usage: input.process.sale.order
sale_order:
        confirm_order: true
  • Manual execution of the cron: "EDI exchange check input sync".

However, we are currently stuck and do not know what to do next to make the import work.

Could you please guide us on how to proceed or provide any assistance to help us resolve this issue?

Below you can find some details explaining our setup :

FTP server configuration
FTP

Configuration EDI BACKEND :
backend
backen-type

Configuration EDI Exchange type :
exchange-type
component
rule

All the resulting job queues are failed :
queue-job

In addition to that , all the exchanges records created are either pending or doesn't have any files
EDI-exchange

Thank you very much for your support.

@Hbohry Hbohry added the bug Something isn't working label Dec 2, 2024
@simahawk simahawk added question Further information is requested and removed bug Something isn't working labels Dec 5, 2024
@simahawk
Copy link
Contributor

simahawk commented Dec 5, 2024

Failed jobs: how? What's the error?

@Hbohry
Copy link
Author

Hbohry commented Dec 5, 2024

this is the error message
failed

@simahawk
Copy link
Contributor

simahawk commented Dec 6, 2024

@Hbohry sorry but the only relevant part at the bottom is cut :)

@Hbohry
Copy link
Author

Hbohry commented Dec 10, 2024

Exception:NotImplementedError
Traceback (most recent call last):
File "/home/hbohry/workspace/odoo_17/third-party/queue_job/controllers/main.py", line 104, in runjob
self._try_perform_job(env, job)
File "/home/hbohry/workspace/odoo_17/third-party/queue_job/controllers/main.py", line 36, in _try_perform_job
job.perform()
File "/home/hbohry/workspace/odoo_17/third-party/queue_job/job.py", line 522, in perform
self.result = self.func(*tuple(self.args), **self.kwargs)
File "/home/hbohry/workspace/odoo_17/third-party/edi_oca/models/edi_exchange_record.py", line 331, in action_exchange_receive
return self.backend_id.exchange_receive(self)
File "/home/hbohry/workspace/odoo_17/third-party/edi_oca/models/edi_backend.py", line 549, in exchange_receive
content = self._exchange_receive(exchange_record)
File "/home/hbohry/workspace/odoo_17/third-party/edi_oca/models/edi_backend.py", line 601, in _exchange_receive
raise NotImplementedError()
NotImplementedError

@simahawk
Copy link
Contributor

Weird, it sounds like this component is not registered https://github.com/OCA/edi-framework/blob/16.0/edi_storage_oca/components/receive.py

@Hbohry
Copy link
Author

Hbohry commented Dec 11, 2024

i already have this component in my code , yet i didn't understand your point on how it can be registered any further
edi-receive

@simahawk
Copy link
Contributor

simahawk commented Dec 11, 2024

If the module edi_storage is installed properly you shouldn't do anything to register it.
You should debug what's happening on the component lookup.
You can place a pdb here and inspect usage_candidates. You should find storage.receive (thanks to this override https://github.com/OCA/edi-framework/blob/16.0/edi_storage_oca/models/edi_backend.py#L69).
If that's the case, the call to _matching_components should give you back that component.
If it's not happening you can inspect the work.components_registry to see if the module and the component are registered properly.

@Hbohry
Copy link
Author

Hbohry commented Dec 11, 2024

To make sure that our set up is all good , can you provide us with the list of apps i need to install to sucessfully make the automatic import of the ftp files via edi

@AmbarekTeamdoo
Copy link

AmbarekTeamdoo commented Dec 19, 2024

Hello,
I am working on the same issue, but something is unclear: does the module support @GP as an EDI service provider ?

@simahawk
Copy link
Contributor

simahawk commented Dec 19, 2024

To make sure that our set up is all good , can you provide us with the list of apps i need to install to sucessfully make the automatic import of the ftp files via edi

There's nothing else to install. The modulesedi_storage takes care of defining the component and the configuration for for the storage.
But wait, I've just seen that the error comes from /home/hbohry/workspace/odoo_17/... but you said you are working on v16.... are you sure your installation is done properly or that you are running odoo w/ the right addons path?

@simahawk
Copy link
Contributor

Hello, I am working on the same issue, but something is unclear: does the module support @GP as an EDI service provider ?

What do you mean? I'm not sure this question is pertinent here :)

However. the framework - because it's a framework - does not support any specific provider. It gives you most of the automation you need to talk to any kind of service. You can call webservices or being called via endpoints or you can put and get files from/to an ext storage.

@simahawk simahawk changed the title Assistance Required for EDI Process Setup on Odoo [16.0] Assistance Required for EDI Process sale orders from ext storage Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants