Skip to content

Commit

Permalink
[IMP] account_tax_settlement: conditional button
Browse files Browse the repository at this point in the history
Now the New Payment button is showing if tax_settlement is set

X-original-commit: a39ce13
  • Loading branch information
ica-adhoc authored and zaoral committed Jul 21, 2022
1 parent 7fed1fd commit 0f3f773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_tax_settlement/__manifest__.py
@@ -1,6 +1,6 @@
{
'name': 'Tax Settlement',
'version': "15.0.1.1.0",
'version': '15.0.1.2.0',
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
Expand Up @@ -13,7 +13,7 @@
</field>
<!-- add new payment after existing journal entries button -->
<xpath expr="//button[@name='action_create_new']" position="after">
<button type="object" name="action_create_payment" class="btn btn-primary">
<button type="object" name="action_create_payment" class="btn btn-primary" t-if="record.tax_settlement.raw_value">
<span>New Payment</span>
</button>
</xpath>
Expand Down

0 comments on commit 0f3f773

Please sign in to comment.