Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion payment_pagadito/views/portal_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
<!-- Copyright 2019 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).-->
<odoo>
<template id="report_shop_saleorder_document" inherit_id="website_portal_sale.orders_followup">
<template id="report_shop_saleorder_document_followup" inherit_id="website_portal_sale.orders_followup">
<xpath expr="//div[@class='panel-body']" position="inside">
<t t-if="order.payment_acquirer_id.provider == 'pagadito'">
<div class="mt8">
<strong>Payment confirmation codes:</strong> NAP=<t t-raw="order.payment_tx_id.acquirer_reference" />, ERN=<t t-raw="order.payment_tx_id.reference" />
<br/>
<strong>Customer ID: </strong><t t-raw="order.partner_id.passport"/>
</div>

<br/>
Expand Down
1 change: 1 addition & 0 deletions payment_pagadito/views/report_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<xpath expr="//tbody[@class='sale_tbody']/tr/td[1]" position="inside">
<t t-if="doc.payment_acquirer_id.provider == 'pagadito'">
<br/><strong>Payment confirmation codes:</strong> NAP=<t t-raw="doc.payment_tx_id.acquirer_reference" />, ERN=<t t-raw="doc.payment_tx_id.reference" />
<br/><strong>Customer ID:</strong> <t t-raw="doc.partner_id.passport"/>
</t>
</xpath>

Expand Down
2 changes: 2 additions & 0 deletions payment_pagadito/views/website_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<t t-if="order.payment_acquirer_id.provider == 'pagadito'">
<div class="alert alert-success" role="alert">
Payment confirmation codes: NAP=<t t-raw="order.payment_tx_id.acquirer_reference" />, ERN=<t t-raw="order.payment_tx_id.reference" />
<br/>
Customer ID: <t t-raw="order.partner_id.passport"/>
</div>
</t>
</xpath>
Expand Down