Browse Source

Oct 22: [FIX] Bug fixed 'account_report_send_by_mail'

18.0
Risvana Cybro 1 day ago
parent
commit
90d3e93a6b
  1. 2
      account_report_send_by_mail/README.rst
  2. 2
      account_report_send_by_mail/__manifest__.py
  3. 6
      account_report_send_by_mail/doc/RELEASE_NOTES.md
  4. 22
      account_report_send_by_mail/static/src/xml/report_action.xml

2
account_report_send_by_mail/README.rst

@ -1,5 +1,5 @@
.. image:: https://img.shields.io/badge/license-OPL--1-red.svg .. image:: https://img.shields.io/badge/license-OPL--1-red.svg
:target: https://www.odoo.com/documentation/16.0/legal/licenses.html#odoo-apps :target: https://www.odoo.com/documentation/18.0/legal/licenses.html#odoo-apps
:alt: License: OPL-1 :alt: License: OPL-1
Account Report Send By Mail Account Report Send By Mail

2
account_report_send_by_mail/__manifest__.py

@ -22,7 +22,7 @@
################################################################################ ################################################################################
{ {
'name': 'Account Report Send By Mail', 'name': 'Account Report Send By Mail',
'version': '18.0.1.0.0', 'version': '18.0.1.1.0',
'category': 'Accounting', 'category': 'Accounting',
'summary': "Create account report based on user requirements and send it " 'summary': "Create account report based on user requirements and send it "
"by mail", "by mail",

6
account_report_send_by_mail/doc/RELEASE_NOTES.md

@ -3,5 +3,9 @@
#### 03.01.2025 #### 03.01.2025
#### Version 18.0.1.0.0 #### Version 18.0.1.0.0
#### ADD #### ADD
- Initial commit for Account Report Send By Mail - Initial commit for Account Report Send By Mail
#### 10.10.2025
#### Version 18.0.1.1.0
#### UPDT
- Bug fix (xpath issue in the account report template)

22
account_report_send_by_mail/static/src/xml/report_action.xml

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

Loading…
Cancel
Save