Tryton v7 RPC response different than Tryton v5

Hi everyone,
I created a web-app that interfaces with Tryton v5 via rpc. I’m trying to migrate the web-app to Tryton v7, but I detected a change in the response of the rpc call:

in Tryton v5 making an rpc search_read call on the fields [‘from_location’, ‘from_location.rec_name’] the server responds with the following array:

[
  [0] => [
            [
               'from_location' => 536,
               'from_location.rec_name'=>'test_location'
            ]
          ]
]

in Tryton v7 making an rpc search_read call on the fields [‘from_location’, ‘from_location.rec_name’] the server responds with the following array:

[
  [0] => [
            [
               'from_location' => 536,
               'from_location.' => [
                                     'rec_name'=>'test_location',
                                     'id' => 536
                                    ]
            ]
          ]
]

Question:
In Tryton v7 has the rpc response been changed compared to version 5 or am I making an incorrect request?

I think the change is related to this: Allow to read related xxx2Many
Which I think was included in Tryton Release 5.2.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.