diff --git a/account_report_send_by_mail/README.rst b/account_report_send_by_mail/README.rst new file mode 100644 index 000000000..d6a487a37 --- /dev/null +++ b/account_report_send_by_mail/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-OPL--1-red.svg + :target: https://www.odoo.com/documentation/16.0/legal/licenses.html#odoo-apps + :alt: License: OPL-1 + +Account Report Send By Mail +=========================== +Create account report based on user requirements and send it by mail + +Configuration +============= +* configure 'Outgoing Mail Servers'. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Odoo Proprietary License v1.0 (OPL-1) +(https://www.odoo.com/documentation/user/12.0/legal/licenses/licenses.html) + +Credits +------- +* Developers: (V15) Ayana KP, + (V16) BHAGYADEV KP +* Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/account_report_send_by_mail/__init__.py b/account_report_send_by_mail/__init__.py new file mode 100644 index 000000000..ebebfc5bf --- /dev/null +++ b/account_report_send_by_mail/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP (odoo@cybrosys.com) +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from . import models +from . import wizard diff --git a/account_report_send_by_mail/__manifest__.py b/account_report_send_by_mail/__manifest__.py new file mode 100644 index 000000000..051a118b8 --- /dev/null +++ b/account_report_send_by_mail/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP (odoo@cybrosys.com) +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +{ + 'name': 'Account Report Send By Mail', + 'version': '15.0.1.0.0', + 'category': 'Accounting', + 'summary': """Create account report based on user requirements and send it by mail""", + 'description': """This app enables users to generate personalized account + reports based on their email address. Users have the flexibility to choose + the type of report they want, catering to their specific needs. After + selecting the desired report type, users can input the recipients email + address to seamlessly send the generated report.""", + 'company': 'Cybrosys Techno Solutions', + 'author': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['account_reports'], + 'data': [ + 'security/ir.model.access.csv', + 'data/mail_template_data.xml', + 'wizard/send_mail_report.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'OPL-1', + 'installable': True, + 'auto_install': True, + 'application': False, +} diff --git a/account_report_send_by_mail/data/mail_template_data.xml b/account_report_send_by_mail/data/mail_template_data.xml new file mode 100644 index 000000000..12117a848 --- /dev/null +++ b/account_report_send_by_mail/data/mail_template_data.xml @@ -0,0 +1,26 @@ + + + + + + Account Report email template + + +
+
+

+ Hello, + +
+ +

