summaryrefslogtreecommitdiff
path: root/addons/account/static/src/xml/account_payment.xml
diff options
context:
space:
mode:
authorCedric Snauwaert <csn@openerp.com>2015-08-21 10:48:59 +0200
committerCedric Snauwaert <csn@openerp.com>2015-08-21 14:06:15 +0200
commitcb1ce61c84300b61bbfcf85fec861944819e1f3f (patch)
treecad67de2857d37b5a1cb487669a3c453864c852c /addons/account/static/src/xml/account_payment.xml
parent2ea5c3aeefb024b185c4fac889b8f5f0f958936a (diff)
[ADD] account: add a popover with payment details and action on invoice
Diffstat (limited to 'addons/account/static/src/xml/account_payment.xml')
-rw-r--r--addons/account/static/src/xml/account_payment.xml46
1 files changed, 43 insertions, 3 deletions
diff --git a/addons/account/static/src/xml/account_payment.xml b/addons/account/static/src/xml/account_payment.xml
index c99dd36f9e4..91a1d82cda3 100644
--- a/addons/account/static/src/xml/account_payment.xml
+++ b/addons/account/static/src/xml/account_payment.xml
@@ -14,15 +14,18 @@
<tr>
<t t-if="outstanding">
<td>
- <a title="assign to invoice" class="oe_form_field outstanding_credit_assign" t-att-data-id="line.id" style="margin-right: 10px;">Add</a>
+ <a title="assign to invoice" role="button" class="oe_form_field outstanding_credit_assign" t-att-data-id="line.id" style="margin-right: 10px;">Add</a>
</td>
<td>
- <span class="oe_form_field" style="margin-right: 30px;"><t t-esc="line.ref"></t></span>
+ <span class="oe_form_field" style="margin-right: 30px;"><t t-esc="line.journal_name"></t></span>
</td>
</t>
<t t-if="!outstanding">
<td>
- <i class="oe_form_field text-right oe_payment_label" t-att-title="line.name + '\n'+ line.ref">Paid on <t t-esc="line.date"></t></i>
+ <a role="button" tabindex="0" class="js_payment_info fa fa-info-circle" t-att-index="line.index" style="margin-right:5px;"></a>
+ </td>
+ <td>
+ <i class="oe_form_field text-right oe_payment_label">Paid on <t t-esc="line.date"></t></i>
</td>
</t>
<td style="text-align:right;">
@@ -42,4 +45,41 @@
</div>
</t>
+ <t t-name="PaymentPopOver">
+ <div>
+ <table>
+ <tr>
+ <td><strong>Name: </strong></td>
+ <td style="text-align:right;"><t t-esc="name"/></td>
+ </tr>
+ <tr>
+ <td><strong>Date: </strong></td>
+ <td style="text-align:right;"><t t-esc="date"/></td>
+ </tr>
+ <tr>
+ <td><strong>Payment Method: </strong></td>
+ <td style="text-align:right;"><t t-esc="journal_name"/></td>
+ </tr>
+ <tr>
+ <td><strong>Ref: </strong></td>
+ <td style="text-align:right;"><t t-esc="ref"/></td>
+ </tr>
+ <tr>
+ <td><strong>Amount: </strong></td>
+ <td style="text-align:right;">
+ <t t-if="position === 'before'">
+ <t t-esc="currency"/>
+ </t>
+ <t t-esc="amount"></t>
+ <t t-if="position === 'after'">
+ <t t-esc="currency"/>
+ </t>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <button class="btn btn-xs btn-primary js_unreconcile_payment pull-left" t-att-payment-id="payment_id" style="margin-top:5px; margin-bottom:5px;">Unreconcile</button>
+ <button class="btn btn-xs btn-default js_open_payment pull-right" t-att-move-id="move_id" style="margin-top:5px; margin-bottom:5px;">Open Payment</button>
+ </t>
+
</templates>