mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
@@ -36,19 +36,19 @@
|
||||
<field name="groups_id" eval="[(4,ref('pms.group_pms_manager'))]" />
|
||||
</record>
|
||||
<!-- pms.sale.channel-->
|
||||
<record id="main_pms_sale_channel_0" model="pms.sale.channel">
|
||||
<record id="main_pms_sale_channel_door" model="pms.sale.channel">
|
||||
<field name="name">Door</field>
|
||||
<field name="channel_type">direct</field>
|
||||
</record>
|
||||
<record id="main_pms_sale_channel_1" model="pms.sale.channel">
|
||||
<record id="main_pms_sale_channel_phone" model="pms.sale.channel">
|
||||
<field name="name">Phone</field>
|
||||
<field name="channel_type">direct</field>
|
||||
</record>
|
||||
<record id="main_pms_sale_channel_2" model="pms.sale.channel">
|
||||
<record id="main_pms_sale_channel_mail" model="pms.sale.channel">
|
||||
<field name="name">Mail</field>
|
||||
<field name="channel_type">direct</field>
|
||||
</record>
|
||||
<record id="main_pms_sale_channel_3" model="pms.sale.channel">
|
||||
<record id="main_pms_sale_channel_agency" model="pms.sale.channel">
|
||||
<field name="name">Agency</field>
|
||||
<field name="channel_type">indirect</field>
|
||||
</record>
|
||||
|
||||
BIN
pms/demo/airbnb-logo.jpg
Normal file
BIN
pms/demo/airbnb-logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
BIN
pms/demo/booking-logo.jpg
Normal file
BIN
pms/demo/booking-logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -701,7 +701,7 @@ class PmsCheckinPartner(models.Model):
|
||||
for record in self.filtered(lambda c: c.state == "onboard"):
|
||||
vals = {
|
||||
"state": "done",
|
||||
"departure": fields.Datetime.now(),
|
||||
"departure": record.reservation_id.checkout,
|
||||
}
|
||||
record.update(vals)
|
||||
return True
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 57 KiB |
Reference in New Issue
Block a user