summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2021-01-14 11:01:23 +0000
committerLaurent Smet <las@odoo.com>2021-01-14 11:01:23 +0000
commit28b748a559e1ffb5fb7c3631bf77adba121b2ebf (patch)
treee35ee1605146d4deb94fb00d83dfd3cb24fee0c0 /addons
parent7b8d1156cccbdc0187506bf23199672fde64c77e (diff)
[FIX] account: Hide 'Cut-off' button on invoice if not posted entry
If the journal entry is not posted, the 'Cut-off' button must not be visible on invoice lines. closes odoo/odoo#64531 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/views/account_move_views.xml2
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 f82e858a5b6..32765726da6 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -995,7 +995,7 @@
string="Cut-Off"
aria-label="Change Period"
class="float-right"
- attrs="{'invisible': [('account_internal_group', 'not in', ('income', 'expense'))], 'column_invisible': [('parent.move_type', '=', 'entry')]}"
+ attrs="{'invisible': [('account_internal_group', 'not in', ('income', 'expense'))], 'column_invisible': ['|', ('parent.move_type', '=', 'entry'), ('parent.state', '!=', 'posted')]}"
context="{'hide_automatic_options': 1, 'default_action': 'change_period'}"/>
<!-- Others fields -->