[FIX] pos_discount: discount product

Only the products available in the POS must be set in the field
'discount_product_id'. Inspired from 8cd0127af3

opw:668163
This commit is contained in:
Goffin Simon
2016-02-01 13:40:47 +01:00
parent a5c8846653
commit 8fb8cd6c90
+1 -1
View File
@@ -14,7 +14,7 @@ class pos_config(osv.osv):
_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_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,