[FIX] project_todo: Impossible to chose a project with no company

Steps to reproduce the issue:

- Go to the To-do app
- Open a task and try to convert it to a task
- Look for P

Bug:

P was not suggested

opw:3478943

X-original-commit: e0e3d35c7f53b9a87de366bf2cca96c1ca3be960
Part-of: odoo/odoo#134346
This commit is contained in:
Goffin Simon
2023-09-06 11:50:59 +00:00
parent b16ab7b997
commit 0be605d22a
@@ -159,7 +159,7 @@
<sheet>
<group>
<field name="project_id"
domain="[('company_id', 'in', context.get('allowed_company_ids'))]"
domain="['|', ('company_id', 'in', context.get('allowed_company_ids')), ('company_id', '=', False)]"
required="1"
placeholder="Select an existing project"
default_focus="1"/>