fix(Tryton): fix import customers from tryton.

This commit is contained in:
Mono Mono 2025-08-09 15:27:17 -05:00
parent 4734636b4f
commit 271f9b2942

View File

@ -348,7 +348,7 @@ class CustomersFromTrytonView(APIView):
tryton_client.connect()
method = 'model.party.party.search'
context = {'company': 1}
params = [[], 0, 1000, [["rec_name", "ASC"], ["id", None]], context]
params = [[], 0, 1000, [["name", "ASC"], ["id", None]], context]
party_ids = tryton_client.call(method, params)
tryton_parties = self.__get_party_datails(
party_ids, tryton_client, context