Issue 10417

Title
Wrong account used when processing purchase with multiple companies
Priority
bug
Status
testing
Superseder
Use instance context to get account (issue 10557)
Nosy list
ced, pokoli
Assigned to
Keywords

Created on 2021-05-12.14:53:10 by pokoli, last changed 1 week ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-07-13.21:19:54

Indeed I think it should be solved by issue10557.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-07-13.21:16:56

Could you provide the traceback of the error message?

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2021-05-12.14:53:10

We create a purchase for COMPANY A, while the user being at COMPANY B (but having also access to company A).

When processing the purchase, the system complaints about a Wrong account, because it is selecting the product account's for COMPANY B (the user one) instead of using the one for the purchase company.

I guess the problem is that related to the fact that the purchase is processed in the queue so using the company from the user context instead of the purchase one.

History
Date User Action Args
2021-07-13 21:19:54cedsetmessages: + msg68900
status: need-eg -> testing
superseder: + Use instance context to get account
2021-07-13 21:16:56cedsetmessages: + msg68899
nosy: + ced
status: unread -> need-eg
2021-05-12 14:53:10pokolicreate