odoo/odoo#204049

Created by fw-bot
Merged at 5f7547a522ee4e2d81d34e65c118d6db6d33639f

Statuses:

label
odoo-dev:master-17.0-account_peppol-fix-search-only-for-peppol-edi-loug-426456-fw
head
7c506c4c92c25568f5b0c0d6591f57acd869ca87
merged
7 months ago by Training, Louis Gobert (loug)
odoo/odoo
17.0 #203734
saas-17.4 #203881
18.0 #203998
saas-18.1 #204018
saas-18.2 #204032
saas-18.3
saas-18.4
19.0
master #204049

[FW][FIX] account_peppol: search only for Peppol EDI users

Ensure only Peppol-type proxies are retrieved when performing Peppol operations.

Steps to reproduce:
- Install Peppol and IT EDI
- Register Peppol and IT EDI users
- In Accounting, on the Vendor Bill journal, click "Fetch from Peppol"

Odoo will attempt requests for all users, including an invalid call
to 'False/api/peppol/1/get_all_documents'. This is not an issue in V17
but causes problems in V18.

This fix makes sense in both versions as it prevents unnecessary
requests and avoids error messages in the logs.

opw-4624633

Forward-Port-Of: #203881
Forward-Port-Of: #203734