+
+ Regards, +
+ +
+
+
+
+
diff --git a/account_report_send_by_mail/doc/RELEASE_NOTES.md b/account_report_send_by_mail/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a0c784cd3 --- /dev/null +++ b/account_report_send_by_mail/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 08.07.2024 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Account Report Send By Mail diff --git a/account_report_send_by_mail/models/__init__.py b/account_report_send_by_mail/models/__init__.py new file mode 100644 index 000000000..281075a08 --- /dev/null +++ b/account_report_send_by_mail/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP (odoo@cybrosys.com) +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from . import account_report diff --git a/account_report_send_by_mail/models/account_report.py b/account_report_send_by_mail/models/account_report.py new file mode 100644 index 000000000..52662330c --- /dev/null +++ b/account_report_send_by_mail/models/account_report.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP (odoo@cybrosys.com) +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +import base64 +from odoo import models, _ + + +class AccountReport(models.AbstractModel): + _inherit = "account.report" + + def _get_reports_buttons(self, options): + """ + This method extends the _init_options_buttons method and adds a + 'Send Mail' button. + """ + res = super(AccountReport, self)._get_reports_buttons(options) + res.append( + {"name": _("Send Mail"), "sequence": 100, "action": "open_send_mail_wizard"}) + return res + + def open_send_mail_wizard(self, options): + """ Open the send mail wizard to email the accounting report. + This method generates a PDF of the accounting report and attaches it to + an email ready for sending. + Args: + options (dict): Dictionary containing options for generating the + report. + Returns: + dict: Dictionary containing action information to open the send mail + wizard. """ + file_content = self.get_pdf(options) + attachment_values = { + "name": f"""{self._get_report_name()}.pdf""", + "type": "binary", + "datas": base64.b64encode(file_content), + "mimetype": "application/pdf", + } + attachment = self.env["ir.attachment"].sudo().create([attachment_values]) + return { + "type": "ir.actions.act_window", + "name": _("Send Mail"), + "res_model": "send.mail.report", + "views": [[False, "form"]], + "view_mode": "form", + "target": "new", + "context": { + "default_subject": "Accounting Report", + "default_attachment_ids": [attachment.id], + }, + } diff --git a/account_report_send_by_mail/security/ir.model.access.csv b/account_report_send_by_mail/security/ir.model.access.csv new file mode 100644 index 000000000..1a8b86d6a --- /dev/null +++ b/account_report_send_by_mail/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_send_mail_report_user,access.send.mail.report.user,model_send_mail_report,base.group_user,1,1,1,1 diff --git a/account_report_send_by_mail/static/description/assets/icons/check.png b/account_report_send_by_mail/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/check.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/chevron.png b/account_report_send_by_mail/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/chevron.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/cogs.png b/account_report_send_by_mail/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/cogs.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/consultation.png b/account_report_send_by_mail/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/consultation.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/ecom-black.png b/account_report_send_by_mail/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/ecom-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/education-black.png b/account_report_send_by_mail/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/education-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/hotel-black.png b/account_report_send_by_mail/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/hotel-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/license.png b/account_report_send_by_mail/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/license.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/lifebuoy.png b/account_report_send_by_mail/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/lifebuoy.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/manufacturing-black.png b/account_report_send_by_mail/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/manufacturing-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/pos-black.png b/account_report_send_by_mail/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/pos-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/puzzle.png b/account_report_send_by_mail/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/puzzle.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/restaurant-black.png b/account_report_send_by_mail/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/restaurant-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/service-black.png b/account_report_send_by_mail/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/service-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/trading-black.png b/account_report_send_by_mail/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/trading-black.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/training.png b/account_report_send_by_mail/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/training.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/update.png b/account_report_send_by_mail/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/update.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/user.png b/account_report_send_by_mail/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/user.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/wrench.png b/account_report_send_by_mail/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/wrench.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/categories.png b/account_report_send_by_mail/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/categories.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/check-box.png b/account_report_send_by_mail/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/check-box.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/compass.png b/account_report_send_by_mail/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/compass.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/corporate.png b/account_report_send_by_mail/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/corporate.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/customer-support.png b/account_report_send_by_mail/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/customer-support.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/cybrosys-logo.png b/account_report_send_by_mail/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/cybrosys-logo.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/features.png b/account_report_send_by_mail/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/features.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/logo.png b/account_report_send_by_mail/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/logo.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/pictures.png b/account_report_send_by_mail/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/pictures.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/pie-chart.png b/account_report_send_by_mail/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/pie-chart.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/right-arrow.png b/account_report_send_by_mail/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/right-arrow.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/star.png b/account_report_send_by_mail/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/star.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/support.png b/account_report_send_by_mail/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/support.png differ diff --git a/account_report_send_by_mail/static/description/assets/misc/whatsapp.png b/account_report_send_by_mail/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/misc/whatsapp.png differ diff --git a/account_report_send_by_mail/static/description/assets/modules/1.png b/account_report_send_by_mail/static/description/assets/modules/1.png new file mode 100644 index 000000000..e6bee65a9 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/1.png differ diff --git a/account_report_send_by_mail/static/description/assets/modules/2.png b/account_report_send_by_mail/static/description/assets/modules/2.png new file mode 100644 index 000000000..b4c3395f7 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/2.png differ diff --git a/account_report_send_by_mail/static/description/assets/modules/3.png b/account_report_send_by_mail/static/description/assets/modules/3.png new file mode 100644 index 000000000..00104b670 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/3.png differ diff --git a/account_report_send_by_mail/static/description/assets/modules/4.png b/account_report_send_by_mail/static/description/assets/modules/4.png new file mode 100644 index 000000000..aa9cb6262 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/4.png differ diff --git a/account_report_send_by_mail/static/description/assets/modules/5.png b/account_report_send_by_mail/static/description/assets/modules/5.png new file mode 100644 index 000000000..bf93d4f80 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/5.png differ diff --git a/account_report_send_by_mail/static/description/assets/modules/6.png b/account_report_send_by_mail/static/description/assets/modules/6.png new file mode 100644 index 000000000..ae3e11bff Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/6.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/1.png b/account_report_send_by_mail/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..f41ee134d Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/1.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/hero.gif b/account_report_send_by_mail/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..916e9b996 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/hero.gif differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/image_2.png b/account_report_send_by_mail/static/description/assets/screenshots/image_2.png new file mode 100644 index 000000000..fccf30a77 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/image_2.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/image_3.png b/account_report_send_by_mail/static/description/assets/screenshots/image_3.png new file mode 100644 index 000000000..8a06475a7 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/image_3.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/image_4.png b/account_report_send_by_mail/static/description/assets/screenshots/image_4.png new file mode 100644 index 000000000..8a0a7865f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/image_4.png differ diff --git a/account_report_send_by_mail/static/description/banner.png b/account_report_send_by_mail/static/description/banner.png new file mode 100644 index 000000000..678696b93 Binary files /dev/null and b/account_report_send_by_mail/static/description/banner.png differ diff --git a/account_report_send_by_mail/static/description/icon.png b/account_report_send_by_mail/static/description/icon.png new file mode 100644 index 000000000..a369d2bd2 Binary files /dev/null and b/account_report_send_by_mail/static/description/icon.png differ diff --git a/account_report_send_by_mail/static/description/index.html b/account_report_send_by_mail/static/description/index.html new file mode 100755 index 000000000..ac87484d6 --- /dev/null +++ b/account_report_send_by_mail/static/description/index.html @@ -0,0 +1,615 @@ +
+ +
+ +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Account Report Send By Mail +

