mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Sintax error
This commit is contained in:
@@ -810,7 +810,7 @@ class PmsReservation(models.Model):
|
|||||||
vals.update(self._prepare_add_missing_fields(vals))
|
vals.update(self._prepare_add_missing_fields(vals))
|
||||||
if 'folio_id' in vals and 'channel_type' not in vals:
|
if 'folio_id' in vals and 'channel_type' not in vals:
|
||||||
folio = self.env["pms.folio"].browse(vals['folio_id'])
|
folio = self.env["pms.folio"].browse(vals['folio_id'])
|
||||||
vasls.update({'channel_type': folio.channel_type})
|
vals.update({'channel_type': folio.channel_type})
|
||||||
elif 'partner_id' in vals:
|
elif 'partner_id' in vals:
|
||||||
folio_vals = {'partner_id': int(vals.get('partner_id')),
|
folio_vals = {'partner_id': int(vals.get('partner_id')),
|
||||||
'channel_type': vals.get('channel_type')}
|
'channel_type': vals.get('channel_type')}
|
||||||
|
|||||||
Reference in New Issue
Block a user