Browse Source

May 16: [ADD] Initial commit 'sale_donation_website'

pull/380/head
Cybrosys Technologies 1 month ago
parent
commit
dd4495188d
  1. 45
      sale_donation_website/README.rst
  2. 23
      sale_donation_website/__init__.py
  3. 54
      sale_donation_website/__manifest__.py
  4. 22
      sale_donation_website/controllers/__init__.py
  5. 59
      sale_donation_website/controllers/main.py
  6. 11
      sale_donation_website/data/product_product_data.xml
  7. 6
      sale_donation_website/doc/RELEASE_NOTES.md
  8. 25
      sale_donation_website/models/__init__.py
  9. 38
      sale_donation_website/models/donation_lines.py
  10. 33
      sale_donation_website/models/donation_rule.py
  11. 60
      sale_donation_website/models/sale_order.py
  12. 30
      sale_donation_website/models/sale_order_line.py
  13. 3
      sale_donation_website/security/ir.model.access.csv
  14. BIN
      sale_donation_website/static/description/assets/icons/check.png
  15. BIN
      sale_donation_website/static/description/assets/icons/chevron.png
  16. BIN
      sale_donation_website/static/description/assets/icons/cogs.png
  17. BIN
      sale_donation_website/static/description/assets/icons/consultation.png
  18. BIN
      sale_donation_website/static/description/assets/icons/ecom-black.png
  19. BIN
      sale_donation_website/static/description/assets/icons/education-black.png
  20. BIN
      sale_donation_website/static/description/assets/icons/hotel-black.png
  21. BIN
      sale_donation_website/static/description/assets/icons/license.png
  22. BIN
      sale_donation_website/static/description/assets/icons/lifebuoy.png
  23. BIN
      sale_donation_website/static/description/assets/icons/logo.png
  24. BIN
      sale_donation_website/static/description/assets/icons/manufacturing-black.png
  25. BIN
      sale_donation_website/static/description/assets/icons/pos-black.png
  26. BIN
      sale_donation_website/static/description/assets/icons/puzzle.png
  27. BIN
      sale_donation_website/static/description/assets/icons/restaurant-black.png
  28. BIN
      sale_donation_website/static/description/assets/icons/service-black.png
  29. BIN
      sale_donation_website/static/description/assets/icons/trading-black.png
  30. BIN
      sale_donation_website/static/description/assets/icons/training.png
  31. BIN
      sale_donation_website/static/description/assets/icons/update.png
  32. BIN
      sale_donation_website/static/description/assets/icons/user.png
  33. BIN
      sale_donation_website/static/description/assets/icons/wrench.png
  34. BIN
      sale_donation_website/static/description/assets/modules/budget_image.png
  35. BIN
      sale_donation_website/static/description/assets/modules/credit_image.png
  36. BIN
      sale_donation_website/static/description/assets/modules/employee_image.png
  37. BIN
      sale_donation_website/static/description/assets/modules/export_image.png
  38. BIN
      sale_donation_website/static/description/assets/modules/gantt_image.png
  39. BIN
      sale_donation_website/static/description/assets/modules/quotation_image.png
  40. BIN
      sale_donation_website/static/description/assets/screenshots.zip
  41. BIN
      sale_donation_website/static/description/assets/screenshots/donation_lines.png
  42. BIN
      sale_donation_website/static/description/assets/screenshots/donation_rule.png
  43. BIN
      sale_donation_website/static/description/assets/screenshots/donation_sale.png
  44. BIN
      sale_donation_website/static/description/assets/screenshots/donation_website.png
  45. BIN
      sale_donation_website/static/description/assets/screenshots/donation_website_adding.png
  46. BIN
      sale_donation_website/static/description/assets/screenshots/donation_website_computed.png
  47. BIN
      sale_donation_website/static/description/assets/screenshots/hero.gif
  48. BIN
      sale_donation_website/static/description/assets/screenshots/menu_donation.png
  49. BIN
      sale_donation_website/static/description/banner.jpg
  50. BIN
      sale_donation_website/static/description/icon.png
  51. 495
      sale_donation_website/static/description/index.html
  52. 24
      sale_donation_website/static/src/js/website_sale_donation.js
  53. 24
      sale_donation_website/views/donation_lines_views.xml
  54. 12
      sale_donation_website/views/donation_menu.xml
  55. 44
      sale_donation_website/views/donation_rule_views.xml
  56. 16
      sale_donation_website/views/sale_order_views.xml
  57. 195
      sale_donation_website/views/website_sale_donation_views.xml

