mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] pms_api_rest: add reservation id to reservation service service
This commit is contained in:
committed by
Darío Lodeiros
parent
a7d8fabdcc
commit
77e28271c0
@@ -7,6 +7,7 @@ from odoo.addons.datamodel.fields import NestedModel
|
|||||||
class PmsServiceInfo(Datamodel):
|
class PmsServiceInfo(Datamodel):
|
||||||
_name = "pms.service.info"
|
_name = "pms.service.info"
|
||||||
id = fields.Integer(required=False, allow_none=True)
|
id = fields.Integer(required=False, allow_none=True)
|
||||||
|
reservationId = fields.Integer(required=False, allow_none=True)
|
||||||
name = fields.String(required=False, allow_none=True)
|
name = fields.String(required=False, allow_none=True)
|
||||||
productId = fields.Integer(required=False, allow_none=True)
|
productId = fields.Integer(required=False, allow_none=True)
|
||||||
quantity = fields.Integer(required=False, allow_none=True)
|
quantity = fields.Integer(required=False, allow_none=True)
|
||||||
|
|||||||
@@ -397,6 +397,7 @@ class PmsReservationService(Component):
|
|||||||
result_services.append(
|
result_services.append(
|
||||||
PmsServiceInfo(
|
PmsServiceInfo(
|
||||||
id=service.id,
|
id=service.id,
|
||||||
|
reservationId=service.reservation_id,
|
||||||
name=service.name,
|
name=service.name,
|
||||||
productId=service.product_id.id,
|
productId=service.product_id.id,
|
||||||
quantity=service.product_qty,
|
quantity=service.product_qty,
|
||||||
|
|||||||
Reference in New Issue
Block a user