[FIX] point_of_sale: hide irrelevant info from kanban
Before this commit, the last cash balance was shown on the kanban card even if the cash control feature was not activated. Without this feature, the field is irrelevant. This commit hides the field when the cash control is not activated. OPW-2179888 closes odoo/odoo#46623 X-original-commit: 6302e0fab2886a506313c6eb4894051789cd0e11 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<kanban create="false" class="o_kanban_dashboard o_pos_kanban">
|
||||
<field name="current_user_id" invisible="1" />
|
||||
<field name="cash_control" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="current_session_id"/>
|
||||
<field name="current_session_state"/>
|
||||
@@ -106,7 +107,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div t-if="record.last_session_closing_date.value" class="row">
|
||||
<div t-if="record.last_session_closing_date.value" attrs='{"invisible": [("cash_control","=",False)]}' class="row">
|
||||
<div class="col-6">
|
||||
<span>Cash Balance</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user