diff --git a/account_report_send_by_mail/README.rst b/account_report_send_by_mail/README.rst new file mode 100644 index 000000000..6015b3f51 --- /dev/null +++ b/account_report_send_by_mail/README.rst @@ -0,0 +1,47 @@ +.. 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 +------- +* Developer: (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..6017486ac --- /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: Bhagyadev 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..8dcaa4482 --- /dev/null +++ b/account_report_send_by_mail/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Bhagyadev 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': '16.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/account_report_mail_template.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/account_report_mail_template.xml b/account_report_send_by_mail/data/account_report_mail_template.xml new file mode 100644 index 000000000..12117a848 --- /dev/null +++ b/account_report_send_by_mail/data/account_report_mail_template.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..94ba92536 --- /dev/null +++ b/account_report_send_by_mail/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 26.03.2024 +#### Version 16.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..d475ea3dd --- /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: Bhagyadev 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..5e9c5b057 --- /dev/null +++ b/account_report_send_by_mail/models/account_report.py @@ -0,0 +1,115 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Bhagyadev 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 +import markupsafe +from odoo import models, _ + + +class AccountReport(models.Model): + _inherit = "account.report" + + def _init_options_buttons(self, options, previous_options=None): + """ + This method extends the _init_options_buttons method and adds a + 'Send Mail' button. + """ + super(AccountReport, self)._init_options_buttons(options, previous_options) + options["buttons"].append( + {"name": _("Send Mail"), "sequence": 100, "action": "open_send_mail_wizard"} + ) + + 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. + + """ + self.ensure_one() + base_url = self.env["ir.config_parameter"].sudo().get_param( + "report.url" + ) or self.env["ir.config_parameter"].sudo().get_param("web.base.url") + rcontext = { + "mode": "print", + "base_url": base_url, + "company": self.env.company, + } + print_mode_self = self.with_context(print_mode=True) + print_options = print_mode_self._get_options(previous_options=options) + body_html = print_mode_self.get_html( + print_options, + self._filter_out_folded_children(print_mode_self._get_lines(print_options)), + ) + body = self.env["ir.ui.view"]._render_template( + "account_reports.print_template", + values=dict(rcontext, body_html=body_html), + ) + footer = self.env["ir.actions.report"]._render_template( + "web.internal_layout", values=rcontext + ) + footer = self.env["ir.actions.report"]._render_template( + "web.minimal_layout", + values=dict(rcontext, subst=True, body=markupsafe.Markup(footer.decode())), + ) + landscape = False + if len(print_options["columns"]) * len(print_options["column_groups"]) > 5: + landscape = True + file_content = self.env["ir.actions.report"]._run_wkhtmltopdf( + [body], + footer=footer.decode(), + landscape=landscape, + specific_paperformat_args={ + "data-report-margin-top": 10, + "data-report-header-spacing": 10, + }, + ) + attachment_values = { + "name": f"""{options['available_variants'][0]['name']}.pdf""", + "type": "binary", + "datas": base64.b64encode(file_content), + "mimetype": "application/pdf", + "res_model": "account.report", + "res_id": self.id, + } + 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_report_id": self.id, + "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..489f44e86 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..6d637752d 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..15b141248 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..dd2b151c6 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..216c130e0 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..29bcb6544 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/hero.gif b/account_report_send_by_mail/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..819575b85 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/s1.png b/account_report_send_by_mail/static/description/assets/screenshots/s1.png new file mode 100644 index 000000000..bc2754d68 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/s1.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/s2.png b/account_report_send_by_mail/static/description/assets/screenshots/s2.png new file mode 100644 index 000000000..35cf183a9 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/s2.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/s3.png b/account_report_send_by_mail/static/description/assets/screenshots/s3.png new file mode 100644 index 000000000..cc8af379f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/s3.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/s4.png b/account_report_send_by_mail/static/description/assets/screenshots/s4.png new file mode 100644 index 000000000..3e7888f12 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/s4.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..4c30803fc 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..3b85043cf 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..37c9fd255 --- /dev/null +++ b/account_report_send_by_mail/static/description/index.html @@ -0,0 +1,620 @@ +
+ +
+ +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Account Report Send By Mail +

+

+ Create account report based on user requirements and send it + by mail.

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

+ Explore This + Module

+
+ + + +
+
+ +
+

+ Overview +

+
+
+
+ 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. +
+
+ + +
+
+ +
+

+ Features +

+
+
+
+
+ + Report send to mail. +
+
+
+
+
+
+ + Enterprise Support. +
+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Goto Accounting -> Reporting -> Select the report which you want + to mail. Inside the report you can see a SEND MAIL button. +

+ +
+
+
+
+

+ Low Sale Report +

+

+ On clicking the SEND MAIL button, a wizard will be opened, and we + can add the customer. then click on 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..080fddd96 --- /dev/null +++ b/account_report_send_by_mail/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Bhagyadev 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..6c2180b8b --- /dev/null +++ b/account_report_send_by_mail/wizard/send_mail_report.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Bhagyadev 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 ") + report = fields.Integer(string="Report", help="report id") + + 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 + +
+ + + + + + + + + +
+
+
+