mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_rest_api: Add isDownPayment to move line datamodel
This commit is contained in:
@@ -13,3 +13,4 @@ class PmsInvoiceLineInfo(Datamodel):
|
||||
discount = fields.Float(required=False, allow_none=True)
|
||||
displayType = fields.String(required=False, allow_none=True)
|
||||
saleLineId = fields.Integer(required=False, allow_none=True)
|
||||
isDownPayment = fields.Boolean(required=False, allow_none=True)
|
||||
|
||||
@@ -573,6 +573,7 @@ class PmsFolioService(Component):
|
||||
saleLineId=move_line.folio_line_ids
|
||||
if move_line.folio_line_ids
|
||||
else None,
|
||||
isDownPayment=move_line.move_id._is_downpayment(),
|
||||
)
|
||||
)
|
||||
move_url = (
|
||||
|
||||
Reference in New Issue
Block a user