mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Longpolling messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user