[FIX] account_payment_order: wrong function name + report totals + report title

This commit is contained in:
Rubén Cerdà
2019-04-09 13:56:37 +02:00
committed by Pedro M. Baeza
parent a864e3a4bc
commit a3a7808bd5
2 changed files with 9 additions and 4 deletions

View File

@@ -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)

View File

@@ -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>