[IMP] point_of_sale: add domain on field

Make sure the selected tip product is one available in the point of sale

Closes #25406
This commit is contained in:
Swapnesh Shah
2018-08-23 16:00:26 +02:00
committed by Martin Trigaux
parent ac41cd8195
commit 0562fc0ffd
@@ -52,7 +52,9 @@
<div class="content-group" attrs="{'invisible': [('iface_tipproduct', '=', False)]}">
<div class="mt16">
<label string="Tip Product" for="tip_product_id" class="o_light_label"/>
<field name="tip_product_id"/>
<field name="tip_product_id"
domain="[('available_in_pos', '=', True)]"
context="{'default_available_in_pos': True}"/>
</div>
</div>
</div>