diff --git a/sale_promotion_discount_in_field/views/coupon_program_view.xml b/sale_promotion_discount_in_field/views/coupon_program_view.xml index a3c6b5e30..dc71d056b 100644 --- a/sale_promotion_discount_in_field/views/coupon_program_view.xml +++ b/sale_promotion_discount_in_field/views/coupon_program_view.xml @@ -7,8 +7,7 @@ - {"invisible": [("reward_type", "in", ("discount", "free_shipping", - "discount_line"))], "required": [("reward_type", "=", "product")]} + {"invisible": [("reward_type", "!=", "product")], "required": [("reward_type", "=", "product")]} @@ -19,14 +18,12 @@ - {"invisible": [("reward_type", "in", ("product", "free_shipping", - "discount_line"))]} + {"invisible": [("reward_type", "!=", "discount")]} - {"invisible": [("reward_type", "in", ("product", "free_shipping", - "discount_line"))]} + {"invisible": [("reward_type", "!=", "discount")]} @@ -49,15 +46,13 @@ - {'invisible': ['|', ('reward_type', 'in', ('product', - 'free_shipping', "discount_line")), ('discount_type', '!=', + {'invisible': ['|', ('reward_type', '!=', 'discount'), ('discount_type', '!=', 'percentage')]} - {'invisible': ['|', ('reward_type', 'in', ('product', - 'free_shipping', "discount_line")), ('discount_type', '!=', + {'invisible': ['|', ('reward_type', '!=', 'discount'), ('discount_type', '!=', 'percentage')]}