mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] Wizard Node Reservation
This commit is contained in:
@@ -57,6 +57,7 @@ class HotelNode(models.Model):
|
||||
"""
|
||||
for node in self:
|
||||
domain = [('id', 'in', node.group_ids.ids), ('odoo_version', '!=', node.odoo_version)]
|
||||
# TODO Use search_count
|
||||
invalid_groups = self.env["hotel.node.group"].search(domain)
|
||||
if len(invalid_groups) > 0:
|
||||
msg = _("At least one group is not within the node version.") + " " + \
|
||||
|
||||
Reference in New Issue
Block a user