[WIP] Wizard Node Reservation

This commit is contained in:
Pablo Quesada Barriuso
2018-09-28 09:09:20 +02:00
parent bf8741e191
commit 9bc69da56a
8 changed files with 80 additions and 18 deletions

View File

@@ -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.") + " " + \