mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_api_rest: fix patch discount to 0
This commit is contained in:
@@ -217,11 +217,11 @@ class PmsReservationService(Component):
|
||||
not reservation_line or origin_data.price != reservation_line.price
|
||||
):
|
||||
line_vals["price"] = origin_data.price
|
||||
if origin_data.discount and (
|
||||
if origin_data.discount is not None and (
|
||||
not reservation_line or origin_data.discount != reservation_line.discount
|
||||
):
|
||||
line_vals["discount"] = origin_data.discount
|
||||
if origin_data.cancelDiscount and (
|
||||
if origin_data.cancelDiscount is not None and (
|
||||
not reservation_line
|
||||
or origin_data.cancelDiscount != reservation_line.cancelDiscount
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user