Skip to content

Commit

Permalink
BAH-3749 | Fix. Receipt and summary print file names (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 authored May 16, 2024
1 parent 5736e89 commit b97c4a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="page">
<head>
<t id="title">
<title t-esc="(o.state == 'posted') and (o.name or 'Draft Payment').replace('/','_')"/>
<title t-esc="((o.state == 'posted') and (o.name or 'Draft Payment').replace('/','_')) + '_Receipt'"/>
</t>
<style>
/* CSS for styling */
Expand Down Expand Up @@ -255,7 +255,7 @@
<div class="page">
<head>
<t id="title">
<title t-esc="(o.state == 'posted') and (o.name or 'Draft Payment').replace('/','_')"/>
<title t-esc="((o.state == 'posted') and (o.name or 'Draft Payment').replace('/','_')) + '_Summary'"/>
</t>
<style>
/* CSS for styling */
Expand Down
4 changes: 2 additions & 2 deletions bahmni_auto_payment_reconciliation/views/account_report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<field name="report_name">bahmni_auto_payment_reconciliation.report_payment_invoice</field>
<field name="report_file">bahmni_auto_payment_reconciliation.report_payment_invoice</field>
<field name="print_report_name">(object.move_id._get_report_base_filename())</field>
<field name="attachment">(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')</field>
<field name="attachment">(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'_receipt.pdf')</field>
<field name="binding_model_id" ref="model_account_payment"/>
<field name="binding_type">report</field>
<field name="attachment_use">True</field>
Expand All @@ -23,7 +23,7 @@
<field name="report_name">bahmni_auto_payment_reconciliation.report_payment_summary</field>
<field name="report_file">bahmni_auto_payment_reconciliation.report_payment_summary</field>
<field name="print_report_name">(object.move_id._get_report_base_filename())</field>
<field name="attachment">(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')</field>
<field name="attachment">(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'_summary.pdf')</field>
<field name="binding_model_id" ref="model_account_payment"/>
<field name="binding_type">report</field>
<field name="attachment_use">True</field>
Expand Down

0 comments on commit b97c4a6

Please sign in to comment.