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 committed Jul 21, 2022
1 parent 7fed1fd commit 41395c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions account_tax_settlement/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
'name': 'Tax Settlement',
<<<<<<< HEAD
'version': "15.0.1.1.0",
=======
'version': '13.0.1.3.0',
>>>>>>> 43044ed... temp
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
Original file line number Diff line number Diff line change
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 41395c0

Please sign in to comment.