[FIX] pos_restaurant: show only unassociated floors

When adding floor_ids in pos.config, we show only the restaurant.floor
records that are not linked to any pos.config. We do this so that one
pos.config doesn't steal floors from other pos.config.
This commit is contained in:
Joseph Caburnay
2020-06-26 05:40:23 +00:00
parent 86bca35df0
commit b8822e81b7
@@ -78,7 +78,7 @@
<div class="content-group" attrs="{'invisible': [('is_table_management','=',False)]}">
<div class="mt16">
<label string="Floors" for="floor_ids" class="o_light_label"/>
<field name="floor_ids" widget="many2many_tags" attrs="{'readonly': [('has_active_session','=', True)]}"/>
<field name="floor_ids" widget="many2many_tags" attrs="{'readonly': [('has_active_session','=', True)]}" domain="['|', ('pos_config_id', '=', False), ('pos_config_id', '=', active_id)]"/>
</div>
<div>
<button name="%(pos_restaurant.action_restaurant_floor_form)d" icon="fa-arrow-right" type="action" string="Floors" class="btn-link"/>