[FIX] pos_self_order: receipt payment lines
Fixes the receipt payment lines name (replacing "Bank" by the payment method name). closes odoo/odoo#140098 Task-id: 3572422 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
@@ -147,6 +147,10 @@ class PosOrder(models.Model):
|
||||
}
|
||||
for line in self.lines
|
||||
],
|
||||
"payment_lines": [{
|
||||
"name": payment.payment_method_id.name,
|
||||
"amount": payment.amount
|
||||
} for payment in self.payment_ids],
|
||||
"tax_details": self._compute_tax_details(),
|
||||
}
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ export class SelfOrder extends Reactive {
|
||||
amount_tax: order.amount_tax,
|
||||
total_without_tax: order.amount_total - order.amount_tax,
|
||||
total_paid: order.amount_paid,
|
||||
paymentlines: [{ name: "Bank", amount: order.amount_total }],
|
||||
paymentlines: order.payment_lines,
|
||||
change: 0,
|
||||
tax_details: order.tax_details,
|
||||
name: order.pos_reference,
|
||||
|
||||
Reference in New Issue
Block a user