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

closes #130

X-original-commit: a39ce13
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
ica-adhoc authored and zaoral committed Jul 21, 2022
1 parent 7fed1fd commit 18c9ff4
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
Original file line number Diff line number Diff line change
@@ -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
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 18c9ff4

Please sign in to comment.