mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: not confirm if state != draft
This commit is contained in:
@@ -1883,7 +1883,7 @@ class PmsReservation(models.Model):
|
||||
)
|
||||
|
||||
record = super(PmsReservation, self).create(vals)
|
||||
if record.preconfirm:
|
||||
if record.preconfirm and record.state == 'draft':
|
||||
record.confirm()
|
||||
return record
|
||||
|
||||
|
||||
Reference in New Issue
Block a user