+

+ Allows Sending Account Reports By Mail

+ + +
+
+
+
+ +
+
+ +
+

+ Explore This + Module

+
+ + + +
+
+ +
+

+ Overview +

+
+
+
+ This app allows users to easily send account reports to customers. +
+
+ + +
+
+ +
+

+ Features +

+
+
+
+
+ + Send the report via email. +
+
+
+
+
+
+ + Enterprise Support. +
+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Navigate to Accounting -> Reporting, choose the report you wish to email. Inside the report you can see + a SEND MAIL button. +

+ +
+
+
+
+

+ Partner Ledger Report +

+

+ After clicking the SEND MAIL button, a wizard will open where you can add the customer and email body. + Once added, + click the SEND MAIL button to send the report. +

+ +
+
+
+
+

+ Now check your mail and you can see the report. +

+ + +
+
+
+ + +
+
+ +
+

+ Related Products

+
+ +
+
+ +
+
+ + +
+
+ +
+

+ Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization +
+
+
+
+ +
+
+ Odoo + Implementation +
+
+
+
+ +
+
+ Odoo + Support +
+
+
+
+ +
+
+ Hire + Odoo + Developer +
+
+
+
+ +
+
+ Odoo + Integration +
+
+
+
+ +
+
+ Odoo + Migration +
+
+
+
+ +
+
+ Odoo + Consultancy +
+
+
+
+ +
+
+ Odoo + Implementation +
+
+
+
+ +
+
+ Odoo + Licensing Consultancy +
+
+
+
+ + +
+
+ +
+

+ Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products +

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience +

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management +

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations +

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages +

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice +

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically +

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application +

+
+
+
+
+ + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch. +

+ +

+ odoo@cybrosys.com +

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707 +

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/account_report_send_by_mail/wizard/__init__.py b/account_report_send_by_mail/wizard/__init__.py new file mode 100644 index 000000000..b857ee8cd --- /dev/null +++ b/account_report_send_by_mail/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP (odoo@cybrosys.com) +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from . import send_mail_report diff --git a/account_report_send_by_mail/wizard/send_mail_report.py b/account_report_send_by_mail/wizard/send_mail_report.py new file mode 100644 index 000000000..7e66454a7 --- /dev/null +++ b/account_report_send_by_mail/wizard/send_mail_report.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ayana KP (odoo@cybrosys.com) +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from odoo import fields, models + + +class SendMailReport(models.TransientModel): + """Created a new transient model for send mail""" + _name = 'send.mail.report' + _description = "Display send mail wizard details" + + partner_id = fields.Many2one('res.partner', string='Recipient', + required=True, help="Select one recipient") + subject = fields.Char(string='Subject', required=True, + help="Subject of the email") + email_body = fields.Html(required=True, String="Content", + help="Body of the email") + attachment_ids = fields.Many2many( + 'ir.attachment', string='Attachments', readonly=True, + help="Report attachment ") + + def action_send_report_mail(self): + """Action for send account PDF report to recipient mail""" + mail_template = (self.env.ref( + 'account_report_send_by_mail.email_template_account_report')) + email_values = {'email_from': self.env.user.email, + 'email_to': self.partner_id.email, + 'subject': self.subject, + 'attachment_ids': [(4, self.attachment_ids.id)], + } + mail_template.send_mail(self.id, email_values=email_values, + force_send=True) + mail_template.attachment_ids = [(5, 0, 0)] diff --git a/account_report_send_by_mail/wizard/send_mail_report.xml b/account_report_send_by_mail/wizard/send_mail_report.xml new file mode 100644 index 000000000..bf761e749 --- /dev/null +++ b/account_report_send_by_mail/wizard/send_mail_report.xml @@ -0,0 +1,24 @@ + + + + + send.mail.report.view.form + send.mail.report + +
+ + + + + + + + + +
+
+
+