diff --git a/shopinvader_sale_coupon/services/cart.py b/shopinvader_sale_coupon/services/cart.py index b95ce08047..318dc80b47 100644 --- a/shopinvader_sale_coupon/services/cart.py +++ b/shopinvader_sale_coupon/services/cart.py @@ -5,6 +5,7 @@ from odoo import _ from odoo.exceptions import UserError +from odoo.addons.base_rest.components.service import to_bool from odoo.addons.component.core import Component @@ -121,6 +122,7 @@ def _subvalidator_skip_coupon_recompute(self): "skip_coupon_recompute": { "type": "boolean", "required": False, + "coerce": to_bool, } }