In 3041efb, it was introduced a partner_id reset when project_id is
False, but this causes you can't apply default values to partner_id
One use case where happens:
* Go to Sales > Customers.
* Select one customer.
* Click on the smart-button "Tasks".
* Create new task.
Before this commit, the customer where you come from is assigned.
After this, no partner is selected.