[FIX] Longpolling messages

This commit is contained in:
Alexandre Díaz
2019-01-30 20:13:14 +01:00
parent 536a9f6cac
commit 36a0117840
3 changed files with 42 additions and 26 deletions

View File

@@ -15,3 +15,11 @@ class HotelFolio(models.Model):
for record in self:
record.room_lines.send_bus_notification('write', 'noshow')
return ret
@api.multi
def compute_amount(self):
ret = super(HotelFolio, self).compute_amount()
with self.env.norecompute():
for record in self:
record.room_lines.send_bus_notification('write', 'noshow')
return ret