Skip to content
Snippets Groups Projects
Commit eeea5117 authored by oco-odoo's avatar oco-odoo
Browse files

[FIX] account: only display "post" button of account.move when in draft state


closes odoo/odoo#36457

Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent c5834142
Branches
Tags
No related merge requests found
......@@ -466,7 +466,8 @@
<header>
<!-- Post -->
<button name="action_post" string="Post" class="oe_highlight"
type="object" groups="account.group_account_invoice"/>
type="object" groups="account.group_account_invoice"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
<!-- Send (only invoices) -->
<button name="action_invoice_sent"
type="object"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment