mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
Merge branch '11.0' of https://github.com/hootel/hootel into 11.0
This commit is contained in:
@@ -369,7 +369,7 @@ class HotelReservation(models.Model):
|
||||
if 'room_id' not in vals:
|
||||
vals.update(self._autoassign(vals))
|
||||
vals.update(self._prepare_add_missing_fields(vals))
|
||||
if 'folio_id' in vals:
|
||||
if 'folio_id' in vals and not 'channel_type' in vals:
|
||||
folio = self.env["hotel.folio"].browse(vals['folio_id'])
|
||||
vals.update({'channel_type': folio.channel_type})
|
||||
elif 'partner_id' in vals:
|
||||
|
||||
Reference in New Issue
Block a user