Skip to content

Commit

Permalink
[IMP] [17.0] hotel_housekeeping: Implement code changes as per review…
Browse files Browse the repository at this point in the history
… comments
  • Loading branch information
pavan-serpentcs committed Jul 15, 2024
1 parent 1700ca5 commit 74fd1ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hotel_housekeeping/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{
"name": "Hotel Housekeeping Management",
"version": "17.0.1.0.0",
"author": "Odoo Community Association (OCA), Serpent Consulting \
Services Pvt. Ltd., Odoo S.A.",
"""author": "Odoo Community Association (OCA), Serpent Consulting
Services Pvt. Ltd., Odoo S.A."""
"website": "https://github.com/OCA/vertical-hotel",
"license": "AGPL-3",
"summary": "Manages Housekeeping Activities and its Process",
Expand Down
6 changes: 4 additions & 2 deletions hotel_housekeeping/models/hotel_housekeeping.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ def room_clean(self):
)
def check_end_date_time(self):
for record in self:
for rec in record.activity_line_ids:
for activity_line_ids in record.activity_line_ids:
if (
record.inspect_date_time
and record.inspect_date_time <= rec.clean_end_time
and record.inspect_date_time <= activity_line_ids.clean_end_time
):
raise ValidationError(
"Inspect Date Time must be Greter, then Clean end time"
)


0 comments on commit 74fd1ad

Please sign in to comment.