Skip to content

Commit

Permalink
[FIX] public_budget: use attrs to mix invisible with groups
Browse files Browse the repository at this point in the history
closes #483

Signed-off-by: Nicolas Mac Rouillon <nmr@adhoc.com.ar>
  • Loading branch information
nicomacr committed May 15, 2023
1 parent 6fa3d37 commit 18c7498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_budget/views/account_payment_group_views.xml
Expand Up @@ -56,7 +56,7 @@
<field name="communication" optional="hide"/>
</field>
<tree position="inside">
<button name="confirm" type="object" string="Confirm" states="draft" icon="fa-arrow-circle-right" groups="account.group_account_manager"/>
<button name="confirm" type="object" string="Confirm" attrs="{'invisible': [('state','!=', 'draft')]}" icon="fa-arrow-circle-right" groups="account.group_account_manager"/>
</tree>
</field>
</record>
Expand Down

0 comments on commit 18c7498

Please sign in to comment.