45
sale_donation_website/README.rst

@ -0,0 +1,45 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/AGPL-3.0-standalone.html
:alt: License: AGPL-3
Website Sale Donation
=====================
* Website Sale Donation module for Odoo 16.
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Version 16 : Fathima Mufeeda PP @ Cybrosys
Contacts
--------
* Mail Contact : odoo@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.
Further information
===================
HTML Description: `<static/description/index.html>`__

23
sale_donation_website/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import controllers
from . import models

54
sale_donation_website/__manifest__.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{
'name': "Website Sale Donation",
'description': """To add the donation in the website""",
'summary': """User can select created donations in the website""",
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'maintainer': "Cybrosys Techno Solutions",
'category': 'Sales/Sales',
'version': '16.0.1.0.0',
'depends': ['base', 'sale_management', 'website_sale'],
'data': [
'security/ir.model.access.csv',
'data/product_product_data.xml',
'views/donation_rule_views.xml',
'views/donation_lines_views.xml',
'views/donation_menu.xml',
'views/website_sale_donation_views.xml',
'views/sale_order_views.xml',
],
'images': [
'static/description/banner.jpg',
],
'assets': {
'web.assets_frontend': [
'sale_donation_website/static/src/js/website_sale_donation.js',
],
},
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

22
sale_donation_website/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import main

59
sale_donation_website/controllers/main.py

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import http
from odoo.http import request
from odoo.addons.website_sale.controllers.main import WebsiteSale
class WebsiteSaleDelivery(WebsiteSale):
@http.route(['/shop/update_donation'], type='json', auth='public',
methods=['POST'], website=True, csrf=False)
def update_eshop_donation(self, **post):
order = request.website.sale_get_order()
donation_id = request.env['donation.rule'].sudo().browse(int(post['donation_id']))
donate_product = request.env.ref('sale_donation_website.product_product_view_create')
if post.get('checked'):
# Add the donation to M2M field
order.write({'donation_ids': [(4, donation_id.id)]})
# Add line if not already there
donation_lines = order.order_line.filtered(
lambda l: l.product_id == donate_product and l.name == donation_id.name)
if not donation_lines:
order.order_line.create({
'order_id': order.id,
'product_id': donate_product.id,
'name': donation_id.name,
'product_uom': donate_product.uom_id.id,
'product_uom_qty': 1,
'price_unit': donation_id.amount,
'is_donation': True,
})
else:
# Remove the donation line
order.order_line.filtered(
lambda l: l.product_id == donate_product and l.name == donation_id.name and l.is_donation).unlink()
# Also unlink from donation_ids M2M if needed
order.write({'donation_ids': [(3, donation_id.id)]})
return True

11
sale_donation_website/data/product_product_data.xml

@ -0,0 +1,11 @@
<?xml version="1.0"?>
<odoo>
<!-- To create donation product-->
<data noupdate="1">
<record id="product_product_view_create" model="product.product">
<field name="name">Donation</field>
<field name="detailed_type">service</field>
<field name="list_price">0.00</field>
</record>
</data>
</odoo>

6
sale_donation_website/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <sale_donation_website>
#### 04.05.2025
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Website Sale Donation

25
sale_donation_website/models/__init__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import donation_lines
from . import donation_rule
from . import sale_order
from . import sale_order_line

38
sale_donation_website/models/donation_lines.py

@ -0,0 +1,38 @@
## -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class DonationLines(models.Model):
"""Creating donation lines model."""
_name = "donation.lines"
_description = "Donation Lines"
partner_id = fields.Many2one('res.partner',string="Partner",
help="Partner name")
sale = fields.Char(string="Sale", help="Sale order number")
donation = fields.Many2one('donation.rule', string="Donation",
help="Name of the donation")
date = fields.Datetime(string="Date", help="Date")
donated_amount = fields.Float(string="Donated Amount",
help="Donated Amount")
website = fields.Many2one('website', string="Website", help="Website")

33
sale_donation_website/models/donation_rule.py

@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class DonationRule(models.Model):
"""Creating donation rule model."""
_name = "donation.rule"
_description = "Donation Rule"
name = fields.Char(string="Donation Name", help="Name of the Donation")
amount = fields.Float(string="Amount", help="Amount")
website_ids = fields.Many2many('website', string="Website", help="Website name")
ask_to_donate = fields.Boolean(string="Ask To Donate", help="Asking for donation")

60
sale_donation_website/models/sale_order.py

@ -0,0 +1,60 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, fields, models
class SaleOrder(models.Model):
"""Inheriting sale order"""
_inherit = 'sale.order'
donation_ids = fields.Many2many('donation.rule', string="Donation",
help="Donation choose from rules")
donation_amount = fields.Float(string='Donation Amount',
compute="_compute_donation_amount",
help='Donation Amount enter', default=0.00)
@api.depends('donation_ids')
def _compute_donation_amount(self):
"""To compute donation amount"""
if self.donation_ids:
for rec in self.donation_ids:
self.donation_amount = self.donation_amount + rec.amount
else:
self.donation_amount = 0.00
def action_confirm(self):
"""To create donation lines when confirming a sale order"""
res = super(SaleOrder, self).action_confirm()
donation_product = self.env['product.product'].search(
[('name', '=', 'Donate')])
for donation in self.donation_ids:
if donation_product in self.order_line.mapped('product_id'):
values = {
'partner_id': self.partner_id.id,
'sale': self.name,
'donation': donation.id,
'date': self.date_order,
'donated_amount': donation.amount,
'website': self.website_id.id
}
donation.env['donation.lines'].create(values)
return res

30
sale_donation_website/models/sale_order_line.py

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class SaleOrderLine(models.Model):
"""Inheriting sale order line"""
_inherit = 'sale.order.line'
is_donation = fields.Boolean(string="Is a Donation", default=False
, help="Check if donation")

3
sale_donation_website/security/ir.model.access.csv

@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_donation_rule,donation_rule,model_donation_rule,base.group_user,1,1,1,1
access_donation_lines,donation_lines,model_donation_lines,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_donation_rule donation_rule model_donation_rule base.group_user 1 1 1 1
3 access_donation_lines donation_lines model_donation_lines base.group_user 1 1 1 1

BIN
sale_donation_website/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
sale_donation_website/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
sale_donation_website/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
sale_donation_website/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
sale_donation_website/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
sale_donation_website/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
sale_donation_website/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
sale_donation_website/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
sale_donation_website/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sale_donation_website/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
sale_donation_website/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
sale_donation_website/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
sale_donation_website/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
sale_donation_website/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
sale_donation_website/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
sale_donation_website/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
sale_donation_website/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
sale_donation_website/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sale_donation_website/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
sale_donation_website/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sale_donation_website/static/description/assets/modules/budget_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
sale_donation_website/static/description/assets/modules/credit_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
sale_donation_website/static/description/assets/modules/employee_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
sale_donation_website/static/description/assets/modules/export_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
sale_donation_website/static/description/assets/modules/gantt_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
sale_donation_website/static/description/assets/modules/quotation_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
sale_donation_website/static/description/assets/screenshots.zip

Binary file not shown.

BIN
sale_donation_website/static/description/assets/screenshots/donation_lines.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
sale_donation_website/static/description/assets/screenshots/donation_rule.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
sale_donation_website/static/description/assets/screenshots/donation_sale.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
sale_donation_website/static/description/assets/screenshots/donation_website.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
sale_donation_website/static/description/assets/screenshots/donation_website_adding.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
sale_donation_website/static/description/assets/screenshots/donation_website_computed.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
sale_donation_website/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
sale_donation_website/static/description/assets/screenshots/menu_donation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

BIN
sale_donation_website/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
sale_donation_website/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

495
sale_donation_website/static/description/index.html

@ -0,0 +1,495 @@
<div class="container" style="padding: 1rem !important; margin-bottom: 1rem !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between" style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
</div>
</div>
<div class="container" style="padding: 0rem 1.5rem 4rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12" style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Website Sale Donation
</h1>
<p style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
This module allows to create donation
</p>
<img src="./assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">Overview</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">Screenshots</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
This module crafted by Cybrosys Technologies will help you to collect funds for charity and help needy people. .
</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4 style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Customer can add donation.</h4>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4 style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Customer can also donate for multiple issues. </h4>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Menu for creating donation.
</p>
<img src="assets/screenshots/menu_donation.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Can create Donation rules.
</p>
<img src="assets/screenshots/donation_rule.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Created donation rules are visible in the website.
</p>
<img src="assets/screenshots/donation_website.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Can select the donations.
</p>
<img src="assets/screenshots/donation_website_adding.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The donation amount will be calculated based on the selected donations.
</p>
<img src="assets/screenshots/donation_website_computed.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The donation lines will be added in the sale order.
</p>
<img src="assets/screenshots/donation_sale.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
When confirming the sale order the donation lines are created.
</p>
<img src="assets/screenshots/donation_lines.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center" style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/export_stockinfo_xls/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/export_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/custom_gantt_view/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/gantt_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/sales_credit_limit/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/credit_image.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/base_account_budget/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/budget_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/product_to_quotation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/quotation_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/employee_documents_expiry/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/employee_image.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="left:-25px;width: 35px;color: #000;">
<span class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span>
</a>
<a class="carousel-control-next" href="#demo1" data-slide="next" style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Customization
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Implementation
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Support
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire Odoo Developer
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Integration
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Migration
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Implementation
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Licensing Consultancy
</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure and sell your products
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy configuration and convivial experience
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for educational management
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and schedule your operations
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile friendly, awe-inspiring product pages
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of services and invoice
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or restaurant methodically
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An all-inclusive hotel management application
</p>
</div>
</div>
</div>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center" style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover" style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;">
<i class="fa fa-envelope mr-2"></i>odoo@cybrosys.com
</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank" class="btn btn-block mb-2 deep_hover" style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;">
<i class="fa fa-whatsapp mr-2"></i>WhatsApp
</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

24
sale_donation_website/static/src/js/website_sale_donation.js

@ -0,0 +1,24 @@
//To pass selected donations in to the sale order
odoo.define('sale_donation_website.donation', function(require) {
"use strict";
var publicWidget = require('web.public.widget');
publicWidget.registry.donation = publicWidget.Widget.extend({
selector: '.donation',
events: {
'change .form-check-input': '_onCheckDonation',
},
_onCheckDonation: function (ev) {
var donation = $(ev.currentTarget);
var isChecked = donation.is(':checked');
this._rpc({
route: '/shop/update_donation',
params: {
donation_id: donation.val(),
checked: isChecked,
},
});
},
});
var donationButton = $('button[name="donation_submit_button"]');
donationButton.click(function() { window.location.reload(); });
});

24
sale_donation_website/views/donation_lines_views.xml

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- donation lines tree view-->
<record id="donation_lines_view_tree" model="ir.ui.view">
<field name="name">donation.lines.tree</field>
<field name="model">donation.lines</field>
<field name="arch" type="xml">
<tree string="Donation">
<field name="partner_id"/>
<field name="sale"/>
<field name="donation"/>
<field name="date"/>
<field name="donated_amount"/>
<field name="website"/>
</tree>
</field>
</record>
<!-- Action for donation lines-->
<record id="donation_lines_action" model="ir.actions.act_window">
<field name="name">Donation Lines</field>
<field name="res_model">donation.lines</field>
<field name="view_mode">tree</field>
</record>
</odoo>

12
sale_donation_website/views/donation_menu.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Menu for configuring donation rules -->
<menuitem id="sale_order_menu_donation" name="Donation" parent="sale.menu_sale_config"
action="donation_rule_action">
</menuitem>
<!-- Menu for donation lines-->
<menuitem id="sale_order_menu_donation_lines" name="Donated By" parent="sale.menu_sale_config"
action="donation_lines_action">
</menuitem>
</odoo>

44
sale_donation_website/views/donation_rule_views.xml

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- donation rule form view-->
<record id="donation_rule_view_form" model="ir.ui.view">
<field name="name">donation.rule.form</field>
<field name="model">donation.rule</field>
<field name="arch" type="xml">
<form string="Donation">
<sheet>
<group>
<group>
<field name="name"/>
<field name="amount"/>
</group>
<group>
<field name="website_ids" widget='many2many_tags'/>
<field name="ask_to_donate"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- donation rule tree view-->
<record id="donation_rule_view_tree" model="ir.ui.view">
<field name="name">donation.rule.tree</field>
<field name="model">donation.rule</field>
<field name="arch" type="xml">
<tree string="Donation">
<field name="name"/>
<field name="amount"/>
<field name="website_ids" widget='many2many_tags'/>
<field name="ask_to_donate"/>
</tree>
</field>
</record>
<!-- Action for donation rule-->
<record id="donation_rule_action" model="ir.actions.act_window">
<field name="name">Donation</field>
<field name="res_model">donation.rule</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>

16
sale_donation_website/views/sale_order_views.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Adding donation fields into sale order-->
<record id="view_inherit_sale_order_donation" model="ir.ui.view">
<field name="name">Add Donation in Sale Order</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="payment_term_id" position="after">
<field name="donation_ids" widget="many2many_tags"/>
<field name="donation_amount"/>
</field>
</field>
</record>
</odoo>

195
sale_donation_website/views/website_sale_donation_views.xml

@ -0,0 +1,195 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- To add the donation template into the website checkout form-->
<template id="website_sale_donation" name="Donation"
inherit_id="website_sale.payment_footer">
<xpath expr="//div" position="before">
<div id="website_sale_donation" name="Website Sale Donation"
style="text-align: center; padding-top: 10px;">
<t t-set="donation"
t-value="env['donation.rule'].sudo().search([('website_ids', 'in', request.env.context.get('website_id')),('ask_to_donate', '=', True)])"/>
<t t-if="donation">
<span>
<Strong>Donate:</Strong>
</span>
<div>
<span>Be helpful, If you can...!</span>
</div>
<div class="donation">
<t t-foreach="donation" t-as="don">
<div>
<input t-att-value="don.id" t-att-id="don.id"
type="checkbox" t-att-name="don.name"
class="form-check-input"/>
<t t-esc="don.name"/>
<span t-field="don.amount"
class="monetary_field"
style="white-space: nowrap;" t-options='{
"widget": "monetary",
"display_currency": website_sale_order.currency_id,
}'/>
</div>
</t>
<div style="padding-top: 10px;">
<button name="donation_submit_button"
type="button"
class="btn btn-primary"
data-icon-class="fa-chevron-right"> Add Donation</button>
</div>
</div>
</t>
</div>
</xpath>
</template>
<!-- To add the donation amount in the website-->
<template id="website_sale_donation_amount" name="Donation_Amount"
inherit_id="website_sale.total">
<xpath expr="//tr[@id='order_total_untaxed']" position="before">
<div id="donation_amount">
<td class="text-end border-0" id="donation_field">Donation:</td>
<td class="text-xl-end border-0 text-muted">
<span t-field="website_sale_order.donation_amount"
class="monetary_field" style="white-space: nowrap;"
t-options='{
"widget": "monetary",
"display_currency": website_sale_order.currency_id,
}'/>
</td>
</div>
</xpath>
</template>
<!-- To remove donation product in the order-->
<template id="remove_donation_product" name="Donation Product"
inherit_id="website_sale.cart_summary">
<xpath expr="//table[@id='cart_products']/tbody" position="replace">
<tr t-foreach="website_sale_order.website_order_line" t-as="line">
<t t-if="line.is_donation == False">
<td colspan="2" t-if="not line.product_id.product_tmpl_id"/>
<t t-else="">
<td class='td-img text-center'>
<span t-if="line._is_not_sellable_line() and line.product_id.image_128">
<img t-att-src="image_data_uri(line.product_id.image_128)"
class="img o_image_64_max rounded"
t-att-alt="line.name_short"/>
</span>
<span t-else=""
t-field="line.product_id.image_128"
t-options="{'widget': 'image', 'qweb_img_responsive': False, 'class': 'rounded o_image_64_max'}"
/>
</td>
<td class='td-product_name'>
<div>
<strong t-field="line.name_short"/>
</div>
</td>
</t>
<td class='td-qty'>
<div t-esc="line.product_uom_qty"/>
<t t-if='line._get_shop_warning(clear=False)'>
<i class='fa fa-warning text-warning'
t-att-title="line._get_shop_warning()" role="img"
aria-label="Warning"/>
</t>
</td>
<td class="text-center td-price">
<span t-field="line.price_reduce_taxexcl"
style="white-space: nowrap;"
t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}"
groups="account.group_show_line_subtotals_tax_excluded"/>
<span t-field="line.price_reduce_taxinc"
style="white-space: nowrap;"
t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}"
groups="account.group_show_line_subtotals_tax_included"/>
</td>
</t>
</tr>
</xpath>
</template>
<!-- To remove donation products in the cart-->
<template id="remove_donation_product_from_cart" name="Donation Product"
inherit_id="website_sale.cart_lines">
<xpath expr="//table[@id='cart_products']/tbody" position="replace">
<t t-foreach="website_sale_order.website_order_line" t-as="line">
<t t-if="line.is_donation == False">
<tr t-att-class="'optional_product info' if line.linked_line_id else None">
<td t-if="not line.product_id" colspan="2" class='td-img'/>
<t t-else="">
<td align="center" class='td-img'>
<span t-if="line._is_not_sellable_line() and line.product_id.image_128">
<img t-att-src="image_data_uri(line.product_id.image_128)"
class="img o_image_64_max rounded"
t-att-alt="line.name_short"/>
</span>
<span t-else=""
t-field="line.product_id.image_128"
t-options="{'widget': 'image', 'qweb_img_responsive': False, 'class': 'rounded o_image_64_max'}"
/>
</td>
<td class='td-product_name'>
<div>
<t t-call="website_sale.cart_line_product_link">
<strong t-field="line.name_short" />
</t>
</div>
<t t-call="website_sale.cart_line_description_following_lines">
<t t-set="div_class" t-value="'d-none d-md-block'"/>
</t>
</td>
</t>
<td class="text-center td-qty">
<div class="css_quantity input-group mx-auto justify-content-center">
<t t-if="not line._is_not_sellable_line()">
<t t-if="show_qty">
<a t-attf-href="#" class="btn btn-link js_add_cart_json d-none d-md-inline-block" aria-label="Remove one" title="Remove one">
<i class="fa fa-minus"></i>
</a>
<input type="text" class="js_quantity form-control quantity" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty) == line.product_uom_qty and int(line.product_uom_qty) or line.product_uom_qty" />
<t t-if="line._get_shop_warning(clear=False)">
<a t-attf-href="#" class="btn btn-link">
<i class='fa fa-warning text-warning' t-att-title="line._get_shop_warning()" role="img" aria-label="Warning"/>
</a>
</t>
<a t-else='' t-attf-href="#" class="btn btn-link float_left js_add_cart_json d-none d-md-inline-block" aria-label="Add one" title="Add one">
<i class="fa fa-plus"></i>
</a>
</t>
<t t-else="">
<input type="hidden" class="js_quantity form-control quantity" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty) == line.product_uom_qty and int(line.product_uom_qty) or line.product_uom_qty" />
</t>
</t>
<t t-else="">
<span class="text-muted w-100" t-esc="int(line.product_uom_qty)"/>
<input type="hidden" class="js_quantity form-control quantity" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="line.product_uom_qty" />
</t>
</div>
</td>
<td class="text-center td-price" name="price">
<t t-set="combination" t-value="line.product_id.product_template_attribute_value_ids + line.product_no_variant_attribute_value_ids"/>
<t t-set="combination_info" t-value="line.product_id.product_tmpl_id._get_combination_info(combination, pricelist=website_sale_order.pricelist_id, add_qty=line.product_uom_qty)"/>
<t groups="account.group_show_line_subtotals_tax_excluded">
<span t-field="line.price_reduce_taxexcl" style="white-space: nowrap;" t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}"/>
</t>
<t groups="account.group_show_line_subtotals_tax_included">
<span t-field="line.price_reduce_taxinc" style="white-space: nowrap;" t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}"/>
</t>
<t t-if="line.discount">
<del t-attf-class="#{'text-danger mr8'}" style="white-space: nowrap;" t-esc="combination_info['list_price']" t-options="{'widget': 'monetary', 'display_currency': website_sale_order.currency_id}" />
</t>
<small t-if="not line._is_not_sellable_line() and line.product_id.base_unit_price"
class="cart_product_base_unit_price d-block text-muted"
groups="website_sale.group_show_uom_price">
<t t-call='website_sale.base_unit_price'>
<t t-set='product' t-value='line.product_id'/>
</t>
</small>
</td>
<td class="td-action">
<a href='#' aria-label="Remove from cart" title="Remove from cart" class='js_delete_product no-decoration'> <small><i class='fa fa-trash-o'></i></small></a>
</td>
</tr>
</t>
</t>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save