Skip to content

Commit 5aab045

Browse files
committed
[IMP] appointment_capacity: improve on user remaining capacity function
1 parent ea2ee1d commit 5aab045

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

appointment_capacity/controllers/appointment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from urllib.parse import unquote_plus
77
from werkzeug.exceptions import NotFound
88

9-
from odoo import http, fields, _
9+
from odoo import http, fields
1010
from odoo.http import request
1111
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as email_normalize
1212
from odoo.addons.appointment.controllers.appointment import AppointmentController

appointment_capacity/models/appointment_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def _get_default_appointment_status(self, start_dt, stop_dt, capacity_reserved):
6868

6969
if float_compare(total_capacity_used / total_capacity, self.resource_manual_confirmation_percentage, 2) > 0:
7070
default_state = 'request'
71-
7271
return default_state
7372

7473
def _slot_availability_is_resource_available(self, slot, resource, availability_values):

0 commit comments

Comments
 (0)