Created on 2021-06-29.14:32:06 by pokoli, last changed 2 weeks ago by reviewbot.
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?
I think it should be fixed globally by issue10557.
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.
|2021-07-08 11:22:15||reviewbot||set||messages: + msg68770|
|2021-07-08 11:14:08||pokoli||set||messages: + msg68769|
nosy: + ced
superseder: + Use instance context to get account
nosy: + reviewbot
status: in-progress -> testing
Showing 10 items. Show all history (warning: this could be VERY long)