[IMP] calendar: Use the avatar widget on event popover
The responsible of an event will now appear through the avatar widget. Taskid: 2263837
This commit is contained in:
committed by
Yannick Tivisse
parent
231eaa0fd8
commit
fcf616c2e6
@@ -219,9 +219,9 @@ class Meeting(models.Model):
|
||||
#redifine message_ids to remove autojoin to avoid search to crash in get_recurrent_ids
|
||||
message_ids = fields.One2many(auto_join=False)
|
||||
|
||||
user_id = fields.Many2one('res.users', 'Owner', default=lambda self: self.env.user)
|
||||
user_id = fields.Many2one('res.users', 'Responsible', default=lambda self: self.env.user)
|
||||
partner_id = fields.Many2one(
|
||||
'res.partner', string='Responsible', related='user_id.partner_id', readonly=True)
|
||||
'res.partner', string='Responsible Contact', related='user_id.partner_id', readonly=True)
|
||||
active = fields.Boolean(
|
||||
'Active', default=True,
|
||||
help="If the active field is set to false, it will allow you to hide the event alarm information without removing it.")
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
</page>
|
||||
<page name="page_misc" string="Misc" groups="base.group_no_one">
|
||||
<group>
|
||||
<label for="user_id" string="Owner"/>
|
||||
<label for="user_id"/>
|
||||
<field name="user_id" nolabel="1" widget="many2one_avatar_user"/>
|
||||
</group>
|
||||
</page>
|
||||
@@ -254,9 +254,9 @@
|
||||
<calendar js_class="attendee_calendar" string="Meetings" date_start="start" date_stop="stop" date_delay="duration" all_day="allday"
|
||||
event_open_popup="true"
|
||||
event_limit="5"
|
||||
color="partner_id">
|
||||
color="user_id">
|
||||
<field name="attendee_status"/>
|
||||
<field name="partner_id" filters="1"/>
|
||||
<field name="user_id" string="Responsible" filters="1" widget="many2one_avatar_user"/>
|
||||
<field name="partner_ids" widget="many2many_tags_avatar" write_model="calendar.contacts" write_field="partner_id" avatar_field="image_128"/>
|
||||
<field name="is_highlighted" invisible="1"/>
|
||||
<field name="description"/>
|
||||
|
||||
Reference in New Issue
Block a user