mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix data/sql_reports.xml (<= - <=) & fix PascalCase to camelCase in datamodels/pms.sale.channel.searchParam.isOnline
This commit is contained in:
committed by
Darío Lodeiros
parent
87c1c7e97c
commit
052c0666fd
@@ -123,7 +123,7 @@
|
|||||||
LEFT JOIN pms_checkin_partner room_host
|
LEFT JOIN pms_checkin_partner room_host
|
||||||
ON room_host.reservation_id = reservation.id
|
ON room_host.reservation_id = reservation.id
|
||||||
WHERE (line.date >= %(x_date_from)s)
|
WHERE (line.date >= %(x_date_from)s)
|
||||||
AND (line.date <= %(x_date_to)s)
|
AND (line.date <= %(x_date_to)s)
|
||||||
AND (line.pms_property_id = %(x_pms_property_id)s)
|
AND (line.pms_property_id = %(x_pms_property_id)s)
|
||||||
AND (reservation.state != 'cancel')
|
AND (reservation.state != 'cancel')
|
||||||
GROUP BY line.id, product_tmpl.name, reservation.name, reservation.rooms, reservation.adults, reservation.children, reservation.partner_name, line.price_unit
|
GROUP BY line.id, product_tmpl.name, reservation.name, reservation.rooms, reservation.adults, reservation.children, reservation.partner_name, line.price_unit
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from odoo.addons.datamodel.core import Datamodel
|
|||||||
class PmsSaleChannelSearchParam(Datamodel):
|
class PmsSaleChannelSearchParam(Datamodel):
|
||||||
_name = "pms.sale.channel.search.param"
|
_name = "pms.sale.channel.search.param"
|
||||||
pmsPropertyIds = fields.List(fields.Integer(), required=False)
|
pmsPropertyIds = fields.List(fields.Integer(), required=False)
|
||||||
IsOnLine = fields.Boolean(required=False, allow_none=True)
|
isOnLine = fields.Boolean(required=False, allow_none=True)
|
||||||
|
|
||||||
|
|
||||||
class PmsSaleChannelInfo(Datamodel):
|
class PmsSaleChannelInfo(Datamodel):
|
||||||
|
|||||||
Reference in New Issue
Block a user