Master intercompany rules tpa

https://www.odoo.com/web#id=6962&view_type=form&model=project.task&action=333&active_id=131
https://pad.odoo.com/p/r.IOcwt0uWZx1OKJiT
This kind of things can be simplified using list comprehension: company_taxes = [tx_rec.id for tx_rec in tax_obj.browse(...) if tx_rec.company_id.id == company.id]