diff --git a/addons/pos_discount/discount.py b/addons/pos_discount/discount.py
index a3b259d734c..3f558abe2a9 100644
--- a/addons/pos_discount/discount.py
+++ b/addons/pos_discount/discount.py
@@ -13,10 +13,10 @@ class pos_config(osv.osv):
_inherit = 'pos.config'
_columns = {
'iface_discount': fields.boolean('Order Discounts', help='Allow the cashier to give discounts on the whole order.'),
- 'discount_pc': fields.float('Discount Percentage', help='The default discount percentage'),
- 'discount_product_id': fields.many2one('product.product','Discount Product', help='The product used to model the discount'),
+ 'discount_pc': fields.float('Default Percentage', help='The default discount percentage'),
+ 'discount_product_id': fields.many2one('product.product','Discount Product', domain="[('available_in_pos', '=', True)]",
+ help='The product used to model the discount'),
}
_defaults = {
- 'iface_discount': True,
'discount_pc': 10,
}
diff --git a/addons/pos_discount/views/views.xml b/addons/pos_discount/views/views.xml
index fd75259e924..a827bda5e1b 100644
--- a/addons/pos_discount/views/views.xml
+++ b/addons/pos_discount/views/views.xml
@@ -7,13 +7,13 @@
pos.config
-
-
-
-
+
+
+
+
-
+