diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index bbd6f6f8f3b..c02f1c29f3e 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -816,7 +816,8 @@ + attrs="{'invisible': [('move_type', 'not in', ('in_invoice', 'in_refund', 'in_receipt'))], + 'readonly': [('state', '!=', 'draft')]}"/>