diff options
| author | jbw <jbw@odoo.com> | 2020-09-24 10:13:46 +0000 |
|---|---|---|
| committer | jbw <jbw@odoo.com> | 2020-09-24 10:54:58 +0000 |
| commit | a90f50f178b18077ba7e7edf6faa46cd467f7086 (patch) | |
| tree | cbe3de7fafad68c75abee976128f37d8f42af180 | |
| parent | dbc3d7cbb60e291079e0a1fd3dfa6600d6206228 (diff) | |
[FIX] account: fix account move payment_state list badge
On account move list entries, "Paid" payment_state is displayed with a red badge
instead of a green badge.
closes odoo/odoo#58400
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
| -rw-r--r-- | addons/account/views/account_move_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 66d6b010264..74ebb217179 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -428,7 +428,7 @@ <field name="currency_id" invisible="1"/> <field name="company_currency_id" invisible="1"/> <field name="state" widget="badge" decoration-success="state == 'posted'" decoration-info="state == 'draft'" optional="show"/> - <field name="payment_state" widget="badge" decoration-danger="payment_state in ('not_paid')" decoration-warning="payment_state in ('partial', 'in_payment')" decoration-success="payment_state in ('paid', 'reversed')" attrs="{'invisible': [('payment_state', 'in', ('invoicing_legacy'))]}"/> + <field name="payment_state" widget="badge" decoration-danger="payment_state == 'not_paid'" decoration-warning="payment_state in ('partial', 'in_payment')" decoration-success="payment_state in ('paid', 'reversed')" attrs="{'invisible': [('payment_state', 'in', ('invoicing_legacy'))]}"/> <field name="move_type" invisible="context.get('default_move_type', True)"/> </tree> </field> |
