@ -0,0 +1,48 @@ |
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
|||
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
Website Subscription Package Management |
|||
======================================= |
|||
This Module Create Subscription for A Product From Website. |
|||
|
|||
Configuration |
|||
============= |
|||
* No Additional configuration is needed. |
|||
|
|||
License |
|||
------- |
|||
Affero General Public License v3.0 (AGPL v3) |
|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
Credits |
|||
------- |
|||
* Developer: (V16) Anagha S, |
|||
(V17) Fathima Mazlin AM, |
|||
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 <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 |
@ -0,0 +1,53 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 Subscription Package Management', |
|||
'version': '17.0.1.0.0', |
|||
'category': 'Website', |
|||
'summary': 'Subscription Package Management Through website', |
|||
'description': """This Module Create Subscription for A Product From |
|||
Website""", |
|||
'author': 'Cybrosys Techno solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.cybrosys.com", |
|||
'depends': ['subscription_package', 'website_sale'], |
|||
'data': [ |
|||
'data/mail_template_data.xml', |
|||
'views/subscription_package_views.xml', |
|||
'views/product_product_views.xml', |
|||
'views/product_template_views.xml', |
|||
'views/sale_order_views.xml', |
|||
'views/portal_templates.xml', |
|||
'views/website_product_subscription_template.xml', |
|||
], |
|||
'assets': { |
|||
'web.assets_frontend': [ |
|||
'website_subscription_package/static/src/js/website_sale.js', |
|||
], |
|||
}, |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 portal |
|||
from . import website_subscription_package |
@ -0,0 +1,98 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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.exceptions import AccessError |
|||
from odoo.http import request |
|||
from odoo.addons.portal.controllers import portal |
|||
from odoo.addons.portal.controllers.portal import pager as portal_pager |
|||
|
|||
|
|||
class SubscriptionCustomerPortal(portal.CustomerPortal): |
|||
"""A class representing a subscription-based customer portal. |
|||
This class extends the functionality of the base CustomerPortal class to |
|||
provide features specific to subscription management and interactions.""" |
|||
|
|||
def _prepare_home_portal_values(self, counters): |
|||
"""Values for /my & /my/home routes template rendering. |
|||
Includes the record count for subscription order.""" |
|||
values = super()._prepare_home_portal_values(counters) |
|||
if 'subscription_count' in counters: |
|||
subscription_count = request.env[ |
|||
'subscription.package'].sudo().search_count( |
|||
[('partner_id', '=', request.env.user.partner_id.id), |
|||
('is_closed', '=', False)]) |
|||
values['subscription_count'] = subscription_count |
|||
return values |
|||
|
|||
@http.route('/my/subscription_order', |
|||
type='http', auth='user', website=True) |
|||
def portal_my_subscription_orders(self, page=1, sortby=None, filterby=None, |
|||
search=None, search_in='all', |
|||
groupby='none'): |
|||
"""Values for /my/subscription_order routes template rendering.""" |
|||
values = self._prepare_portal_layout_values() |
|||
subscription = request.env['subscription.package'].sudo() |
|||
domain = [('partner_id', '=', request.env.user.partner_id.id), |
|||
('is_closed', '=', False)] |
|||
if not sortby: |
|||
sortby = 'start_date' |
|||
subscription_count = subscription.search_count(domain) |
|||
pager = portal_pager( |
|||
url="/my/subscription_order", |
|||
url_args={'sortby': sortby, 'search_in': search_in, |
|||
'search': search, 'groupby': groupby}, |
|||
total=subscription_count, page=page, step=self._items_per_page) |
|||
subscription_order = subscription.search( |
|||
domain, limit=self._items_per_page, offset=pager['offset']) |
|||
grouped_subscriptions = False |
|||
values.update({ |
|||
'subscriptions': subscription_order, |
|||
'grouped_subscriptions': grouped_subscriptions, |
|||
'page_name': 'Subscription', |
|||
'pager': pager, |
|||
'default_url': '/my/subscription_order', |
|||
'search_in': search_in, |
|||
'search': search, |
|||
'sortby': sortby, |
|||
'groupby': groupby, |
|||
'filterby': filterby}) |
|||
return request.render( |
|||
"website_subscription_package.portal_my_subscriptions", values) |
|||
|
|||
@http.route( |
|||
['/my/subscription_order/<int:subscription>', |
|||
'/my/subscription_order/id=<int:subscription>/state=<string:state>'], |
|||
type='http', auth="user", website=True) |
|||
def subscription_page(self, subscription=None, state=None): |
|||
"""Render subscription page.""" |
|||
subscription = request.env['subscription.package'].sudo().browse( |
|||
subscription) |
|||
if state == 'Draft': |
|||
subscription.button_start_date() |
|||
try: |
|||
subscription.check_access_rights('read') |
|||
subscription.check_access_rule('read') |
|||
except AccessError: |
|||
return request.website.render("website.403") |
|||
return request.render( |
|||
"website_subscription_package.subscription_page", { |
|||
'subscription': subscription.sudo()}) |
@ -0,0 +1,107 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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.controllers.main import QueryURL |
|||
from odoo.addons.website_sale.controllers.main import WebsiteSale |
|||
|
|||
|
|||
class WebsiteSaleSubscription(WebsiteSale): |
|||
"""Inherited class of website sale.""" |
|||
|
|||
@http.route(['/shop/<model("product.template"):product>'], |
|||
type='http', auth="public", website=True) |
|||
def product(self, product, category='', search=''): |
|||
"""Add Subscription plan and recurrence period for subscription |
|||
Product in website.""" |
|||
product_context = dict(request.env.context, active_id=product.id) |
|||
product_category = request.env['product.public.category'] |
|||
if category: |
|||
category = product_category.browse(int(category)).exists() |
|||
attrib_list = request.httprequest.args.getlist('attrib') |
|||
attrib_values = [map(int, value.split("-")) for value in attrib_list if |
|||
value] |
|||
attrib_set = {value[1] for value in attrib_values} |
|||
keep = QueryURL('/shop', category=category and category.id, |
|||
search=search, attrib=attrib_list) |
|||
categories = product_category.search([('parent_id', '=', False)]) |
|||
price_list = request.website._get_current_pricelist() |
|||
from_currency = request.env.user.company_id.currency_id |
|||
to_currency = price_list.currency_id |
|||
compute_currency = lambda price: from_currency.compute(price, |
|||
to_currency) |
|||
subscription_plan = [] |
|||
recurrence_period = [] |
|||
if not product_context.get('pricelist'): |
|||
product_context['pricelist'] = price_list.id |
|||
product = product.with_context(product_context) |
|||
if product.is_subscription: |
|||
subscription_product = request.env[ |
|||
'product.template'].sudo().browse(product.id) |
|||
subscription_plan = subscription_product.subscription_plan_id |
|||
recurrence_period = (subscription_product. |
|||
subscription_recurrence_period_ids) |
|||
values = { |
|||
'search': search, |
|||
'category': category, |
|||
'pricelist': price_list, |
|||
'attrib_values': attrib_values, |
|||
'compute_currency': compute_currency, |
|||
'attrib_set': attrib_set, |
|||
'keep': keep, |
|||
'categories': categories, |
|||
'main_object': product, |
|||
'product': product, |
|||
'subscription_plan': subscription_plan, |
|||
'recurrence_period': recurrence_period |
|||
} |
|||
return request.render("website_sale.product", values) |
|||
|
|||
@http.route() |
|||
def cart_update_json(self, *args, period=None, **kw): |
|||
"""Override to parse to recurrence period.""" |
|||
recurrence_period = None |
|||
if period: |
|||
recurrence_period = request.env['recurrence.period'].browse( |
|||
int(period)) |
|||
return super(WebsiteSaleSubscription, self).cart_update_json( |
|||
*args, period=recurrence_period, **kw) |
|||
|
|||
@http.route() |
|||
def shop_payment_confirmation(self, **post): |
|||
"""Super controller in website sale and call send mail function.""" |
|||
res = super(WebsiteSaleSubscription, self).shop_payment_confirmation( |
|||
**post) |
|||
order = res.qcontext['order'] |
|||
subscription_order = request.env[ |
|||
'subscription.package'].search( |
|||
[('sale_order_id', '=', order.id)]) |
|||
recurrence = [ |
|||
{order_line.product_id: order_line.subscription_interval_id} |
|||
for order_line in order.order_line] |
|||
for dictionary in recurrence: |
|||
if (subscription_order.product_line_ids.product_id in |
|||
dictionary.keys()): |
|||
subscription_order.update({'recurrence_period_id': dictionary[ |
|||
subscription_order.product_line_ids.product_id]}) |
|||
subscription_order.send_subscription_order_to_customer() |
|||
return res |
@ -0,0 +1,56 @@ |
|||
<?xml version="1.0"?> |
|||
<odoo> |
|||
<!-- Email Template: Email for renew subscription --> |
|||
<record id="mail_template_subscription_order" model="mail.template"> |
|||
<field name="name">Subscription: Send Subscription Order From Website</field> |
|||
<field name="model_id" ref="website_subscription_package.model_subscription_package"/> |
|||
<field name="subject">{{ object.company_id.name }}: Subscription Order {{ object.name }}</field> |
|||
<field name="email_from">{{ object.company_id.email }}</field> |
|||
<field name="email_to">{{ object.partner_id.email }}</field> |
|||
<field name="description">Sent Subscription Order to customers.</field> |
|||
<field name="auto_delete" eval="True"/> |
|||
<field name="lang">{{ object.partner_id.lang }}</field> |
|||
<field name="body_html" type="html"> |
|||
<div style="background:#F0F0F0;color:#515166;padding:10px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;"> |
|||
<table border="0" cellpadding="0" cellspacing="0" |
|||
style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"> |
|||
<tr> |
|||
<td align="center"> |
|||
<table border="0" cellpadding="0" cellspacing="0" |
|||
width="590" |
|||
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;"> |
|||
<tbody> |
|||
<!-- CONTENT --> |
|||
<tr> |
|||
<td align="center" |
|||
style="min-width: 590px;"> |
|||
<table border="0" cellpadding="0" |
|||
cellspacing="0" width="590" |
|||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> |
|||
<tr><td valign="top" style="font-size: 13px;"> |
|||
<div> |
|||
Dear <t t-out="object.partner_id.name or ''">Marc Demo</t>, |
|||
<br/> |
|||
<br/> |
|||
Your subscription<span style="font-weight:bold; font-size: 15px;" t-out="object.name or ''"> |
|||
SUB001 |
|||
</span> |
|||
has been created for product |
|||
<span t-out="object.product_line_ids.product_id.name or ''">Product |
|||
</span> |
|||
<br/>Do not Hesitate to contact us. |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,6 @@ |
|||
## Module <website_subscription_package> |
|||
|
|||
#### 29.05.2024 |
|||
#### Version 17.0.1.0.0 |
|||
#### ADD |
|||
- Initial commit for Website Subscription Package Management |
@ -0,0 +1,26 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 product_product |
|||
from . import product_template |
|||
from . import sale_order |
|||
from . import sale_order_line |
|||
from . import subscription_package |
@ -0,0 +1,46 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 ProductProduct(models.Model): |
|||
"""Adding a new field for discounts for variants of subscription products |
|||
second subscription.""" |
|||
_inherit = "product.product" |
|||
|
|||
subscription_discount = fields.Float( |
|||
string="Discount(%)", help="Discount for second subscription.") |
|||
|
|||
def action_open_attribute_values_discount(self): |
|||
"""Set Discounts for variants of subscription products second |
|||
subscription.""" |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'name': _("Product Variant Discount For 2nd subscription"), |
|||
'res_model': 'product.product', |
|||
'view_mode': 'tree', |
|||
'views': [(self.env.ref('website_subscription_package.' |
|||
'product_product_view_tree').id, 'list')], |
|||
'context': { |
|||
'search_default_product_tmpl_id': self.product_tmpl_id.id, |
|||
'default_product_tmpl_id': self.product_tmpl_id.id}, |
|||
'target': 'current'} |
@ -0,0 +1,47 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 ProductTemplate(models.Model): |
|||
"""Inherited product template model add new field to select recurrence |
|||
period for subscription product.""" |
|||
_inherit = "product.template" |
|||
|
|||
subscription_recurrence_period_ids = fields.Many2many( |
|||
comodel_name='recurrence.period', string='Recurrence period', |
|||
help="Select recurrence period (subscription interval) for the " |
|||
"product.") |
|||
|
|||
def action_open_attribute_values_discount(self): |
|||
"""Set Discounts for variants of subscription products second |
|||
subscription.""" |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'name': _("Product Variant Discount For 2nd subscription"), |
|||
'res_model': 'product.product', |
|||
'view_mode': 'tree', |
|||
'views': [(self.env.ref('website_subscription_package.' |
|||
'product_product_view_tree').id, 'list')], |
|||
'context': {'search_default_product_tmpl_id': self.id, |
|||
'default_product_tmpl_id': self.id}, |
|||
'target': 'current'} |
@ -0,0 +1,77 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 models |
|||
|
|||
|
|||
class SaleOrder(models.Model): |
|||
"""Extends the Sale Order model to handle subscription orders.""" |
|||
_inherit = 'sale.order' |
|||
|
|||
def _prepare_order_line_values(self, product_id, quantity, period=None, |
|||
**kwargs): |
|||
"""Add Recurrence period in order lines.""" |
|||
values = super()._prepare_order_line_values(product_id, quantity, |
|||
**kwargs) |
|||
product = self.env['product.product'].browse(product_id) |
|||
if product.is_subscription: |
|||
values.update({'subscription_interval_id': period.id}) |
|||
return values |
|||
|
|||
def _cart_update_order_line(self, product_id, quantity, order_line, |
|||
**kwargs): |
|||
"""Add corresponding recurrence period for subscription product in |
|||
sale order line.""" |
|||
self.ensure_one() |
|||
period = kwargs.get('period') |
|||
if order_line and quantity <= 0: # Remove zero or negative lines |
|||
order_line.unlink() |
|||
order_line = self.env['sale.order.line'] |
|||
elif order_line and period: |
|||
# Create a new line with a different recurrence period for the |
|||
# same subscription product. |
|||
for rec in order_line: |
|||
if (rec.product_id.id == product_id and |
|||
rec.subscription_interval_id.id != period.id): |
|||
order_line_values = self._prepare_order_line_values( |
|||
product_id, 1, **kwargs) |
|||
order_line = self.env['sale.order.line'].sudo().create( |
|||
order_line_values) |
|||
elif order_line and not period: |
|||
update_values = self._prepare_order_line_update_values( |
|||
order_line, quantity, **kwargs) |
|||
if update_values: |
|||
self._update_cart_line_values(order_line, update_values) |
|||
elif quantity >= 0: |
|||
order_line_values = self._prepare_order_line_values( |
|||
product_id, quantity, **kwargs) |
|||
order_line = self.env['sale.order.line'].sudo().create( |
|||
order_line_values) |
|||
return order_line |
|||
|
|||
def action_confirm(self): |
|||
"""Super action confirm to send mail to subscription customer""" |
|||
res = super(SaleOrder, self).action_confirm() |
|||
subscription_order = self.env[ |
|||
'subscription.package'].search( |
|||
[('sale_order_id', '=', self.id)]) |
|||
subscription_order.send_subscription_order_to_customer() |
|||
return res |
@ -0,0 +1,37 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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): |
|||
"""Add a new field to the sale order line for the subscription interval |
|||
for subscription product.""" |
|||
_inherit = 'sale.order.line' |
|||
|
|||
subscription_interval_id = fields.Many2one("recurrence.period", |
|||
string="Subscription " |
|||
"Interval", readonly=1, |
|||
help="Recurrence period for " |
|||
"subscription product.") |
|||
is_product_subscription = fields.Boolean( |
|||
related='product_template_id.is_subscription', |
|||
string="Is Subscription", help="Is subscription product.") |
@ -0,0 +1,121 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Fathima Mazlin AM (odoo@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 SubscriptionPackage(models.Model): |
|||
"""This class inherits from the 'subscription.package' model and extends |
|||
its functionality. It provides methods for sending subscription order |
|||
details to customers and managing subscription limits.""" |
|||
_inherit = "subscription.package" |
|||
|
|||
recurrence_period_id = fields.Many2one("recurrence.period", |
|||
string="Recurrence Period", |
|||
help="The period of the recurrence") |
|||
|
|||
def send_subscription_order_to_customer(self): |
|||
"""Generates a mail and send to customer about the subscription order |
|||
details.""" |
|||
template_id = self.env.ref( |
|||
'website_subscription_package.mail_template_subscription_order') |
|||
for rec in self: |
|||
email_vals = {'message_type': 'notification', |
|||
'is_notification': True, |
|||
"model": 'subscription.package', |
|||
"res_id": rec.id} |
|||
template_id.send_mail( |
|||
rec.id, force_send=True, |
|||
email_layout_xmlid= |
|||
"mail.mail_notification_layout_with_responsible_signature", |
|||
email_values=email_vals) |
|||
|
|||
def close_limit_cron(self): |
|||
"""It Checks renew date, close date. It will send mail when renew |
|||
date and also generates invoices based on the plan. |
|||
It wil close the subscription automatically if renewal limit is |
|||
exceeded.""" |
|||
pending_subscriptions = self.env['subscription.package'].search( |
|||
[('stage_category', '=', 'progress')]) |
|||
today_date = fields.Date.today() |
|||
pending_subscription = False |
|||
for pending_subscription in pending_subscriptions: |
|||
get_dates = self.find_renew_date( |
|||
pending_subscription.next_invoice_date, |
|||
pending_subscription.date_started, |
|||
pending_subscription.plan_id.days_to_end) |
|||
renew_date = get_dates['renew_date'] |
|||
end_date = get_dates['end_date'] |
|||
pending_subscription.close_date = get_dates['close_date'] |
|||
if today_date == pending_subscription.next_invoice_date: |
|||
if pending_subscription.plan_id.invoice_mode == 'draft_invoice': |
|||
this_products_line = [] |
|||
for rec in pending_subscription.product_line_ids: |
|||
rec_list = [0, 0, {'product_id': rec.product_id.id, |
|||
'quantity': rec.product_qty, |
|||
'price_unit': rec.unit_price, |
|||
'discount': rec.product_id.subscription_discount, |
|||
'tax_ids': rec.tax_id |
|||
}] |
|||
this_products_line.append(rec_list) |
|||
self.env['account.move'].create( |
|||
{'move_type': 'out_invoice', |
|||
'invoice_date_due': today_date, |
|||
'invoice_payment_term_id': False, |
|||
'invoice_date': today_date, |
|||
'state': 'draft', |
|||
'subscription_id': pending_subscription.id, |
|||
'partner_id': pending_subscription.partner_invoice_id.id, |
|||
'currency_id': pending_subscription.partner_invoice_id.currency_id.id, |
|||
'invoice_line_ids': this_products_line |
|||
}) |
|||
pending_subscription.write({ |
|||
'to_renew': False, |
|||
'start_date': pending_subscription.next_invoice_date}) |
|||
new_date = self.find_renew_date( |
|||
pending_subscription.next_invoice_date, |
|||
pending_subscription.date_started, |
|||
pending_subscription.plan_id.days_to_end) |
|||
pending_subscription.write( |
|||
{'close_date': new_date['close_date']}) |
|||
self.send_renew_alert_mail(today_date, |
|||
new_date['renew_date'], |
|||
pending_subscription.id) |
|||
if (today_date == end_date) and ( |
|||
pending_subscription.plan_id.limit_choice != 'manual'): |
|||
display_msg = ("<h5><i>The renewal limit has been exceeded " |
|||
"today for this subscription based on the " |
|||
"current subscription plan.</i></h5>") |
|||
pending_subscription.message_post(body=display_msg) |
|||
pending_subscription.is_closed = True |
|||
reason = (self.env['subscription.package.stop'].search([ |
|||
('name', '=', 'Renewal Limit Exceeded')]).id) |
|||
pending_subscription.close_reason = reason |
|||
pending_subscription.closed_by = self.user_id |
|||
pending_subscription.close_date = fields.Date.today() |
|||
stage = (self.env['subscription.package.stage'].search([ |
|||
('category', '=', 'closed')]).id) |
|||
values = {'stage_id': stage, 'to_renew': False, |
|||
'next_invoice_date': False} |
|||
pending_subscription.write(values) |
|||
self.send_renew_alert_mail(today_date, renew_date, |
|||
pending_subscription.id) |
|||
return dict(pending=pending_subscription) |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 361 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 146 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 183 KiB |
After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 194 KiB |
After Width: | Height: | Size: 361 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 146 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 183 KiB |
After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 142 KiB |
After Width: | Height: | Size: 171 KiB |
After Width: | Height: | Size: 194 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 194 KiB |
After Width: | Height: | Size: 443 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,982 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
|
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<title>Website Subscription Package Management</title> |
|||
<!-- Bootstrap CSS --> |
|||
<link rel="stylesheet" |
|||
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
|||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
|||
crossorigin="anonymous"> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
|||
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
|||
rel="stylesheet"> |
|||
</head> |
|||
<body> |
|||
<section> |
|||
<div class="container" |
|||
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
|||
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
|||
<div class="my-3"> |
|||
<img src="assets/misc/Cybrosys R.png" |
|||
style="width:auto !important; height:40px !important"> |
|||
</div> |
|||
<div class="my-3 d-flex align-items-center"> |
|||
<div class="text-center" |
|||
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Community |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
|||
style="margin: 80px 0px !important;"> |
|||
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
|||
#1A202C;"> |
|||
Website Subscription Package Management</h1> |
|||
<p class="my-3 mb-4" |
|||
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
|||
This Module Create Subscription for A Product From |
|||
Website. |
|||
</p> |
|||
<div style="width: 80%; margin-top: 3rem;"> |
|||
<img src="assets/screenshots/hero.gif" |
|||
class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5 mb-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#714b67 !important"> |
|||
Key Highlights |
|||
</p> |
|||
</div> |
|||
<div class="row py-4"> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Community compatible.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Auto Create Product Subscription and Sale Order From Website.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Send Mail After Auto Create Sale Order & Subscription To the customer.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0; "> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Create Variant wise 2nd Subscription Discount.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0; "> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
User Can Manage Subscription from Portal.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container rounded"> |
|||
<ul class="nav nav-tabs d-flex" |
|||
style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a |
|||
class="active show" data-toggle="tab" href="#tab1" |
|||
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
|||
<i class="fa-regular fa-image pr-2" |
|||
style="color: #fff;"></i> |
|||
Screenshots</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a |
|||
data-toggle="tab" href="#tab2" |
|||
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
|||
class="fa-solid fa-star pr-2" |
|||
style="color: #fff;"></i>Features</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a |
|||
data-toggle="tab" href="#tab3" |
|||
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
|||
class="fa-solid fa-book-open pr-2" |
|||
style="color: #fff;"></i>Released Notes</a></li> |
|||
</ul> |
|||
<div class="tab-content" |
|||
style="background-color: rgba(121, 113, 119, 0.04);"> |
|||
<div id="tab1" class="tab-pane fade in active show"> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot1.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Create Recurrence Period.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot2.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Create Subscription Plan.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot23.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Go to Sales-> Configuration-> Settings. Enable 'Discounts'.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot3.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Create New Subscription Product.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot4.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Create Variants for the |
|||
Product.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot5.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Enable 'Is Subscription' from 'Subscription' tab and |
|||
provide discount for variants.Select subscription plan and |
|||
Recurrence Period.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot6.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Create variant wise Discount for Subscription Product.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot7.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Select the Product from Website.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot08.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Select Recurrence Period and add to cart.</h4> |
|||
</div> |
|||
</div> |
|||
</div><div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot9.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Can see subscription details in Cart.</h4> |
|||
</div> |
|||
</div> |
|||
</div><div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot10.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Confirm the order.</h4> |
|||
</div> |
|||
</div> |
|||
</div><div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot11.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sale order and subscription order will be created.</h4> |
|||
</div> |
|||
</div> |
|||
</div><div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot20.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Send mail after auto create sale order & subscription to the |
|||
customer.</h4> |
|||
</div> |
|||
</div> |
|||
</div><div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot12.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Subscription Interval added in sale order line.</h4> |
|||
</div> |
|||
</div> |
|||
</div><div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot14.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Start the Subscription Order on clicking 'START' button.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot15.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Stage changed to IN PROGRESS.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot16.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Customer can see their subscription order from Portal.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot18.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Click 'Start' to start the subscription Order from portal.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/Screenshot24.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
A recurring invoice will be generated for the subscription order according to the recurring period. Starting from the second invoice onward, variant-specific discount will be applied.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="tab2" class="tab-pane fade"> |
|||
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
|||
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span>Community |
|||
compatible. |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span>Auto Create Product Subscription and Sale Order From Website. |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span>Send Mail After Auto Create Sale Order & Subscription To the customer. |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span>Create Variant wise 2nd Subscription Discount. |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span>User Can Manage Subscription from Portal. |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div id="tab3" class="tab-pane fade"> |
|||
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
|||
<div class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="d-flex mb-3" |
|||
style="font-size: 0.8rem; font-weight: 500;"><span>Version |
|||
16.0.1.0.0</span><span |
|||
class="px-2">|</span><span |
|||
style="color: #714B67;font-weight: 600;">Released on:28th Nov 2023</span> |
|||
</div> |
|||
<p class="m-0" |
|||
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
Initial commit for Subscription Management </p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Related Products</p> |
|||
</div> |
|||
</div> |
|||
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/website_product_publish/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/1.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Quick Product Publish/Unpublish</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/odoo_icecat_connector/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/2.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Odoo Icecat Connector</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/shopping_through_agent/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/3.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Shopping Through Agent</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/website_upload_files/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/4.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Multiple Attachments In eCommerce Order</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/website_multi_variant/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/5.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Website Multi Variant Add to Cart</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/website_pdf_preview_snippet/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/6.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Website PDF Preview Snippet</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<a class="carousel-control-prev" href="#myCarousel" |
|||
data-slide="prev" style="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="#myCarousel" |
|||
data-slide="next" style="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 class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Our Services</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row py-3"> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/cogs.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Customization</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/wrench.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/lifebuoy.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/user.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Hire |
|||
Odoo Developer</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
|
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/puzzle.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Integration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/update.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Migration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/consultation.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Consultancy</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/training.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/license.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Licensing Consultancy</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Our Industries</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="container"> |
|||
<div class="row my-5 py-4"> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100 " |
|||
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/trading-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
|||
<p>Easily procure and sell your products</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/pos-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
|||
<p>Easy configuration and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
|||
<img src="assets/icons/education-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Education</p> |
|||
<p>A platform for educational management</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/manufacturing-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Manufacturing</p> |
|||
<p>Plan, track and schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/ecom-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">E-commerce |
|||
& Website</p> |
|||
<p>Mobile friendly, awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/service-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Service |
|||
Management</p> |
|||
<p>Keep track of services and invoice</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/restaurant-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Restaurant</p> |
|||
<p>Run your bar or restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/hotel-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Hotel |
|||
Management</p> |
|||
<p>An all-inclusive hotel management application</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row" style="background-color: #FFFAFE;"> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
|||
style="border-right: 1px solid #D9D9D9;"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/support (1) 1.svg" alt="" |
|||
width="60px" style="margin-right: 12px;"> |
|||
<div style="padding: 0px 8px;"> |
|||
<span |
|||
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
|||
Help?</span> |
|||
<p class="m-0" style="color:#718096;">Got |
|||
questions or need help? Get in touch.</p> |
|||
<div style="font-weight: 400;"><span><img |
|||
src="assets/misc/support-email.svg" |
|||
alt="" |
|||
width="18px" |
|||
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/whatsapp 1.svg" alt="" |
|||
width="60px" style="margin-right: 12px;"> |
|||
<div> |
|||
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
|||
<p class="m-0" style="color:#718096;">Say hi to |
|||
us on WhatsApp!</p> |
|||
<div style="font-weight: 400; font-size: 16px;"><span><img |
|||
src="assets/misc/phone.svg" |
|||
alt="" width="14px" |
|||
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
|||
99456767686 |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- Optional JavaScript --> |
|||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
|||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,25 @@ |
|||
/** @odoo-module **/ |
|||
import { WebsiteSale } from '@website_sale/js/website_sale'; |
|||
WebsiteSale.include({ |
|||
/** |
|||
* Assign the recurrence period to the rootProduct for subscription products. |
|||
* |
|||
* @override |
|||
*/ |
|||
_updateRootProduct($form, productId) { |
|||
this._super(...arguments); |
|||
Object.assign(this.rootProduct, this._getRecurrencePeriod()); |
|||
}, |
|||
/** |
|||
* Get selected recurrence period for subscription product from website. |
|||
*/ |
|||
_getRecurrencePeriod($product) { |
|||
const period = this.$el.find('select[id=recurrence_period]').val(); |
|||
if (period) { { |
|||
return { |
|||
period: period, |
|||
}; |
|||
} |
|||
} |
|||
}, |
|||
}); |
@ -0,0 +1,196 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- Subscription portal --> |
|||
<template id="portal_my_home_menu_subscription" |
|||
name="Portal layout : subscription menu entries" |
|||
inherit_id="portal.portal_breadcrumbs" priority="20"> |
|||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside"> |
|||
<li t-if="page_name == 'Subscription'" |
|||
t-attf-class="breadcrumb-item #{'active ' if not subscriptions else ''}"> |
|||
<a t-if="subscriptions" |
|||
t-attf-href="/my/subscription_order?{{ keep_query() }}"> |
|||
Subscription |
|||
</a> |
|||
<t t-else="">Subscription</t> |
|||
</li> |
|||
<li t-if="subscription" class="breadcrumb-item active"> |
|||
<a t-att-href="default_url"> |
|||
<span t-field="subscription.name"/> |
|||
<t t-out="subscription.name"/> |
|||
</a> |
|||
</li> |
|||
</xpath> |
|||
</template> |
|||
<!-- Subscription Order in home --> |
|||
<template id="portal_my_home_subscription_order" name="Show Subscription" |
|||
inherit_id="portal.portal_my_home" customize_show="True" |
|||
priority="30"> |
|||
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside"> |
|||
<t t-call="portal.portal_docs_entry"> |
|||
<t t-set="title">Subscription</t> |
|||
<t t-set="url" t-value="'/my/subscription_order'"/> |
|||
<t t-set="placeholder_count" t-value="'subscription_count'"/> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
<!-- Users subscription orders on Portal --> |
|||
<template id="portal_my_subscriptions" name="My Subscriptions"> |
|||
<t t-call="portal.portal_layout"> |
|||
<t t-set="breadcrumbs_searchbar" t-value="True"/> |
|||
<t t-call="portal.portal_searchbar"> |
|||
<t t-set="title">Subscription</t> |
|||
</t> |
|||
<t t-if="subscriptions" t-call="portal.portal_table"> |
|||
<thead> |
|||
<tr class="active"> |
|||
<th>Subscription #</th> |
|||
<th class="text-end">Start Date</th> |
|||
<th class="text-end">Next Invoice Date</th> |
|||
<th class="text-center"/> |
|||
<th class="text-end">Total</th> |
|||
</tr> |
|||
</thead> |
|||
<t t-foreach="subscriptions" t-as="subscription"> |
|||
<tr> |
|||
<td> |
|||
<a t-att-href="'/my/subscription_order/'+str(subscription.id)"> |
|||
<t t-out="subscription.name"/> |
|||
</a> |
|||
</td> |
|||
<td class="text-end"> |
|||
<span t-field="subscription.start_date"/> |
|||
</td> |
|||
<td class="text-end"> |
|||
<span t-field="subscription.next_invoice_date"/> |
|||
</td> |
|||
<td class="text-center"> |
|||
<span t-field="subscription.stage_id"/> |
|||
</td> |
|||
<td class="text-end"> |
|||
<span t-field="subscription.total_recurring_price"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</t> |
|||
<p t-else="">There are currently no Subscription for your account. |
|||
</p> |
|||
</t> |
|||
</template> |
|||
<!-- Subscription page for subscription order --> |
|||
<template id="subscription_page" name="Subscription Detail Page"> |
|||
<t t-call="portal.portal_layout"> |
|||
<t t-set="wrapwrap_classes" t-value="'o_portal_bg_dark'"/> |
|||
<div class="row mt16 o_portal_sidebar"> |
|||
<!-- Subscription detail page --> |
|||
<div class="col-12 col-lg"> |
|||
<div class="card"> |
|||
<div class="card-header bg-white pb-2 pt-3" |
|||
style="background: white;"> |
|||
<div> |
|||
<div class="row"> |
|||
<div class="col-md-9"> |
|||
<h1> |
|||
<span t-esc="subscription.name"/> |
|||
</h1> |
|||
</div> |
|||
<t t-if="subscription.stage_id.name == 'Draft'"> |
|||
<a t-att-href="'/my/subscription_order/id=%s/state=%s' % (subscription.id,subscription.stage_id.name)"> |
|||
<button type="button" |
|||
t-att-id="subscription.id" |
|||
class="btn btn-primary"> |
|||
<i class="fa fa-caret-left"> |
|||
</i> |
|||
Start |
|||
</button> |
|||
</a> |
|||
</t> |
|||
<div class="subscription_state"> |
|||
<span class="badge rounded-pill bg-info text-white float-end fs-6" |
|||
t-field="subscription.stage_id.name"> |
|||
</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div> |
|||
<div class="row"> |
|||
<div class="col-md-6"> |
|||
<div> |
|||
<strong>Reference:</strong> |
|||
<span t-field="subscription.name"/> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6"> |
|||
<div> |
|||
<strong>Start date:</strong> |
|||
<span t-field="subscription.start_date"/> |
|||
</div> |
|||
<div> |
|||
<strong>Close date:</strong> |
|||
<span t-field="subscription.close_date"/> |
|||
</div> |
|||
<div> |
|||
<strong>Billing:</strong> |
|||
Every: |
|||
<span t-field="subscription.plan_id.renewal_value"/> |
|||
<span t-field="subscription.plan_id.renewal_period"/> |
|||
</div> |
|||
<div> |
|||
<strong>Next invoice:</strong> |
|||
<span t-field="subscription.next_invoice_date"/> |
|||
</div> |
|||
<div> |
|||
<strong>Recurrence Period:</strong> |
|||
<span t-field="subscription.recurrence_period_id.name"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<hr/> |
|||
<t t-call="website_subscription_package.subscription_lines"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</template> |
|||
<!-- Subscription lines --> |
|||
<template id="subscription_lines" name="Subscription Items"> |
|||
<section id="subscription_items"> |
|||
<t t-if="subscription.product_line_ids"> |
|||
<div class="card-body"> |
|||
<h5>Contract details</h5> |
|||
<table class="table table-sm table-responsive-lg"> |
|||
<thead> |
|||
<tr> |
|||
<th>Subscription Product</th> |
|||
<th class="text-right">Quantity</th> |
|||
<th class="text-right">Unit Price</th> |
|||
<th class="text-right">Subtotal</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="subscription.product_line_ids" |
|||
t-as="lines"> |
|||
<tr> |
|||
<td class="line-product"> |
|||
<span t-field="lines.product_id.display_name"/> |
|||
</td> |
|||
<td class="text-right"> |
|||
<span t-field="lines.product_qty"/> |
|||
<span t-field="lines.uom_catg_id"/> |
|||
</td> |
|||
<td class="text-right"> |
|||
<span t-field="lines.unit_price"/> |
|||
</td> |
|||
<td class="text-right"> |
|||
<span t-field="lines.total_amount"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
</section> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,38 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- To add attribute discount for product on second subscription--> |
|||
<record id="product_product_view_tree" model="ir.ui.view"> |
|||
<field name="name">product.product.view.tree.inherit.website.subscription.management</field> |
|||
<field name="model">product.product</field> |
|||
<field name="type">tree</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Attributes" create="0" delete="0" editable="bottom"> |
|||
<field name="name" readonly="true"/> |
|||
<field name="product_template_variant_value_ids" |
|||
widget="many2many_tags" |
|||
groups="product.group_product_variant" readonly="1"/> |
|||
<field name="subscription_discount" /> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
<!-- New field to select subscription periods for product --> |
|||
<record id="product_normal_form_view" model="ir.ui.view"> |
|||
<field name="name">product.product.view.form.inherit.website.subscription.management</field> |
|||
<field name="model">product.product</field> |
|||
<field name="inherit_id" ref="product.product_normal_form_view"/> |
|||
<field name="priority">25</field> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='subscription_plan_id']" position="after"> |
|||
<field name="subscription_recurrence_period_ids" widget="many2many_tags" |
|||
required="is_subscription" |
|||
invisible="not is_subscription"/> |
|||
</xpath> |
|||
<xpath expr="//page[@name='subscription']" position="inside"> |
|||
<button string = "Update Discount on Variants" class="btn btn-link" |
|||
required="is_subscription" |
|||
invisible="not is_subscription" |
|||
type="object" name="action_open_attribute_values_discount"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,28 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- New field to select subscription periods for product --> |
|||
<record id="product_template_only_form_view" model="ir.ui.view"> |
|||
<field name="name">product.template.view.form.inherit.website.subscription.management</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" |
|||
ref="subscription_package.product_template_only_form_view"/> |
|||
<field name="priority">25</field> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='subscription_plan_id']" |
|||
position="after"> |
|||
<field name="subscription_recurrence_period_ids" |
|||
widget="many2many_tags" |
|||
required="is_subscription" |
|||
invisible="not is_subscription"/> |
|||
</xpath> |
|||
<xpath expr="//page[@name='subscription']" position="inside"> |
|||
<button string="Update Discount on Variants" |
|||
class="btn btn-link" |
|||
required="is_subscription" |
|||
invisible="not is_subscription" |
|||
type="object" |
|||
name="action_open_attribute_values_discount"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- New field subscription interval for subscription product in sale order line --> |
|||
<record id="view_order_form" model="ir.ui.view"> |
|||
<field name="name">sale.order.form.view.inherit.website.subscription.management</field> |
|||
<field name="model">sale.order</field> |
|||
<field name="inherit_id" ref="sale.view_order_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="/form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='name']" position="after"> |
|||
<field name="is_product_subscription" column_invisible="1"/> |
|||
<field name="subscription_interval_id"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Inherited form view of the model subscription.package--> |
|||
<record id="subscription_package_view_form" model="ir.ui.view"> |
|||
<field name="name">subscription.package.view.form.inherit.website.subscription.package</field> |
|||
<field name="model">subscription.package</field> |
|||
<field name="inherit_id" |
|||
ref="subscription_package.subscription_package_view_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='reference_code']" position="after"> |
|||
<field name="recurrence_period_id"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,76 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- Subscription product details in product page --> |
|||
<template id="product_subscription" inherit_id="website_sale.product" |
|||
name="product Subscription"> |
|||
<xpath expr="//div[@id='o_wsale_cta_wrapper']/div" position="after"> |
|||
<br/> |
|||
<hr/> |
|||
<div t-if="product.is_subscription" |
|||
class="subs position-relative mb-2"> |
|||
<div> |
|||
<hr/> |
|||
<div id="check_id" name="select_card"> |
|||
<span>The plan for this product is&nbsp; |
|||
<strong t-esc="subscription_plan.name"/> |
|||
<br/> |
|||
Chose how often it's delivered.We'll send you a |
|||
reminder before each delivery |
|||
</span> |
|||
<select name="recurrence_period" |
|||
id="recurrence_period" |
|||
style="width:160px; height:42px" |
|||
class="form-control" |
|||
required="True"> |
|||
<t t-foreach='recurrence_period' |
|||
t-as="period"> |
|||
<option t-esc='period.name' |
|||
t-att-value="period.id"/> |
|||
</t> |
|||
</select> |
|||
<t t-if="product.product_variant_ids.product_template_variant_value_ids"> |
|||
<t t-foreach='product.product_variant_ids' |
|||
t-as="info"> |
|||
<t t-if="info.subscription_discount != 0"> |
|||
<t t-foreach='info.product_template_variant_value_ids' |
|||
t-as="var"> |
|||
For&nbsp; |
|||
<t t-esc="var.name"/> |
|||
</t> |
|||
<t t-esc="info.subscription_discount"/>% |
|||
discount for second subscription. |
|||
<br/> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
<!-- Subscription interval on cart --> |
|||
<template id="cart_lines_subscription_prod" |
|||
inherit_id="website_sale.cart_lines"> |
|||
<xpath expr="//button[hasclass('js_delete_product')]" position="after"> |
|||
<t t-if="line.is_product_subscription"> |
|||
<div class="subs_cart"> |
|||
<strong>Subscription Interval:</strong> |
|||
<strong t-field="line.subscription_interval_id"/> |
|||
</div> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
<!-- Subscription interval on cart summary --> |
|||
<template id="cart_summary_subscription_prod" |
|||
inherit_id="website_sale.checkout_layout"> |
|||
<xpath expr="//td[@name='website_sale_cart_summary_product_name']" position="inside"> |
|||
<t t-if="line.is_product_subscription"> |
|||
<div class="subs_cart" > |
|||
<strong>Subscription Interval:</strong> |
|||
<strong t-field="line.subscription_interval_id"/> |
|||
</div> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |