mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Clean cancel discount on draft method
This commit is contained in:
@@ -905,6 +905,9 @@ class HotelReservation(models.Model):
|
||||
def draft(self):
|
||||
for record in self:
|
||||
record.state = 'draft'
|
||||
record.reservation_line_ids.update({
|
||||
'cancel_discount': 0
|
||||
})
|
||||
if record.splitted:
|
||||
master_reservation = record.parent_reservation or record
|
||||
splitted_reservs = self.env['hotel.reservation'].search([
|
||||
|
||||
Reference in New Issue
Block a user