diff --git a/account_report_send_by_mail/README.rst b/account_report_send_by_mail/README.rst new file mode 100644 index 000000000..cc8ec9da7 --- /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 +------- +* Developer: (V17) Swathy K S, + (V18) Busthana Shirin + 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..a750f032a --- /dev/null +++ b/account_report_send_by_mail/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ + +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of the 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 NONINFRINGEMENT. +# 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 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..e2b79ff86 --- /dev/null +++ b/account_report_send_by_mail/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +################################################################################ + +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of the 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 NONINFRINGEMENT. +# 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': '18.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', 'account_reports'], + 'data': [ + 'security/ir.model.access.csv', + 'data/account_report_mail_template.xml', + 'wizard/send_mail_report.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'account_report_send_by_mail/static/src/css/send_mail_report.css', + 'account_report_send_by_mail/static/src/js/report_action.js', + 'account_report_send_by_mail/static/src/xml/report_action.xml', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'OPL-1', + 'installable': True, + 'auto_install': True, + 'application': True, +} 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..723bd25ad --- /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..74cca556c --- /dev/null +++ b/account_report_send_by_mail/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 03.01.2025 +#### Version 18.0.1.0.0 +#### ADD + +- Initial commit for Account Report Send By Mail 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/arrows-repeat.svg b/account_report_send_by_mail/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-1.png b/account_report_send_by_mail/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/banner-1.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-2.svg b/account_report_send_by_mail/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-bg.png b/account_report_send_by_mail/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/banner-bg.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-bg.svg b/account_report_send_by_mail/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-call.svg b/account_report_send_by_mail/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-mail.svg b/account_report_send_by_mail/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-pattern.svg b/account_report_send_by_mail/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/banner-promo.svg b/account_report_send_by_mail/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/brand-pair.svg b/account_report_send_by_mail/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/close-icon.svg b/account_report_send_by_mail/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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/collabarate-icon.svg b/account_report_send_by_mail/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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/cybro-logo.png b/account_report_send_by_mail/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/cybro-logo.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/down.svg b/account_report_send_by_mail/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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/faq.png b/account_report_send_by_mail/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/faq.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/feature-icon.svg b/account_report_send_by_mail/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/feature.png b/account_report_send_by_mail/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/feature.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/gear.svg b/account_report_send_by_mail/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/hero.gif b/account_report_send_by_mail/static/description/assets/icons/hero.gif new file mode 100755 index 000000000..380654dfe Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/hero.gif differ diff --git a/account_report_send_by_mail/static/description/assets/icons/hire-odoo.svg b/account_report_send_by_mail/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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/life-ring-icon.svg b/account_report_send_by_mail/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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/mail.svg b/account_report_send_by_mail/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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/notes.png b/account_report_send_by_mail/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/notes.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/notification icon.svg b/account_report_send_by_mail/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/odoo-consultancy.svg b/account_report_send_by_mail/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/odoo-licencing.svg b/account_report_send_by_mail/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/odoo-logo.png b/account_report_send_by_mail/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/odoo-logo.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/patter.svg b/account_report_send_by_mail/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/pattern1.png b/account_report_send_by_mail/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/pattern1.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-piece-icon.svg b/account_report_send_by_mail/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/replace-icon.svg b/account_report_send_by_mail/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/screenshot-main.png b/account_report_send_by_mail/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/screenshot-main.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/screenshot.png b/account_report_send_by_mail/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/screenshot.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/skype-fill.svg b/account_report_send_by_mail/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/skype.png b/account_report_send_by_mail/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/skype.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/skype.svg b/account_report_send_by_mail/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/star-1.svg b/account_report_send_by_mail/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/star-2.svg b/account_report_send_by_mail/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/account_report_send_by_mail/static/description/assets/icons/support.png b/account_report_send_by_mail/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/support.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/test-1 - Copy.png b/account_report_send_by_mail/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/test-1 - Copy.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/test-1.png b/account_report_send_by_mail/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/test-1.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/test-2.png b/account_report_send_by_mail/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/test-2.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/translate.svg b/account_report_send_by_mail/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/video.png b/account_report_send_by_mail/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/video.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/whatsapp.png b/account_report_send_by_mail/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/icons/whatsapp.png differ diff --git a/account_report_send_by_mail/static/description/assets/icons/wrench-icon.svg b/account_report_send_by_mail/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/account_report_send_by_mail/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/modules/1.gif b/account_report_send_by_mail/static/description/assets/modules/1.gif new file mode 100755 index 000000000..ae3a880a2 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/1.gif differ diff --git a/account_report_send_by_mail/static/description/assets/modules/2.gif b/account_report_send_by_mail/static/description/assets/modules/2.gif new file mode 100755 index 000000000..d19e2b352 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/2.gif 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 100755 index 000000000..8513873ea 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 100755 index 000000000..3bedf7981 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 100755 index 000000000..0e311ca87 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.jpg b/account_report_send_by_mail/static/description/assets/modules/6.jpg new file mode 100755 index 000000000..67c7f7062 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/modules/6.jpg 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..45744f707 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/2.png b/account_report_send_by_mail/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..ef1f7d91c Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/2.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/3.png b/account_report_send_by_mail/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..69e7d95b1 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/3.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/4.png b/account_report_send_by_mail/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..8691236d0 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/4.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/5.png b/account_report_send_by_mail/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..c20e47e3f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/5.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/6.png b/account_report_send_by_mail/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..cd9fc186b Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/6.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/7.png b/account_report_send_by_mail/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..20c66202a Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/7.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/acc1.png b/account_report_send_by_mail/static/description/assets/screenshots/acc1.png new file mode 100644 index 000000000..c15cdad90 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/acc1.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/acc2.png b/account_report_send_by_mail/static/description/assets/screenshots/acc2.png new file mode 100644 index 000000000..6a3744a4f Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/acc2.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/acc3.png b/account_report_send_by_mail/static/description/assets/screenshots/acc3.png new file mode 100644 index 000000000..77afa88cc Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/acc3.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/acc5.png b/account_report_send_by_mail/static/description/assets/screenshots/acc5.png new file mode 100644 index 000000000..00b029605 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/acc5.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/acc6.png b/account_report_send_by_mail/static/description/assets/screenshots/acc6.png new file mode 100644 index 000000000..63a0bbe98 Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/acc6.png differ diff --git a/account_report_send_by_mail/static/description/assets/screenshots/acc7.png b/account_report_send_by_mail/static/description/assets/screenshots/acc7.png new file mode 100644 index 000000000..ce3cd639d Binary files /dev/null and b/account_report_send_by_mail/static/description/assets/screenshots/acc7.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..2deb34517 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/banner.jpg b/account_report_send_by_mail/static/description/banner.jpg new file mode 100644 index 000000000..9c4d566d7 Binary files /dev/null and b/account_report_send_by_mail/static/description/banner.jpg 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..71c03f784 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 100644 index 000000000..8f6e2bec9 --- /dev/null +++ b/account_report_send_by_mail/static/description/index.html @@ -0,0 +1,917 @@ + + + + + + Account Report Send By Mail + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+
+

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

