Issue 10544

Title
Wrong account used when creating commission invoices
Priority
bug
Status
testing
Superseder
Use instance context to get account (issue 10557)
Nosy list
ced, pokoli, reviewbot
Assigned to
pokoli
Keywords
backport, review

Created on 2021-06-29.14:32:06 by pokoli, last changed 2 weeks ago by reviewbot.

Messages

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2021-07-08.11:14:08

I just applied the proposed patch of issue10557 and it does not fix the issue.
Debugging shows that altought the invoice_line has been instanciated with company 2, the product still has company 1 in context.

To make it work, we need to instanciate the product instance with the right company in the context.
I updated review363501006 with the needed changes to make it work.

Could you confirm we are on the right path?

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-07-07.01:12:02

I think it should be fixed globally by issue10557.

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2021-06-29.14:32:06

When creating an invoice of an agent assigned to a different company that the current one a domain complaining about the wrong account is raised.

This is because the context is not set to the agent company, so the current one is used.

History
Date User Action Args
2021-07-08 11:22:15reviewbotsetmessages: + msg68770
2021-07-08 11:14:08pokolisetmessages: + msg68769
2021-07-07 01:12:03cedsetmessages: + msg68740
nosy: + ced
superseder: + Use instance context to get account
2021-06-29 14:59:55reviewbotsetmessages: + msg68489
nosy: + reviewbot
2021-06-29 14:36:18pokolisetkeyword: + review
reviews: 363501006
status: in-progress -> testing
2021-06-29 14:32:06pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)