|
|
@ -1,25 +1,23 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8" ?> |
|
|
|
<templates> |
|
|
|
<t t-name="account_report_action" t-inherit="account_reports.AccountReportButtonsBar" t-inherit-mode="extension" owl="1"> |
|
|
|
<!-- inherit the AccountReportButtonsBar view and add Send mail button--> |
|
|
|
<xpath expr="//t[@t-if='controller.buttons.length > 1']//t[@t-if='mainButton']" |
|
|
|
position="inside"> |
|
|
|
<t t-name="account_report_action" |
|
|
|
t-inherit="account_reports.AccountReportButtonsBar" |
|
|
|
t-inherit-mode="extension" owl="1"> |
|
|
|
|
|
|
|
<!-- Insert the Send Mail button after the report buttons --> |
|
|
|
<xpath expr="//t[@t-foreach='barButtons']" position="after"> |
|
|
|
<button class="btn btn-link text-nowrap" t-on-click="send_mail">Send Mail</button> |
|
|
|
<center> |
|
|
|
<!-- modal for choosing report type--> |
|
|
|
<div id="popup" class="modal" t-ref="popup"> |
|
|
|
<div class="modal-content" id="send_mail_content"> |
|
|
|
<div class="close_button"> |
|
|
|
<button id="close" t-on-click="close_button">X</button> |
|
|
|
</div> |
|
|
|
<h4>Which type of report do you want to send by mail? |
|
|
|
</h4> |
|
|
|
<h4>Which type of report do you want to send by mail?</h4> |
|
|
|
<div class="button-container report-btn"> |
|
|
|
<button class="btn btn-primary" |
|
|
|
t-on-click="send_current_report">Send Current Report</button> |
|
|
|
<button class="btn btn-primary" |
|
|
|
t-on-click="send_unfolded_report">Send All |
|
|
|
Unfolded line Report |
|
|
|
<button class="btn btn-primary" t-on-click="send_current_report">Send Current Report</button> |
|
|
|
<button class="btn btn-primary" t-on-click="send_unfolded_report"> |
|
|
|
Send All Unfolded Line Report |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|