mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: service&reservation line add relation with folio sale lines
This commit is contained in:
@@ -41,9 +41,6 @@ class PmsReservationLine(models.Model):
|
|||||||
readonly=True,
|
readonly=True,
|
||||||
copy=False,
|
copy=False,
|
||||||
comodel_name="folio.sale.line",
|
comodel_name="folio.sale.line",
|
||||||
relation="reservation_line_sale_line_rel",
|
|
||||||
column1="reservation_line_id",
|
|
||||||
column2="sale_line_id",
|
|
||||||
check_pms_properties=True,
|
check_pms_properties=True,
|
||||||
)
|
)
|
||||||
pms_property_id = fields.Many2one(
|
pms_property_id = fields.Many2one(
|
||||||
|
|||||||
@@ -51,6 +51,13 @@ class PmsServiceLine(models.Model):
|
|||||||
related="service_id.pms_property_id",
|
related="service_id.pms_property_id",
|
||||||
check_pms_properties=True,
|
check_pms_properties=True,
|
||||||
)
|
)
|
||||||
|
sale_line_ids = fields.Many2many(
|
||||||
|
string="Sales Lines",
|
||||||
|
readonly=True,
|
||||||
|
copy=False,
|
||||||
|
comodel_name="folio.sale.line",
|
||||||
|
check_pms_properties=True,
|
||||||
|
)
|
||||||
date = fields.Date(
|
date = fields.Date(
|
||||||
string="Date",
|
string="Date",
|
||||||
help="Sate on which the product is to be consumed",
|
help="Sate on which the product is to be consumed",
|
||||||
|
|||||||
Reference in New Issue
Block a user