diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-06-24 16:46:22 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-09-02 13:33:57 +0000 |
| commit | b4e1e9f3ae86e6b5e7015c0241791f733ee942f4 (patch) | |
| tree | e5af68049246da84012f4d336264df45df9a2001 /addons/fleet | |
| parent | 9c1c848ad1e8fef11320e2a162b008de7e304bcb (diff) | |
[FIX] various: use existing state values for state-based conditions in views
Various attributes use state field to control display of nodes: like the
'states' (visibility), statusbar_visible (available status in status bar).
In this commit we fix various incorrect state values as those are either
typos, either references to dead or removed status.
An heuristic to detect invalid state for conditions will land soon in master.
As this commit targets a stable version only view fixes are provided.
Task ID-2329114
PR odoo/odoo#56946
Diffstat (limited to 'addons/fleet')
| -rw-r--r-- | addons/fleet/views/fleet_vehicle_cost_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fleet/views/fleet_vehicle_cost_views.xml b/addons/fleet/views/fleet_vehicle_cost_views.xml index 070ee85eb1b..5754c081495 100644 --- a/addons/fleet/views/fleet_vehicle_cost_views.xml +++ b/addons/fleet/views/fleet_vehicle_cost_views.xml @@ -8,7 +8,7 @@ <header> <button name="contract_open" states="futur" type="object" string="Start Contract" class="oe_highlight" groups="fleet.fleet_group_manager"/> <button name="contract_close" states="futur" type="object" string="Cancel" groups="fleet.fleet_group_manager"/> - <button name="contract_close" states="open,expired,future" type="object" class="oe_highlight" string="Close Contract" groups="fleet.fleet_group_manager"/> + <button name="contract_close" states="open,expired,futur" type="object" class="oe_highlight" string="Close Contract" groups="fleet.fleet_group_manager"/> <button name="contract_draft" states="closed" type="object" string="Reset To Draft" groups="fleet.fleet_group_manager"/> <field name="state" widget="statusbar" /> </header> |
