Skip to content

Commit

Permalink
[MIG] resource_booking: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
norlinhenrik committed Aug 30, 2023
1 parent 10a80fd commit c480d0f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion resource_booking/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Resource booking",
"summary": "Manage appointments and resource booking",
"version": "15.0.1.1.0",
"version": "16.0.1.0.0",
"development_status": "Production/Stable",
"category": "Appointments",
"website": "https://github.com/OCA/calendar",
Expand Down
1 change: 1 addition & 0 deletions resource_booking/models/resource_booking.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ def action_confirm(self):
attendees_to_confirm |= attendee
attendees_to_confirm.write({"state": "accepted"})
self.recompute()
# recompute() is deprecated. Use flush_model(), flush_recordset() or env.flush_all().

def action_unschedule(self):
"""Remove associated meetings."""
Expand Down
1 change: 0 additions & 1 deletion resource_booking/views/calendar_event_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<field name="name">calendar.event.view.form.inherit</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_form" />
<field name="groups_id" eval="[(4, ref('group_user'), 0)]" />
<field name="arch" type="xml">
<form position="inside">
<field name="resource_booking_ids" invisible="1" />
Expand Down
6 changes: 1 addition & 5 deletions resource_booking/views/resource_booking_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,7 @@
<field name="categ_ids" widget="many2many_tags" />
</group>
<group name="meeting" string="Meeting">
<field
name="meeting_id"
groups="base.group_no_one"
readonly="1"
/>
<field name="meeting_id" readonly="1" />
<field name="user_id" />
<field name="is_overdue" invisible="1" />
<field name="is_modifiable" invisible="1" />
Expand Down

0 comments on commit c480d0f

Please sign in to comment.