Browse Source

Sep 29 : [ADD] Initial Commit 'sale_recurring'

pull/284/head
RisvanaCybro 2 years ago
parent
commit
392329f709
  1. 46
      sale_recurring/README.rst
  2. 22
      sale_recurring/__init__.py
  3. 46
      sale_recurring/__manifest__.py
  4. 20
      sale_recurring/data/ir_cron_data.xml
  5. 10
      sale_recurring/data/sequence_data.xml
  6. 7
      sale_recurring/doc/RELEASE_NOTES.md
  7. 24
      sale_recurring/models/__init__.py
  8. 31
      sale_recurring/models/sale_order.py
  9. 155
      sale_recurring/models/sale_recurring.py
  10. 42
      sale_recurring/models/sale_recurring_line.py
  11. 3
      sale_recurring/security/ir.model.access.csv
  12. BIN
      sale_recurring/static/description/assets/icons/check.png
  13. BIN
      sale_recurring/static/description/assets/icons/chevron.png
  14. BIN
      sale_recurring/static/description/assets/icons/cogs.png
  15. BIN
      sale_recurring/static/description/assets/icons/consultation.png
  16. BIN
      sale_recurring/static/description/assets/icons/ecom-black.png
  17. BIN
      sale_recurring/static/description/assets/icons/education-black.png
  18. BIN
      sale_recurring/static/description/assets/icons/hotel-black.png
  19. BIN
      sale_recurring/static/description/assets/icons/license.png
  20. BIN
      sale_recurring/static/description/assets/icons/lifebuoy.png
  21. BIN
      sale_recurring/static/description/assets/icons/manufacturing-black.png
  22. BIN
      sale_recurring/static/description/assets/icons/pos-black.png
  23. BIN
      sale_recurring/static/description/assets/icons/puzzle.png
  24. BIN
      sale_recurring/static/description/assets/icons/restaurant-black.png
  25. BIN
      sale_recurring/static/description/assets/icons/service-black.png
  26. BIN
      sale_recurring/static/description/assets/icons/trading-black.png
  27. BIN
      sale_recurring/static/description/assets/icons/training.png
  28. BIN
      sale_recurring/static/description/assets/icons/update.png
  29. BIN
      sale_recurring/static/description/assets/icons/user.png
  30. BIN
      sale_recurring/static/description/assets/icons/wrench.png
  31. BIN
      sale_recurring/static/description/assets/misc/categories.png
  32. BIN
      sale_recurring/static/description/assets/misc/check-box.png
  33. BIN
      sale_recurring/static/description/assets/misc/compass.png
  34. BIN
      sale_recurring/static/description/assets/misc/corporate.png
  35. BIN
      sale_recurring/static/description/assets/misc/customer-support.png
  36. BIN
      sale_recurring/static/description/assets/misc/cybrosys-logo.png
  37. BIN
      sale_recurring/static/description/assets/misc/features.png
  38. BIN
      sale_recurring/static/description/assets/misc/logo.png
  39. BIN
      sale_recurring/static/description/assets/misc/pictures.png
  40. BIN
      sale_recurring/static/description/assets/misc/pie-chart.png
  41. BIN
      sale_recurring/static/description/assets/misc/right-arrow.png
  42. BIN
      sale_recurring/static/description/assets/misc/star.png
  43. BIN
      sale_recurring/static/description/assets/misc/support.png
  44. BIN
      sale_recurring/static/description/assets/misc/whatsapp.png
  45. BIN
      sale_recurring/static/description/assets/modules/1.png
  46. BIN
      sale_recurring/static/description/assets/modules/2.png
  47. BIN
      sale_recurring/static/description/assets/modules/3.png
  48. BIN
      sale_recurring/static/description/assets/modules/4.png
  49. BIN
      sale_recurring/static/description/assets/modules/5.png
  50. BIN
      sale_recurring/static/description/assets/modules/6.png
  51. BIN
      sale_recurring/static/description/assets/screenshots/hero.gif
  52. BIN
      sale_recurring/static/description/assets/screenshots/sale1.png
  53. BIN
      sale_recurring/static/description/assets/screenshots/sale10.png
  54. BIN
      sale_recurring/static/description/assets/screenshots/sale11.png
  55. BIN
      sale_recurring/static/description/assets/screenshots/sale12.png
  56. BIN
      sale_recurring/static/description/assets/screenshots/sale2.png
  57. BIN
      sale_recurring/static/description/assets/screenshots/sale3.png
  58. BIN
      sale_recurring/static/description/assets/screenshots/sale4.png
  59. BIN
      sale_recurring/static/description/assets/screenshots/sale5.png
  60. BIN
      sale_recurring/static/description/assets/screenshots/sale6.png
  61. BIN
      sale_recurring/static/description/assets/screenshots/sale7.png
  62. BIN
      sale_recurring/static/description/assets/screenshots/sale8.png
  63. BIN
      sale_recurring/static/description/assets/screenshots/sale9.png
  64. BIN
      sale_recurring/static/description/banner.jpg
  65. BIN
      sale_recurring/static/description/icon.png
  66. 705
      sale_recurring/static/description/index.html
  67. 14
      sale_recurring/views/sale_order_views.xml
  68. 145
      sale_recurring/views/sale_recurring_views.xml

