Merge PR #116 into 14.0

Signed-off-by DarioLodeiros
This commit is contained in:
OCA-git-bot
2022-02-09 21:29:32 +00:00
10 changed files with 2191 additions and 917 deletions

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

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

View File

@@ -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

View File

@@ -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