diff options
| author | Swapnesh Shah <swapneshshah111@gmail.com> | 2018-06-22 00:46:29 +0530 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-08-23 16:00:26 +0200 |
| commit | 0562fc0ffde3711e33cb7744e7978deb8502bdff (patch) | |
| tree | 9d1d655757b3912c44b78af0c2d2a5cdab41a2d1 /addons | |
| parent | ac41cd819596ce265ddc233594fbb374d46c915f (diff) | |
[IMP] point_of_sale: add domain on field
Make sure the selected tip product is one available in the point of sale
Closes #25406
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/pos_restaurant/views/pos_config_views.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/pos_restaurant/views/pos_config_views.xml b/addons/pos_restaurant/views/pos_config_views.xml index e6ef7c920b2..124b60cff53 100644 --- a/addons/pos_restaurant/views/pos_config_views.xml +++ b/addons/pos_restaurant/views/pos_config_views.xml @@ -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> |
