mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_order: wrong function name + report totals + report title
This commit is contained in:
committed by
Pedro M. Baeza
parent
a864e3a4bc
commit
a3a7808bd5
@@ -10,7 +10,7 @@ class AccountPaymentOrderReport(models.AbstractModel):
|
||||
_description = 'Technical model for printing payment order'
|
||||
|
||||
@api.model
|
||||
def get_report_values(self, docids, data=None):
|
||||
def _get_report_values(self, docids, data=None):
|
||||
AccountPaymentOrderObj = self.env['account.payment.order']
|
||||
docs = AccountPaymentOrderObj.browse(docids)
|
||||
|
||||
|
||||
@@ -21,7 +21,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Payment Order / Payment</h2>
|
||||
<t t-if="doc.payment_type == 'inbound'">
|
||||
<h2>Debit Order</h2>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<h2>Payment Order</h2>
|
||||
</t>
|
||||
|
||||
<div class="row mt32 mb32">
|
||||
<div t-if="doc.payment_mode_id.name" class="col-xs-2">
|
||||
@@ -91,8 +96,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-4 pull-right">
|
||||
<div class="row pull-right">
|
||||
<div class="col-xs-4">
|
||||
<table class="table table-condensed">
|
||||
<tr class="border-black">
|
||||
<td><strong>Total</strong></td>
|
||||
|
||||
Reference in New Issue
Block a user