46
sale_recurring/README.rst

@ -0,0 +1,46 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Sale Recurring
==============
* Create sale orders automatically based on recurring orders 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.gnu.org/licenses/agpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer: (V16) Sruthi MK, Contact: odoo@cybrosys.com
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.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
sale_recurring/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (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 models

46
sale_recurring/__manifest__.py

@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (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': 'Sale Recurring',
'version': '16.0.1.0.0',
'category': 'Sales',
'summary': 'Automatic sale order creation based on recurring orders',
'description': 'This module is helps to create sale orders automatically '
'based on the recurring orders.',
'author': 'Cybrosys Techno solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['account', 'sale_management'],
'data': [
'data/sequence_data.xml',
'data/ir_cron_data.xml',
'security/ir.model.access.csv',
'views/sale_recurring_views.xml',
'views/sale_order_views.xml'
],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}

20
sale_recurring/data/ir_cron_data.xml

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Cron job for Sale Recurring-->
<record forcecreate="True"
id="ir_cron_create_sale_order_scheduler_action"
model="ir.cron">
<field name="name">Sale Recurring</field>
<field name="model_id" ref="model_sale_recurring"/>
<field name="state">code</field>
<field name="code">model.cron_sale_order_creation()</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field name="active" eval="True"/>
</record>
</data>
</odoo>

10
sale_recurring/data/sequence_data.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Sale recurring sequence creation template-->
<record id="sequence_order" model="ir.sequence">
<field name="name">Sequence Order</field>
<field name="code">sequence.order</field>
<field name="prefix">SR </field>
<field name="padding">3</field>
</record>
</odoo>

7
sale_recurring/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <sale_recurring>
#### 26.09.2023
#### Version 16.0.1.0.0
#### ADD
- Initial Commit for Sale Recurring

24
sale_recurring/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (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 sale_order
from . import sale_recurring
from . import sale_recurring_line

31
sale_recurring/models/sale_order.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (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 SaleOrder(models.Model):
"""Inheriting SaleOrder to add a new field for recurring orders"""
_inherit = 'sale.order'
recurring_order_id = fields.Many2one('sale.recurring',
string='Recurring Order',
help='Sale recurring order details')

155
sale_recurring/models/sale_recurring.py

@ -0,0 +1,155 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (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 datetime import timedelta
from odoo import api, fields, models
class SaleRecurring(models.Model):
"""Helps to create a recurring sale order"""
_name = 'sale.recurring'
_description = 'Sale Order Recurring'
name = fields.Char(string="Name", readonly=True, copy=False, default='New',
help="Sequence of recurring order")
title = fields.Char(string='Title', help="Name of the order")
partner_id = fields.Many2one('res.partner', string='Customer', required=1,
help="Customer name")
start_date = fields.Date(string='Start Date', required=True,
help=" Start the sale order creation based on the"
" start date")
stop_after = fields.Integer(string='Stop After',
help='Total days to end the sale order'
' creation')
end_date = fields.Date(string='End Date', readonly=True,
help='Stop the sale order creation based on '
'the end date')
state = fields.Selection(selection=[('running', 'Running'),
('expired', 'Expired'),
('cancelled', 'Cancelled')],
string='Status', copy=False, default='running',
help='State of recurring order')
total_sale_order = fields.Integer(string="Total SO",
compute='_compute_total_sale_order',
help='Count of total sale orders')
total_sale_quotation = fields.Integer(
string="Total RFQ",
compute='_compute_total_sale_quotation',
help='Count of total quotations')
active = fields.Boolean(default=True, string='Active',
help='If unchecked, it will allow you to hide the'
' recurring order without removing it.')
order_line_ids = fields.One2many('sale.recurring.line', 'order_id',
string="Order lines",
help='To store recurring order datas')
@api.model
def create(self, vals):
"""Sequence creation of recurring order."""
vals['name'] = self.env['ir.sequence'].next_by_code('sequence.order')
return super(SaleRecurring, self).create(vals)
@api.onchange('stop_after', 'start_date')
def _onchange_start_date(self):
"""Update end date based on the start_date and stop_after"""
self.end_date = 0
if self.stop_after > 0:
self.end_date = self.start_date + timedelta(days=self.stop_after)
def action_create_sale_order(self):
"""Create sale order from the created sale recurring"""
line_vals = [(0, 0, {'product_id': rec.product_id.id,
'product_uom_qty': rec.product_uom_qty,
'price_unit': rec.price_unit,
'name': rec.name}) for rec in self.order_line_ids]
if line_vals:
self.env['sale.order'].sudo().create({
'partner_id': self.partner_id.id,
'recurring_order_id': self.id,
'order_line': line_vals
})
def action_cancel_recurring_order(self):
"""Cancel recurring orders if not necessary"""
self.state = 'cancelled'
def action_renew(self):
"""Renew the recurring order if they are cancelled."""
self.state = 'running'
def cron_sale_order_creation(self):
"""Create sale orders automatically while checking the conditions
of start date and end date"""
recurring_data = self.env['sale.recurring'].search([])
for rec in recurring_data:
if rec.end_date and rec.end_date < fields.Date.today():
rec.state = 'expired'
if rec.state == 'running':
if rec.end_date and rec.start_date <= fields.Date.today() <= rec.end_date:
rec.action_create_sale_order()
elif rec.start_date <= fields.Date.today():
rec.action_create_sale_order()
def action_get_sale_orders(self):
"""Get total sale orders in sale recurring smart button"""
return {
'type': 'ir.actions.act_window',
'name': 'reservation',
'view_mode': 'tree,form',
'res_model': 'sale.order',
'domain': [('recurring_order_id', '=', self.id),
('state', '=', 'sale')],
}
def action_get_sale_quotations(self):
"""Get total sale quotations in sale recurring smart button"""
return {
'type': 'ir.actions.act_window',
'name': 'reservation',
'view_mode': 'tree,form',
'res_model': 'sale.order',
'domain': [('recurring_order_id', '=', self.id),
('state', 'in', ['draft', 'sent'])],
}
def _compute_total_sale_order(self):
"""Compute total number of sale orders"""
for record in self:
record.total_sale_order = self.env[
'sale.order'].search_count(
[('recurring_order_id', '=', record.id),
('state', '=', 'sale')])
def _compute_total_sale_quotation(self):
"""Compute total number of quotations."""
for record in self:
record.total_sale_quotation = self.env[
'sale.order'].search_count(
[('recurring_order_id', '=', record.id),
('state', 'in', ['draft', 'sent'])])
def action_archive_orders(self):
"""Archive recurring orders"""
self.active = False
def action_unarchive_orders(self):
"""Un archive recurring orders"""
self.active = True

42
sale_recurring/models/sale_recurring_line.py

@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions (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 SaleRecurringLine(models.Model):
"""SaleRecurringLine class represents a recurring order line"""
_name = 'sale.recurring.line'
_description = 'Recurring Line'
product_id = fields.Many2one('product.product', string='Product',
required=True,
help='Select a product for which the sale'
' recurring will be used')
name = fields.Char(string='Description', related='product_id.name',
help='Name of the product')
price_unit = fields.Float(string='Price',
related='product_id.list_price',
help='Product price')
product_uom_qty = fields.Float(string='Quantity', default=1,
help='Total number of quantity')
order_id = fields.Many2one('sale.recurring', string="Order",
help='Order details')

3
sale_recurring/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_sale_recurring_user,access.sale.recurring.user,model_sale_recurring,base.group_user,1,1,1,1
access_sale_recurring_line_user,access.sale.recurring.line.user,model_sale_recurring_line,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_sale_recurring_user access.sale.recurring.user model_sale_recurring base.group_user 1 1 1 1
3 access_sale_recurring_line_user access.sale.recurring.line.user model_sale_recurring_line base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sale_recurring/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
sale_recurring/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
sale_recurring/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
sale_recurring/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
sale_recurring/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
sale_recurring/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
sale_recurring/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
sale_recurring/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
sale_recurring/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
sale_recurring/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
sale_recurring/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
sale_recurring/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
sale_recurring/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
sale_recurring/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
sale_recurring/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
sale_recurring/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
sale_recurring/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
sale_recurring/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
sale_recurring/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
sale_recurring/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
sale_recurring/static/description/assets/screenshots/sale9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
sale_recurring/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
sale_recurring/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

705
sale_recurring/static/description/index.html

@ -0,0 +1,705 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Sale Recurring</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This Module is Helps to Create Sale Orders Automatically Based on the Recurring Orders.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
Using this module, which will create the sale orders based on the recurring orders..
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Recurring Orders manually.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Sale Orders automatically based on the Recurring Orders.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Expire the Recurring Orders automatically.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Filter and Group by the Recurring Orders</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Go to Sales module => select Orders => Open Recurring Orders.
</h3>
<img src="assets/screenshots/sale1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Form view of Recurring Orders.
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Only we can create the Sale Order if the state is in Running and Un-archive, Also we can see the total Sale Orders and Quotations in smart button</p>
<img src="assets/screenshots/sale2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Easily we can CANCEL or ARCHIVE Recurring Orders.
</h3>
<img src="assets/screenshots/sale3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create Quotations manually
</h3>
<img src="assets/screenshots/sale4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Created Quotation.
</h3>
<img src="assets/screenshots/sale5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create Sale Orders automatically.
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
By using this cron function which will create Sale Orders automatically.</p>
<img src="assets/screenshots/sale6.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Which will create the Quotations based on the start date automatically.
</h3>
<img src="assets/screenshots/sale7.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
If we confirm the created Sale Order we can view it on the smart button of recurring order.
</h3>
<img src="assets/screenshots/sale8.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
If the End Date is less than the current date which will automatically moved to EXPIRED state.
</h3>
<img src="assets/screenshots/sale9.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
If the 'Stop After' is not specified, it will create the sale orders continuously.
</h3>
<img src="assets/screenshots/sale10.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Filter option in Recurring Orders.
</h3>
<img src="assets/screenshots/sale11.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Group By option in Recurring Orders.
</h3>
<img src="assets/screenshots/sale12.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_product_image/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/1.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/16.0/sale_discount_total/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/2.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/16.0/sale_customer_product_history/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sales_person_signature/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/4.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/16.0/sale_stock_restrict/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/5.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/16.0/dynamic_sale_order_fields/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" 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="#demo1"
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>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<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>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

14
sale_recurring/views/sale_order_views.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Add a field in the sale.order to know about which recurring order it came from -->
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit.sale.recurring</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="recurring_order_id"/>
</xpath>
</field>
</record>
</odoo>

145
sale_recurring/views/sale_recurring_views.xml

@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- ir.actions.act_window-->
<record id="sale_recurring_action" model="ir.actions.act_window">
<field name="name">Recurring Orders</field>
<field name="res_model">sale.recurring</field>
<field name="view_mode">tree,form</field>
</record>
<!--To show some fields in the list view-->
<record id="sale_recurring_view_tree" model="ir.ui.view">
<field name="name">sale.recurring.view.tree</field>
<field name="model">sale.recurring</field>
<field name="arch" type="xml">
<tree string="Channel">
<field name="name"/>
<field name="partner_id"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>
</field>
</record>
<!--Add fields to the form view for creating recurring order-->
<record id="sale_recurring_view_form" model="ir.ui.view">
<field name="name">sale.recurring.view.form</field>
<field name="model">sale.recurring</field>
<field name="arch" type="xml">
<form string="Test">
<header>
<button name="action_create_sale_order" string="Create Sale Order"
class="oe_highlight" type="object"
attrs="{'invisible': ['|', ('state', '!=', 'running'), ('active', '=', False)]}"/>
<button string="Cancel" type="object"
class="btn-secondary"
name="action_cancel_recurring_order"
attrs="{'invisible': [('state', '=', 'cancelled')]}"/>
<button string="Archive" type="object"
class="btn-secondary"
name="action_archive_orders"
attrs="{'invisible': [('active', '=', False)]}"/>
<button string="Unarchive" type="object"
class="btn-secondary"
name="action_unarchive_orders"
attrs="{'invisible': [('active', '=', True)]}"/>
<button string="Renew" type="object"
class="btn-secondary"
name="action_renew"
attrs="{'invisible': [('state', '=', 'running')]}"/>
<field name="state" widget="statusbar"
class="o_field_statusbar"
statusbar_visible="running,expired,cancelled"
force_save="1"/>
</header>
<sheet>
<div name="button_box" position="inside">
<button class="oe_stat_button" type="object"
name="action_get_sale_orders">
<field name="total_sale_order" string="Sale Orders"
widget="statinfo"/>
</button>
<button class="oe_stat_button" type="object"
name="action_get_sale_quotations">
<field name="total_sale_quotation"
string="Quotations"
widget="statinfo"/>
</button>
<field name="active" widget="boolean_button"
options='{"terminology": "archive"}'
invisible="1"/>
</div>
<h1>
<field name="name" readonly="1"/>
</h1>
<group>
<group>
<field name="title"/>
<field name="partner_id"/>
</group>
<group>
<field name="start_date"
attrs="{'readonly': [('state', '=', 'expired')]}"/>
<field name="end_date" force_save="1"/>
<label for="stop_after"/>
<div>
<field name="stop_after" class="oe_inline"
style="vertical-align:baseline"
attrs="{'readonly': [('state', '=', 'expired')]}"/>
days
</div>
</group>
</group>
<notebook>
<page string="Order Line">
<field name="order_line_ids">
<tree editable="bottom">
<field name="product_id"/>
<field name="name"/>
<field name="product_uom_qty"/>
<field name="price_unit"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- To search the records from the tree view, based on state and date-->
<record id="sale_recurring_view_search" model="ir.ui.view">
<field name="name">sale.recurring.view.search</field>
<field name="model">sale.recurring</field>
<field name="arch" type="xml">
<search string="Sale Recurring">
<field name="name"/>
<filter string="Inactive" name="active"
domain="[('active', '=', False)]"/>
<filter string="Running" name="state"
domain="[('state', '=', 'running')]"/>
<filter string="Expired" name="state"
domain="[('state', '=', 'expired')]"/>
<filter string="Cancelled" name="state"
domain="[('state', '=', 'cancelled')]"/>
<filter string="Start Date" name="start_date"
date="start_date"/>
<filter string="End Date" name="end_date" date="end_date"/>
<group string="Group By">
<filter string="Customer"
name="partner_id"
context="{'group_by':'partner_id'}"/>
<filter string="Start Date"
name="start_date"
context="{'group_by':'start_date'}"/>
<filter string="End Date" name="end_date"
context="{'group_by':'end_date'}"/>
<filter string="Status" name="state"
context="{'group_by':'state'}"/>
</group>
</search>
</field>
</record>
<!-- To show the menu under Orders-->
<menuitem name="Recurring Orders" sequence="20"
id="sale_recurring_menu"
action="sale_recurring_action"
parent="sale.sale_order_menu"/>
</odoo>
Loading…
Cancel
Save