+

Account Report Send By Mail +

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

Key + Heighlights

+
+
+
+
+ +
+
+ Choose report type. +
+

+ The user can + select the type of report, whether it is a + current report or an unfolded line report.

+
+
+
+
+
+ +
+
+ Report send to mail. +
+

+ The PDF of + accounting report can be sent to the recipient's + email. +

+
+
+
+
+
+ +
+
+ Enterprise Support +
+

+ Available in + Odoo 17.0 Enterprise. +

+
+
+
+
+ +
+
+
+ Account Report Send By Mail +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Click 'Send Mail' button for choose report + type. +

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

+ When click 'Send Current Report' button then + it will display a wizard with attachment of + current report PDF. +

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

+ Click on 'Send Mail' button, an email will + be send to recipient's mail +

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

+ Attached Current PDF report can be seen + here. +

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

+ Current PDF Report

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

+ When click 'Send All Unfolded line Report' + button then it will display a wizard with + attachment of unfolded line report PDF

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

+ Unfolded line Report

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

+ Create account + report and send it by mail.

+
+ +
+
+
+
+
+
+ +
+

+ User can select + report type as current report or unfolded line + report.

+
+
+
+
+
+
+ +
+
+

+ Latest Release 18.0.1.0.0 +

+ + 03rd January, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/account_report_send_by_mail/static/src/css/send_mail_report.css b/account_report_send_by_mail/static/src/css/send_mail_report.css new file mode 100644 index 000000000..3a5b0bd91 --- /dev/null +++ b/account_report_send_by_mail/static/src/css/send_mail_report.css @@ -0,0 +1,32 @@ +/* Send mail wizard styles added here */ +#popup{ + padding:10px; + display:none; + } +#send_mail_content{ + padding:15px; + margin-top: 23%; + width: 500px; +} +#close{ + width:25px; + align:right; + border-radius:5px; + border:1px solid purple; + background-color:transparent; + color:purple; + margin:5px; +} +.close_button{ + width: 100%; + display: flex; + justify-content: flex-end; +} +.report-btn{ + display:flex; + justify-content:center; + align-items:center; + gap:20px; + padding-top:10px; + padding-bottom:15px; +} diff --git a/account_report_send_by_mail/static/src/js/report_action.js b/account_report_send_by_mail/static/src/js/report_action.js new file mode 100644 index 000000000..9291abdab --- /dev/null +++ b/account_report_send_by_mail/static/src/js/report_action.js @@ -0,0 +1,82 @@ +/** @odoo-module **/ +import { AccountReportButtonsBar } from "@account_reports/components/account_report/buttons_bar/buttons_bar"; +import { patch } from "@web/core/utils/patch"; +import { useService } from "@web/core/utils/hooks"; +const {useRef } = owl; +import { _t } from "@web/core/l10n/translation"; + +patch(AccountReportButtonsBar.prototype,{ +//created send mail report and report actions are performed here. + setup() { + // super the setup + super.setup(); + this.orm = useService("orm"); + this.actionService = useService('action'); + this.popup = useRef("popup"); + this.report_id = this.controller.actionReportId; + }, + close_button() { +// close the wizard + this.popup.el.style.display ="none"; + }, + send_mail() { +// display the send mail wizard + this.popup.el.style.display ="block"; + }, + send_current_report() { +// generate current pdf report and display on the mail wizard + var self = this; + var unfolded_list = [] + var unfolded = false + var lines = self.controller.data.lines + for (var line of lines){ + if (line.unfolded == true ){ + unfolded_list.push(line.id) + } + } + console.log(unfolded_list) + this.orm.call('send.mail.report', 'send_current_report', [{}], {context: {report: this.report_id, + unfolded_lines:unfolded_list,unfolded:unfolded}}) + .then(function(pdf) { + if (pdf) { + self.actionService.doAction({ + type: 'ir.actions.act_window', + name: _t('Send Mail'), + res_model: 'send.mail.report', + views: [[false, "form"]], + view_mode: 'form', + target: 'new', + context: { + 'default_report': self.report_id, + 'default_subject': 'Accounting Report', + 'default_attachment_ids': [pdf], + }, + }); + } + }); + this.close_button(); + }, + send_unfolded_report() { +// generate unfolded report pdf and display on the mail wizard + var self = this; + this.orm.call('send.mail.report', 'send_unfolded_report', [{}], {context: {report: this.report_id}}) + .then(function(pdf) { + if (pdf) { + self.actionService.doAction({ + type: 'ir.actions.act_window', + name: _t('Send Mail'), + res_model: 'send.mail.report', + views: [[false, "form"]], + view_mode: 'form', + target: 'new', + context: { + 'default_report': self.report_id, + 'default_subject': 'Accounting Report', + 'default_attachment_ids': [pdf], + }, + }); + } + }); + this.close_button(); + }, + }) diff --git a/account_report_send_by_mail/static/src/xml/report_action.xml b/account_report_send_by_mail/static/src/xml/report_action.xml new file mode 100644 index 000000000..9c78c4bdc --- /dev/null +++ b/account_report_send_by_mail/static/src/xml/report_action.xml @@ -0,0 +1,30 @@ + + + + + + +
+ + +
+
+
+
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..0f2e6bc73 --- /dev/null +++ b/account_report_send_by_mail/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ + +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of the 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 NONINFRINGEMENT. +# 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..37bb98b18 --- /dev/null +++ b/account_report_send_by_mail/wizard/send_mail_report.py @@ -0,0 +1,142 @@ +# -*- coding: utf-8 -*- +################################################################################ + +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of the 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 NONINFRINGEMENT. +# 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 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 send_current_report(self): + """Create current accounting PDF report""" + report_value = False + return self.main_function(report_value) + + def send_unfolded_report(self): + """Create unfolded PDF report""" + report_value = True + return self.main_function(report_value) + + def main_function(self, report_value): + """Report action of current report and unfolded report + pdf is generated""" + report_id = self.env.context.get('report') + unfolded = self.env.context.get('unfolded_lines') + custom_context = { + 'mode': 'print', + 'base_url': self.env['ir.config_parameter'].sudo().get_param( + 'report.url') or + self.env['ir.config_parameter'].sudo().get_param( + 'web.base.url'), + 'company': self.env.company, + } + if self.report: + custom_reports_to_print = self.env['account.report'].browse( + self.report) + else: + custom_reports_to_print = self.env['account.report'].browse( + report_id) + self.report = report_id + custom_bodies = [] + max_custom_col_number = 0 + for custom_report in custom_reports_to_print: + if not report_value: + custom_report_options = custom_report.get_options( + previous_options={'selected_section_id': custom_report.id, + 'unfolded_lines': unfolded} + ) + else: + custom_report_options = custom_report.get_options( + previous_options={'selected_section_id': custom_report.id, + 'unfold_all': True} + ) + max_custom_col_number = max(max_custom_col_number, + len(custom_report_options[ + 'columns']) * len( + custom_report_options[ + 'column_groups'])) + custom_bodies.append(custom_report._get_pdf_export_html( + custom_report_options, + custom_report._filter_out_folded_children( + custom_report._get_lines(custom_report_options)), + additional_context={'base_url': self.env[ + 'ir.config_parameter'].sudo().get_param( + 'report.url') or self.env[ + 'ir.config_parameter'].sudo().get_param( + 'web.base.url')} + )) + custom_footer_data = self.env['ir.actions.report']._render_template( + "account_reports.internal_layout", values=custom_context) + footer_decode = custom_footer_data.decode() + custom_footer = self.env['ir.actions.report']._render_template( + "web.minimal_layout", values=dict(custom_context, subst=True, + body=markupsafe.Markup( + footer_decode))) + custom_file_content = self.env['ir.actions.report']._run_wkhtmltopdf( + custom_bodies, + footer=custom_footer.decode(), + landscape=max_custom_col_number > 5, + specific_paperformat_args={ + 'data-report-margin-top': 10, + 'data-report-header-spacing': 10, + 'data-report-margin-bottom': 15, + } + ) + if report_id: + report_name = self.env['account.report'].browse(report_id).name + attachment_values = {'name': f"""{report_name}.pdf""", + 'type': 'binary', + 'datas': base64.b64encode(custom_file_content), + 'mimetype': 'application/pdf', + 'res_model': 'account.report', + 'res_id': report_id} + attachment = self.env['ir.attachment'].sudo().create( + attachment_values) + return attachment.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 + +
+ + + + + + + + + +
+
+
+