diff options
| author | jev-odoo <jev@odoo.com> | 2020-02-04 08:15:20 +0000 |
|---|---|---|
| committer | jev-odoo <jev@odoo.com> | 2020-03-02 08:05:19 +0000 |
| commit | d2860cc9dc0fc220cdbc4e03cc7ffb76d31dade6 (patch) | |
| tree | cbe58abcd2270720b84a9cdd5c66114077d17530 | |
| parent | a0f0cdd70e88e9da322b9e02157c58e233ba7104 (diff) | |
[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>
| -rw-r--r-- | addons/point_of_sale/views/point_of_sale_dashboard.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/point_of_sale/views/point_of_sale_dashboard.xml b/addons/point_of_sale/views/point_of_sale_dashboard.xml index 85702e7204a..1c3fc3b4888 100644 --- a/addons/point_of_sale/views/point_of_sale_dashboard.xml +++ b/addons/point_of_sale/views/point_of_sale_dashboard.xml @@ -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> |
