diff --git a/hotel_housekeeping/README.rst b/hotel_housekeeping/README.rst index a5b974838..5228617e4 100644 --- a/hotel_housekeeping/README.rst +++ b/hotel_housekeeping/README.rst @@ -7,7 +7,7 @@ Hotel Housekeeping Management !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a49b3446078e10ada9704eb0873a889d44ae5c72b637cd241799b4e757fe2c67 + !! source digest: sha256:7c2aab9b74f8f7a835eaafe02a23958a36414c0d15b685afeaa6535d420ba558 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -78,7 +78,7 @@ Credits Authors ------- -* Serpent Consulting Services Pvt. Ltd. +* Serpent Consulting Services Pvt. Ltd. * Odoo S.A. Contributors diff --git a/hotel_housekeeping/__manifest__.py b/hotel_housekeeping/__manifest__.py index 3d1f33dde..3d84ed700 100644 --- a/hotel_housekeeping/__manifest__.py +++ b/hotel_housekeeping/__manifest__.py @@ -4,8 +4,9 @@ { "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", diff --git a/hotel_housekeeping/models/hotel_housekeeping.py b/hotel_housekeeping/models/hotel_housekeeping.py index 107824661..d17e06bd2 100644 --- a/hotel_housekeeping/models/hotel_housekeeping.py +++ b/hotel_housekeeping/models/hotel_housekeeping.py @@ -128,7 +128,5 @@ def check_end_date_time(self): and record.inspect_date_time <= activity_line_ids.clean_end_time ): raise ValidationError( - "Inspect Date Time must be Greter, then Clean end time" - ) - - \ No newline at end of file + _("Inspect Date Time must be Greter, then Clean end time") + ) diff --git a/hotel_housekeeping/models/hotel_housekeeping_activity_type.py b/hotel_housekeeping/models/hotel_housekeeping_activity_type.py index b89910c9f..4091e66e1 100644 --- a/hotel_housekeeping/models/hotel_housekeeping_activity_type.py +++ b/hotel_housekeeping/models/hotel_housekeeping_activity_type.py @@ -31,7 +31,7 @@ def _name_search(self, name, domain=None, operator="ilike", limit=None, order=No if not domain: domain = [] if name: - # Be sure name_search is symetric to name_get + # Be sure name_search is symmetric to name_get category_names = name.split(" / ") parents = list(category_names) child = parents.pop() @@ -39,7 +39,6 @@ def _name_search(self, name, domain=None, operator="ilike", limit=None, order=No if parents: names_ids = self.name_search( " / ".join(parents), - domain=domain, operator="ilike", limit=limit, ) diff --git a/hotel_housekeeping/tests/test_hotel_housekeeping.py b/hotel_housekeeping/tests/test_hotel_housekeeping.py index 58551d72b..dbee42fde 100644 --- a/hotel_housekeeping/tests/test_hotel_housekeeping.py +++ b/hotel_housekeeping/tests/test_hotel_housekeeping.py @@ -53,7 +53,7 @@ def setUp(self): } ) - self.hotel_act_type.name_get() + self.hotel_act_type._compute_display_name() hotel_activity_type = self.hotel_act_type_obj.name_search("Test Room Activity") self.assertEqual( len(hotel_activity_type), @@ -67,7 +67,7 @@ def test_name_search(self): "name": "Test", } ) - self.env["hotel.housekeeping.activity.type"].name_search( + self.env["hotel.housekeeping.activity.type"]._name_search( "All Activities / Test Room Activity", [], "not like", None )