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
If you do not go into the "if", vals is not defined... leading to obscure errors.