[IMP] utm: add avatar widget to utm campaign

Add the widget to the kanban quick create view,
and to the form view, to the user_id field.

task-3113972

Part-of: odoo/odoo#109105
This commit is contained in:
Noe Antoine
2023-01-19 17:48:56 +01:00
parent 9b5173fd9c
commit 2eedf2f6a5
+2 -2
View File
@@ -33,7 +33,7 @@
<group id="top-group">
<field class="text-break" name="title" string="Campaign Name" placeholder="e.g. Black Friday"/>
<field name="name" invisible="1"/>
<field name="user_id" domain="[('share', '=', False)]"/>
<field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False)]"/>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/>
</group>
<notebook>
@@ -66,7 +66,7 @@
<group>
<field name="name" invisible="1"/>
<field class="o_text_overflow" name="title" string="Campaign Name" placeholder="e.g. Black Friday"/>
<field name="user_id" domain="[('share', '=', False)]"/>
<field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False)]"/>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/>
</group>
</form>