Wrong tax used for invoices on multicompany
In multicompany environment, the tax account is not properly selected (wrong invoice_account and credit_note_account) on changing product as we search by id, causing a domain error. https://hg.tryton.org/modules/account_invoice/file/c804e958f11d/invoice.py#l2564
IIUC I assume that a accounting category must have both taxes defined like: ACCOUNT CATEGORY: GENERAL 21 TAX LINE 1: COMPANY A - IVA 21% TAX LINE 2: COMPANY B - IVA 21% For me the proper way to select the appropriate tax is by filtering only the ones from the invoice company instead of using a id. I'm still trying to figure out how it works and how to solve to submit a patch. Appreciate any help.