[FIX] project: fixes newly created partner isn't displayed as set

Before this commit, when creating a new partner using the quick create option,
 partner is not set because an email address is required to send a shared link.

In this commit, hide the quick create option so that user can add email,
if user wants to share link.

task-3460164

closes odoo/odoo#131995

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
kais-odoo
2023-09-29 09:21:48 +00:00
parent 78e94807d3
commit 356ddcb0da
@@ -25,7 +25,7 @@
<label for="partner_ids" string="Invite People" invisible="access_mode == 'read'"/>
<label for="partner_ids" invisible="access_mode == 'edit'"/>
</div>
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to share the project..." nolabel="1" context="{'show_email': True}" class="mb-4"/>
<field name="partner_ids" widget="many2many_tags_email" options="{'no_quick_create': True}" placeholder="Add contacts to share the project..." nolabel="1" context="{'show_email': True, 'force_email':True}" class="mb-4"/>
</group>
<field name="note" placeholder="Add a note" nolabel="1"/>
<footer>