Browse Source

Apr 09: [ADD] Initial Commit 'odoo_rental_sales'

pull/313/head
RisvanaCybro 1 year ago
parent
commit
7af773696c
  1. 50
      odoo_rental_sales/README.rst
  2. 23
      odoo_rental_sales/__init__.py
  3. 56
      odoo_rental_sales/__manifest__.py
  4. 16
      odoo_rental_sales/data/ir_corn_data.xml
  5. 21
      odoo_rental_sales/data/ir_sequence_data.xml
  6. 6
      odoo_rental_sales/doc/RELEASE_NOTES.md
  7. 27
      odoo_rental_sales/models/__init__.py
  8. 38
      odoo_rental_sales/models/product_product.py
  9. 98
      odoo_rental_sales/models/rental_order_contract.py
  10. 37
      odoo_rental_sales/models/rental_product_agreement.py
  11. 43
      odoo_rental_sales/models/rental_product_category.py
  12. 167
      odoo_rental_sales/models/sale_order.py
  13. 30
      odoo_rental_sales/models/uom.py
  14. 9
      odoo_rental_sales/security/ir.model.access.csv
  15. 23
      odoo_rental_sales/security/odoo_rental_sales_groups.xml
  16. 11
      odoo_rental_sales/security/rental_order_contract_security.xml
  17. BIN
      odoo_rental_sales/static/description/assets/icons/capture (1).png
  18. BIN
      odoo_rental_sales/static/description/assets/icons/check.png
  19. BIN
      odoo_rental_sales/static/description/assets/icons/chevron.png
  20. BIN
      odoo_rental_sales/static/description/assets/icons/cogs.png
  21. BIN
      odoo_rental_sales/static/description/assets/icons/consultation.png
  22. BIN
      odoo_rental_sales/static/description/assets/icons/ecom-black.png
  23. BIN
      odoo_rental_sales/static/description/assets/icons/education-black.png
  24. BIN
      odoo_rental_sales/static/description/assets/icons/hotel-black.png
  25. BIN
      odoo_rental_sales/static/description/assets/icons/img.png
  26. BIN
      odoo_rental_sales/static/description/assets/icons/license.png
  27. BIN
      odoo_rental_sales/static/description/assets/icons/lifebuoy.png
  28. BIN
      odoo_rental_sales/static/description/assets/icons/manufacturing-black.png
  29. BIN
      odoo_rental_sales/static/description/assets/icons/photo-capture.png
  30. BIN
      odoo_rental_sales/static/description/assets/icons/pos-black.png
  31. BIN
      odoo_rental_sales/static/description/assets/icons/puzzle.png
  32. BIN
      odoo_rental_sales/static/description/assets/icons/restaurant-black.png
  33. BIN
      odoo_rental_sales/static/description/assets/icons/service-black.png
  34. BIN
      odoo_rental_sales/static/description/assets/icons/trading-black.png
  35. BIN
      odoo_rental_sales/static/description/assets/icons/training.png
  36. BIN
      odoo_rental_sales/static/description/assets/icons/update.png
  37. BIN
      odoo_rental_sales/static/description/assets/icons/user.png
  38. BIN
      odoo_rental_sales/static/description/assets/icons/wrench.png
  39. BIN
      odoo_rental_sales/static/description/assets/misc/Cybrosys R.png
  40. BIN
      odoo_rental_sales/static/description/assets/misc/categories.png
  41. BIN
      odoo_rental_sales/static/description/assets/misc/check-box.png
  42. BIN
      odoo_rental_sales/static/description/assets/misc/compass.png
  43. BIN
      odoo_rental_sales/static/description/assets/misc/corporate.png
  44. BIN
      odoo_rental_sales/static/description/assets/misc/customer-support.png
  45. BIN
      odoo_rental_sales/static/description/assets/misc/cybrosys-logo.png
  46. BIN
      odoo_rental_sales/static/description/assets/misc/features.png
  47. BIN
      odoo_rental_sales/static/description/assets/misc/logo.png
  48. BIN
      odoo_rental_sales/static/description/assets/misc/pictures.png
  49. BIN
      odoo_rental_sales/static/description/assets/misc/pie-chart.png
  50. BIN
      odoo_rental_sales/static/description/assets/misc/right-arrow.png
  51. BIN
      odoo_rental_sales/static/description/assets/misc/star.png
  52. BIN
      odoo_rental_sales/static/description/assets/misc/support.png
  53. BIN
      odoo_rental_sales/static/description/assets/misc/whatsapp.png
  54. BIN
      odoo_rental_sales/static/description/assets/modules/1.png
  55. BIN
      odoo_rental_sales/static/description/assets/modules/2.png
  56. BIN
      odoo_rental_sales/static/description/assets/modules/3.png
  57. BIN
      odoo_rental_sales/static/description/assets/modules/4.jpg
  58. BIN
      odoo_rental_sales/static/description/assets/modules/5.png
  59. BIN
      odoo_rental_sales/static/description/assets/modules/6.jpg
  60. BIN
      odoo_rental_sales/static/description/assets/screenshots/1.png
  61. BIN
      odoo_rental_sales/static/description/assets/screenshots/10.png
  62. BIN
      odoo_rental_sales/static/description/assets/screenshots/11.png
  63. BIN
      odoo_rental_sales/static/description/assets/screenshots/12.png
  64. BIN
      odoo_rental_sales/static/description/assets/screenshots/2.png
  65. BIN
      odoo_rental_sales/static/description/assets/screenshots/3.png
  66. BIN
      odoo_rental_sales/static/description/assets/screenshots/4.png
  67. BIN
      odoo_rental_sales/static/description/assets/screenshots/6.png
  68. BIN
      odoo_rental_sales/static/description/assets/screenshots/7.png
  69. BIN
      odoo_rental_sales/static/description/assets/screenshots/8.png
  70. BIN
      odoo_rental_sales/static/description/assets/screenshots/9.png
  71. BIN
      odoo_rental_sales/static/description/assets/screenshots/hero.gif
  72. BIN
      odoo_rental_sales/static/description/banner.jpg
  73. BIN
      odoo_rental_sales/static/description/icon.png
  74. 816
      odoo_rental_sales/static/description/index.html
  75. 25
      odoo_rental_sales/views/odoo_rental_sales_menus.xml
  76. 54
      odoo_rental_sales/views/product_product_views.xml
  77. 86
      odoo_rental_sales/views/rental_order_contract_views.xml
  78. 42
      odoo_rental_sales/views/rental_product_agreement_views.xml
  79. 40
      odoo_rental_sales/views/rental_product_category_views.xml
  80. 112
      odoo_rental_sales/views/sale_order_views.xml
  81. 57
      odoo_rental_sales/views/uom_views.xml
  82. 22
      odoo_rental_sales/wizard/__init__.py
  83. 45
      odoo_rental_sales/wizard/rental_product.py
  84. 34
      odoo_rental_sales/wizard/rental_product_views.xml

50
odoo_rental_sales/README.rst

@ -0,0 +1,50 @@
.. 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
Odoo Rental Sales
===================
* The Odoo Rental Sales module allows businesses to create and manage rental orders, track the availability of rental products, and execute rental contracts and invoices.
Installation
============
- www.odoo.com/documentation/17.0/setup/install.html
- Install our custom addon
License
-------
General Public License, Version 3 (AGPL-3).
(http://www.gnu.org/licenses/agpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: (V16)Aswathi PN,
(v17)JANISH BABU EK
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 https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

23
odoo_rental_sales/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import wizard

56
odoo_rental_sales/__manifest__.py

@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Odoo Rental Sales',
'version': '17.0.1.0.0',
'category': 'Sales',
'summary': "The module helps in rental management.",
'description': "This module allows businesses to create rental orders, "
"track the availability of rental products, and manage rental "
"contracts and invoices.",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://cybrosys.com',
'depends': ['product', 'sale_management', 'base'],
'data': [
'security/rental_order_contract_security.xml',
'security/odoo_rental_sales_groups.xml',
'security/ir.model.access.csv',
'data/ir_sequence_data.xml',
'data/ir_corn_data.xml',
'wizard/rental_product_views.xml',
'views/product_product_views.xml',
'views/odoo_rental_sales_menus.xml',
'views/sale_order_views.xml',
'views/rental_order_contract_views.xml',
'views/rental_product_category_views.xml',
'views/rental_product_agreement_views.xml',
'views/uom_views.xml'
],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

16
odoo_rental_sales/data/ir_corn_data.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!--Schedule activity for calculating expiration of contract-->
<record id="rental_scheduler_recurring_action" model="ir.cron">
<field name="name">Rental Scheduler Recurring Activity</field>
<field name="model_id" ref="model_rental_order_contract"/>
<field name="state">code</field>
<field name="code">model._contract_expiration()</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>
</record>
</data>
</odoo>

21
odoo_rental_sales/data/ir_sequence_data.xml

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!--Sale order line sequence number-->
<record id="seq_sale_order_line" model="ir.sequence">
<field name="name">Order Line Sequence</field>
<field name="code">sale.order.line</field>
<field name="prefix">RO</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>
<!--Rental contract sequence number-->
<record id="seq_rental_contract" model="ir.sequence">
<field name="name">Rental Contract Sequence</field>
<field name="code">rental.order.contract</field>
<field name="prefix">ROC</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>
</data>
</odoo>

6
odoo_rental_sales/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <odoo_rental_sales>
#### 04.04.2024
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Odoo Rental Sales

27
odoo_rental_sales/models/__init__.py

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import product_product
from . import rental_order_contract
from . import rental_product_agreement
from . import rental_product_category
from . import sale_order
from . import uom

38
odoo_rental_sales/models/product_product.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ProductProduct(models.Model):
"""Created the class for inheriting the product model """
_inherit = 'product.product'
rental = fields.Boolean('Rental',
help="Boolean field for checking the product is rental or not")
category_id = fields.Many2one('rental.product.category',
string='Rental Category',
help="Adding rental product category")
product_agreement_id = fields.Many2one('rental.product.agreement',
string='Product Agreement',
help="Set the product agreement")
security_amount = fields.Monetary(string='Security Amount',
help='To add the Security Amount')

98
odoo_rental_sales/models/rental_order_contract.py

@ -0,0 +1,98 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class RentalOrderContract(models.Model):
"""Created the class for creating a new model rental order contract"""
_name = "rental.order.contract"
_inherit = ['mail.thread', 'mail.activity.mixin', 'portal.mixin']
_description = 'Rental Order Contract'
_rec_name = 'reference_no'
reference_no = fields.Char(string='Reference', copy=False,
readonly=True, default=lambda self: _('New'),
help='Create a reference number for rental contract')
partner_id = fields.Many2one('res.partner', string='Customer',
help='To set the customer for the contract')
product_id = fields.Many2one('product.product', string='Product',
domain="[('rental', '=', True)]",
help='To add the rental product')
qty = fields.Float(string='Quantity', help='To add the quantity')
currency_id = fields.Many2one('res.currency', string="Currency",
related='company_id.currency_id',
help='To add the company currency')
unit_price = fields.Monetary(string='Unit Price', readonly=True,
help='To set the unit price')
date_start = fields.Datetime(string='Start Date',
help='To set the start date')
date_end = fields.Datetime(string='End Date', help='To set the end date')
sale_order_id = fields.Many2one('sale.order', string='Sale Order',
help='To set the corresponding sale order')
rental_order_id = fields.Many2one('sale.order.line', string='Rental Order',
help='To set the corresponding rental order',
domain=[('is_rental', '=', True)])
company_id = fields.Many2one('res.company', required=True,
default=lambda self: self.env.company,
string='Company',
help='To set the default company')
contract_status = fields.Selection(
[('new', 'New'), ('confirmed', 'Confirmed'), ('expired', 'Expired'),
('cancel', 'Cancelled')], string='Contract Status',
default='new', help='To add contract status')
@api.onchange('date_start', 'date_end')
def _onchange_date_start(self):
"""Checking the end date is less than start date"""
if self.date_start and self.date_end and self.date_start > self.date_end:
raise UserError(
_('The end date must be after or the same as the start date'))
@api.model
def create(self, vals):
"""Creating sequence for the rental contract"""
if vals.get('reference_no', _('New')) == _('New'):
vals['reference_no'] = self.env['ir.sequence'].next_by_code(
'rental.order.contract') or _('New')
return super(RentalOrderContract, self).create(vals)
def action_confirm_contract(self):
""" Function for confirming the contract """
self.contract_status = 'confirmed'
def action_reset_contract(self):
"""Function for reset the contract to draft"""
self.contract_status = 'new'
def action_cancel_contract(self):
""" Function for cancel contract """
self.contract_status = 'cancel'
def _contract_expiration(self):
"""Calculating the expiration date of the contract"""
rental_contract = self.env['rental.order.contract'].search(
[('contract_status', 'not in', ['expired', 'cancel'])])
for rec in rental_contract:
if rec.date_end and rec.date_end.date() < fields.date.today():
rec.contract_status = 'expired'

37
odoo_rental_sales/models/rental_product_agreement.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class RentalProductAgreement(models.Model):
"""Created the class for creating the model rental product agreement"""
_name = 'rental.product.agreement'
_description = 'Rental Product Agreement'
name = fields.Char(string='Name', required=True,
help='Name of the rental product agreement')
sequence = fields.Integer(string='Sequence', required=True,
help='Sequence of the rental product agreement')
description = fields.Text(string='Description',
help='Description of the rental product agreement')
agreement_file = fields.Binary(string='Product Agreement',
help='Agreement file of the rental product')

43
odoo_rental_sales/models/rental_product_category.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class RentalProductCategory(models.Model):
"""Created the class for creating the model rental product category"""
_name = 'rental.product.category'
_description = 'Rental Product Category'
name = fields.Char(string='Name', required=True,
help='Name of product category')
def action_view_rental_products(self):
"""Showing the products under the rental category"""
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'name': 'Rental Products',
'view_mode': 'tree',
'res_model': 'product.product',
'domain': [('category_id', '=', self.id)],
'context': "{'create': False}"
}

167
odoo_rental_sales/models/sale_order.py

@ -0,0 +1,167 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class SaleOrder(models.Model):
"""Created the class for inheriting the model sale order"""
_inherit = 'sale.order'
rental_status = fields.Selection(
[('new', 'New'), ('confirmed', 'Confirmed'),
('expired', 'Expired'),
('cancel', 'Cancelled')],
default='new', help='To show the rental status', string='Rental Status')
def action_confirm(self):
"""For creating rental order contract at the time of confirm the sale order."""
res = super(SaleOrder, self).action_confirm()
for product in self.order_line:
if product.rental:
product.is_rental = True
self.env['rental.order.contract'].create([{
'partner_id': self.partner_id.id,
'product_id': product.product_id.id,
'qty': product.product_uom_qty,
'unit_price': product.price_unit,
'rental_order_id': product.id,
'sale_order_id': self.id,
}])
return res
class SaleOrderLine(models.Model):
"""Created the class for inheriting the model sale order line"""
_inherit = 'sale.order.line'
_rec_name = 'reference_no'
reference_no = fields.Char(string='Reference', readonly=True,
default=lambda self: _('New'),
help='To create reference number for sale order line')
initial_contract_id = fields.Many2one('rental.order.contract',
string='Initial Contract',
help='To add initial contract')
initial_start = fields.Datetime(string='Start Date', related='initial_contract_id.date_start',
help='To add the initial contract start date')
initial_end = fields.Datetime(string='End Date', related='initial_contract_id.date_end',
help='To add initial contract end date')
initial_qty = fields.Float(string='Quantity', related='initial_contract_id.qty',
help='To add initial contract product quantity')
partner_id = fields.Many2one('res.partner', string='Partner',
help='To store the partner of the corresponding sale order')
current_contract_id = fields.Many2one('rental.order.contract',
string='Current Contract',
help='To add the current contract')
current_start = fields.Datetime(string='Start Date', related='current_contract_id.date_start',
help='To add the current contract start date')
current_end = fields.Datetime(string='End Date', related='current_contract_id.date_end',
help='To add the current contract end date')
current_qty = fields.Float(string='Quantity', related='current_contract_id.qty',
help='To add the current contract product quantity')
last_renewal_time = fields.Datetime(string='Last Renewal Time',
help='To store the last renewal time of the contract')
is_rental = fields.Boolean(string='Rental',
help='To check the sale order line contains rental product or not')
rental = fields.Boolean(string='Rental', related='product_id.rental',
help='To check the sale order line product is rental product')
current_contract_values = fields.Boolean(string='Contract Value',
compute='_compute_current_contract_values',
help='To compute the contract values')
rental_status = fields.Selection(
[('new', 'New'), ('confirmed', 'Confirmed'),
('cancel', 'Cancelled')],
default='new', help='To show the rental status', string='Rental Status')
rental_contract_ids = fields.One2many('rental.order.contract',
'rental_order_id',
string='Rental Contract',
help='To Shows the rental contract')
@api.depends('rental_contract_ids')
def _compute_current_contract_values(self):
"""For fetching the current contract values to the sale order line form view"""
for rec in self:
rec.current_contract_values = False
try:
recs_sorted = \
rec.rental_contract_ids.sorted(key=lambda r: r.date_start)[0] if rec.rental_contract_ids.sorted(
key=lambda r: r.date_start) else False
rec.current_contract_values = True
for record in rec.rental_contract_ids:
if record.date_start and record.date_end:
if record.date_start.date() <= fields.date.today() <= record.date_end.date():
rec.current_contract_id = record.id
rec.last_renewal_time = record.date_end
if recs_sorted:
rec.initial_contract_id = recs_sorted.id
except:
continue
@api.onchange('initial_start', 'initial_end', 'current_start', 'current_end')
def _onchange_initial_start(self):
"""Checking the end date is less than start date"""
if self.initial_start and self.initial_end and self.initial_start > self.initial_end:
raise UserError(
_('The end date must be after or the same as the start date'))
if self.current_start and self.current_end and self.current_start > self.current_end:
raise UserError(
_('The end date must be after or the same as the start date'))
@api.model
def create(self, vals):
""" Function for adding reference number to the sale order line """
if vals.get('reference_no', _('New')) == _('New'):
vals['reference_no'] = self.env['ir.sequence'].next_by_code(
'sale.order.line') or _('New')
return super(SaleOrderLine, self).create(vals)
def action_confirm(self):
""" Button function that confirm the order line products """
self.rental_status = 'confirmed'
def action_cancel(self):
""" Button function that cancel the order """
self.rental_status = 'cancel'
def action_renew_contract(self):
"""For renewing the rental order"""
self.ensure_one()
vals = []
if self.rental_contract_ids:
vals = [{
'partner_id': rec.partner_id.id,
'product_id': rec.product_id.id,
'rental_order_id': rec.rental_order_id.id,
'sale_order_id': rec.sale_order_id.id,
'qty': rec.qty,
'unit_price': rec.unit_price,
} for rec in self.rental_contract_ids]
contract_rec = self.env['rental.order.contract'].create(vals)
return {
'name': _('Renew Rental Order'),
'view_mode': 'form',
'res_model': 'rental.order.contract',
'type': 'ir.actions.act_window',
'target': 'new',
'res_id': contract_rec[0].id if contract_rec else False,
}

30
odoo_rental_sales/models/uom.py

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class Uom(models.Model):
"""Created the class for inheriting the model uom """
_inherit = 'uom.uom'
is_rental = fields.Boolean(string='Rental',
help='Check the uom is for rental product')

9
odoo_rental_sales/security/ir.model.access.csv

@ -0,0 +1,9 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_rental_product_agreement_manger,access.rental.product.agreement,model_rental_product_agreement,group_rental_sales_manager,1,1,1,1
access_rental_product_agreement_user,access.rental.product.agreement,model_rental_product_agreement,base.group_user,1,1,0,0
access_rental_product_category_manger,access.rental.product.category,model_rental_product_category,group_rental_sales_manager,1,1,1,1
access_rental_product_category_user,access.rental.product.category,model_rental_product_category,base.group_user,1,1,0,0
access_rental_product_manger,access.rental.product,model_rental_product,group_rental_sales_manager,1,1,1,1
access_rental_product_user,access.rental.product,model_rental_product,base.group_user,1,1,1,0
access_rental_order_contract_manger,access.rental.order.contract,model_rental_order_contract,group_rental_sales_manager,1,1,1,1
access_rental_order_contract_user,access.rental.order.contract,model_rental_order_contract,base.group_user,1,1,1,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_rental_product_agreement_manger access.rental.product.agreement model_rental_product_agreement group_rental_sales_manager 1 1 1 1
3 access_rental_product_agreement_user access.rental.product.agreement model_rental_product_agreement base.group_user 1 1 0 0
4 access_rental_product_category_manger access.rental.product.category model_rental_product_category group_rental_sales_manager 1 1 1 1
5 access_rental_product_category_user access.rental.product.category model_rental_product_category base.group_user 1 1 0 0
6 access_rental_product_manger access.rental.product model_rental_product group_rental_sales_manager 1 1 1 1
7 access_rental_product_user access.rental.product model_rental_product base.group_user 1 1 1 0
8 access_rental_order_contract_manger access.rental.order.contract model_rental_order_contract group_rental_sales_manager 1 1 1 1
9 access_rental_order_contract_user access.rental.order.contract model_rental_order_contract base.group_user 1 1 1 0

23
odoo_rental_sales/security/odoo_rental_sales_groups.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Rental security group -->
<record model="ir.module.category" id="module_rental_category">
<field name="name">Rental Sales</field>
<field name="description">Helps you handle your rental security.</field>
<field name="sequence">9</field>
</record>
<record id="group_rental_sales_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="module_rental_category"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="group_rental_sales_manager" model="res.groups">
<field name="name">Rental Sales Administrator</field>
<field name="category_id" ref="module_rental_category"/>
<field name="implied_ids" eval="[(4, ref('group_rental_sales_user'))]"/>
<field name="users" eval="[(4, ref('base.user_admin'))]"/>
</record>
</odoo>

11
odoo_rental_sales/security/rental_order_contract_security.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!-- Multi company rule for rental contract-->
<record id="rental_order_contract_rule_company" model="ir.rule">
<field name="name">Rental Order Contract Multi-Company</field>
<field name="model_id" ref="model_rental_order_contract"/>
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
</data>
</odoo>

BIN
odoo_rental_sales/static/description/assets/icons/capture (1).png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
odoo_rental_sales/static/description/assets/icons/img.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
odoo_rental_sales/static/description/assets/icons/photo-capture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
odoo_rental_sales/static/description/assets/misc/Cybrosys R.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
odoo_rental_sales/static/description/assets/modules/4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
odoo_rental_sales/static/description/assets/modules/6.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
odoo_rental_sales/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

BIN
odoo_rental_sales/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
odoo_rental_sales/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

816
odoo_rental_sales/static/description/index.html

@ -0,0 +1,816 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Odoo App 3 Index</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;">
Odoo Rental Sales
</h1>
<p class="my-3 mb-4"
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;">Helps to
Manage the Rental Orders.
</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;">Available in Odoo 17.0 Community.</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 The Rental Orders By Using
This Module.</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;">Manage the Rental Contract and renew
Contract.</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;">Creating Rental Category, Rental Products,
Unit of Measures.</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/1.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">
In the Rental Sales menu, users have access to all existing Sale Orders and can also
create new Sale Orders directly from there.</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/2.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">
On the Sale Order form there is a button labeled 'Add Rental Product'. By clicking
on that button we can add a Rental Product on that sale order line and confirm the sale 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/6.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">
Rental Contract.</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/7.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">
Here we can see the complete details of the Rental Contract.</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/3.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">
From the Rental Order menu, we can see all Rental Orders.</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/4.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">
By selecting any Rental Order we can see complete details of that Rental 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/8.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">
Rental Products.</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/9.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">
We can choose whether the product is available for Rental or not. Also, able to add
Product Agreement, Security Amount and Rental Category for that 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/10.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">
From the Rental Category menu, we can create new Rental Product Categories.</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/11.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">
From the Rental Agreement menu, we can create new Rental Product Agreements.</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>Available in Odoo 17.0 Community.
</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 The Rental Orders By Using This Module.
</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>Manage the Rental Contract and renew Contract.
</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>Creating Rental Category, Rental Products, Unit of Measures.
</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
17.0.1.0.0</span><span
class="px-2">|</span><span
style="color: #714B67;font-weight: 600;">Released on:04 April 2024</span>
</div>
<p class="m-0"
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;">Odoo Rental Sales. </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-md-4">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/product_barcode/"
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.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Product Barcode Generator</p>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/export_stockinfo_xls/"
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.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Export Product Stock In Excel</p>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/inventory_barcode_scanning/"
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.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Barcode Scanning In Inventory</p>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="row p-4">
<div class="col-md-4">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/whatsapp_redirect/"
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">
Send Whatsapp Message</p>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/invoice_format_editor/"
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.png"
alt="" width="100%"
height="auto">
</div>
<p class="text-center pt-2 text-black font-weight-bold">
Invoice Format Editor</p>
</div>
</a>
</div>
</div>
<div class="col-md-4">
<div class="p-3">
<a href="https://apps.odoo.com/apps/modules/17.0/mobile_service_shop/"
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">
Mobile Service Management</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>

25
odoo_rental_sales/views/odoo_rental_sales_menus.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Rental menus-->
<menuitem id="rental_menu_root"
name="Rental"/>
<menuitem id="rental_sales_menu"
name="Rental Sales"
parent="rental_menu_root"
sequence="1"/>
<menuitem id="rental_products_menu"
name="Products"
parent="rental_menu_root"
sequence="2"
action="odoo_rental_sales.product_template_kanban_view"/>
<menuitem id="rental_configuration_menu"
name="Configuration"
parent="rental_menu_root"
sequence="3"/>
<menuitem id="rental_conf_settings_menu"
name="Settings"
action="sale.action_sale_config_settings"
parent="odoo_rental_sales.rental_configuration_menu"
sequence="1"/>
</odoo>

54
odoo_rental_sales/views/product_product_views.xml

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--Product search view for add new filter-->
<record id="product_product_view_search" model="ir.ui.view">
<field name="name">product.product.view.search.inherit.odoo.rental.sales</field>
<field name="model">product.product</field>
<field name="arch" type="xml">
<search>
<filter string="Rental" name="rental"
domain="[('rental', '=', True)]"/>
</search>
</field>
</record>
<!--Product template kanban view for adding new context-->
<record id="product_template_kanban_view" model="ir.actions.act_window">
<field name="name">Rental Products</field>
<field name="res_model">product.product</field>
<field name="view_mode">kanban,tree,form</field>
<field name="view_id" ref="product.product_template_kanban_view"/>
<field name="search_view_id" ref="product_product_view_search"/>
<field name="context">{"search_default_rental":1, "default_rental": True}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
</p>
</field>
</record>
<!--Inherit product form view to add new fields and notebook-->
<record id="product_normal_form_view" model="ir.ui.view">
<field name="name">product.product.view.form.inherit.odoo.rental.sales</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='options']" position="inside">
<span class="d-inline-block">
<field name="rental"/>
<label for="rental"/>
</span>
</xpath>
<xpath expr="//notebook[last()]" position="inside">
<page string="Rental" name="rental" invisible="rental == False">
<group>
<group>
<field name="category_id"/>
<field name="security_amount"/>
</group>
<group>
<field name="product_agreement_id"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
</odoo>

86
odoo_rental_sales/views/rental_order_contract_views.xml

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Rental order contract tree view-->
<record id="rental_order_contract_view_tree" model="ir.ui.view">
<field name="name">rental.order.contract.view.tree</field>
<field name="model">rental.order.contract</field>
<field name="arch" type="xml">
<tree>
<field name="reference_no"/>
<field name="partner_id"/>
<field name="product_id"/>
<field name="company_id" invisible="1"/>
<field name="qty"/>
<field name="unit_price"/>
<field name="date_start"/>
<field name="date_end"/>
<field name="rental_order_id"/>
<field name="sale_order_id"/>
<field name="contract_status"/>
</tree>
</field>
</record>
<!--Rental order contract form view-->
<record id="rental_contract_view_form" model="ir.ui.view">
<field name="name">rental.order.contract.view.form</field>
<field name="model">rental.order.contract</field>
<field name="arch" type="xml">
<form>
<header>
<button string="Confirm" name="action_confirm_contract"
class="oe_highlight"
type="object" invisible="contract_status != 'new'"/>
<button string="Cancel" name="action_cancel_contract"
class="btn-primary"
type="object"
invisible="contract_status == 'cancel'"/>
<button string="Reset To Draft" name="action_reset_contract"
class="btn-primary"
type="object" invisible="contract_status != 'cancel'"/>
<field name="contract_status" widget="statusbar"
nolabel="1"/>
</header>
<sheet>
<div class="oe_title">
<h1>
<field name="reference_no"/>
</h1>
</div>
<group>
<group>
<field name="partner_id" readonly="contract_status != 'new'"/>
<field name="product_id" readonly="contract_status != 'new'"/>
<field name="company_id" readonly="contract_status != 'new'"/>
<field name="qty" readonly="contract_status != 'new'"/>
<field name="unit_price" readonly="contract_status != 'new'"/>
</group>
<group>
<field name="create_date" readonly="contract_status != 'new'"/>
<field name="date_start" readonly="contract_status != 'new'"/>
<field name="date_end" readonly="contract_status != 'new'"/>
<field name="rental_order_id" readonly="contract_status != 'new'"/>
<field name="sale_order_id" readonly="contract_status != 'new'"/>
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<!-- Rental order contract action-->
<record id="rental_order_contract_action" model="ir.actions.act_window">
<field name="name">Rental Contract</field>
<field name="res_model">rental.order.contract</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Rental contract menu-->
<menuitem id="rental_order_contract_menu"
name="Rental Contract"
parent="odoo_rental_sales.rental_sales_menu"
action="rental_order_contract_action"/>
</odoo>

42
odoo_rental_sales/views/rental_product_agreement_views.xml

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Rental product agreement form view-->
<record id="rental_product_agreement_view_form" model="ir.ui.view">
<field name="name">rental.product.agreement.view.form</field>
<field name="model">rental.product.agreement</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="name"/>
<field name="agreement_file"/>
</group>
<group>
<field name="sequence"/>
</group>
<label for="description"/>
<field name="description"/>
</group>
</sheet>
</form>
</field>
</record>
<!--Rental product agreement action-->
<record id='rental_product_agreement_action' model='ir.actions.act_window'>
<field name="name">Rental Product Agreement</field>
<field name="res_model">rental.product.agreement</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new rental agreement
</p>
</field>
</record>
<!-- Rental agreement menu item-->
<menuitem id="rental_product_agreement_menu"
name="Rental Agreement"
action="rental_product_agreement_action"
parent="odoo_rental_sales.rental_configuration_menu"/>
</odoo>

40
odoo_rental_sales/views/rental_product_category_views.xml

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Rental product category form view-->
<record id="rental_product_category_view_form" model="ir.ui.view">
<field name="name">rental.product.category.view.form</field>
<field name="model">rental.product.category</field>
<field name="arch" type="xml">
<form>
<sheet>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" string="Products" name="action_view_rental_products"
icon="fa-th-list" type="object"/>
</div>
<group>
<group>
<field name="name"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!--Rental product category action-->
<record id='rental_product_category_action' model='ir.actions.act_window'>
<field name="name">Rental Product Category</field>
<field name="res_model">rental.product.category</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new rental product category
</p>
</field>
</record>
<!-- Rental category menu item-->
<menuitem id="rental_product_category_menu"
name="Rental Category"
action="rental_product_category_action"
parent="odoo_rental_sales.rental_configuration_menu"/>
</odoo>

112
odoo_rental_sales/views/sale_order_views.xml

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--Sale order view form for adding a new button-->
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit.odoo.rental.sales</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='order_lines']//field[@name='order_line']"
position="before">
<button name="%(rental_product_action)d" type="action"
class="btn-primary" string="Add Rental Product"/>
</xpath>
</field>
</record>
<!--Sale order line tree view inherited for adding the rental status-->
<record id="view_order_tree" model="ir.ui.view">
<field name="name">sale.order.view.tree.inherit.odoo.rental.sales</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_status']" position="after">
<field name="rental_status"/>
</xpath>
</field>
</record>
<!--Sale order line tree view for adding new fields-->
<record id="view_order_line_tree" model="ir.ui.view">
<field name="name">sale.order.line.view.tree.inherit.odoo.rental.sales</field>
<field name="model">sale.order.line</field>
<field name="inherit_id" ref="sale.view_order_line_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='price_subtotal']" position="after">
<field name="rental_status"/>
</xpath>
</field>
</record>
<!-- Inherited sale order tree view for add new domain-->
<record id="sale_order_line_tree_view_action" model="ir.actions.act_window">
<field name="name">Rental Order</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order.line</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('rental','=',True)]</field>
</record>
<!--Sale order line form view for adding buttons and fields-->
<record id="sale_order_line_view_form_readonly" model="ir.ui.view">
<field name="name">sale.order.line.view.form.inherit.odoo.rental.sales</field>
<field name="model">sale.order.line</field>
<field name="inherit_id" ref="sale.sale_order_line_view_form_readonly"/>
<field name="arch" type="xml">
<xpath expr="//sheet" position='before'>
<header>
<button string="Confirm" name="action_confirm"
class="oe_highlight"
type="object"
invisible="rental_status != 'new'"/>
<button string="Cancel" name="action_cancel"
class="btn-primary"
type="object" invisible="rental_status == 'cancel'"/>
<button string="Renew Contract" class="oe_highlight"
name="action_renew_contract" type="object"
invisible="rental_status == 'cancel'"/>
<field name="rental_status" widget="statusbar" nolabel="1"/>
</header>
</xpath>
<xpath expr="//group" position="inside">
<group string="Current Contract" name="current_contract"
invisible="rental_status == 'new'">
<field name="current_start"/>
<field name="current_end"/>
<field name="current_qty"/>
<field name="current_contract_id"/>
<field name="last_renewal_time"/>
</group>
<group string="Initial Contract" name="initial_contract"
invisible="rental_status == 'new'">
<field name="initial_start"/>
<field name="initial_end"/>
<field name="initial_qty"/>
<field name="initial_contract_id"/>
<field name="current_contract_values" invisible="1"/>
</group>
</xpath>
<xpath expr="//sheet" position='inside'>
<notebook>
<page string="Rental Contract">
<field name="rental_contract_ids">
<tree>
<field name="reference_no"/>
<field name="date_start"/>
<field name="date_end"/>
<field name="contract_status"/>
</tree>
</field>
</page>
</notebook>
</xpath>
</field>
</record>
<!--Rental order menu items-->
<menuitem id="sale_order_menu"
name="Sales Order"
action="sale.action_orders"
parent="odoo_rental_sales.rental_sales_menu"/>
<menuitem id="rental_order_menu"
name="Rental Order"
parent="odoo_rental_sales.rental_sales_menu"
action="sale_order_line_tree_view_action"/>
</odoo>

57
odoo_rental_sales/views/uom_views.xml

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--UOM search view for adding new filter-->
<record id="rental_uom_filter" model="ir.ui.view">
<field name="name">uom.uom.filter</field>
<field name="model">uom.uom</field>
<field name="arch" type="xml">
<search>
<filter string="Rental" name="rental" domain="[('is_rental', '=',True)]"/>
</search>
</field>
</record>
<!--Inherit UOM form view for add new fields-->
<record id="product_uom_form_view" model="ir.ui.view">
<field name="name">uom.uom.view.form.inherit.odoo.rental.sales</field>
<field name="model">uom.uom</field>
<field name="inherit_id" ref="uom.product_uom_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='rounding']" position="after">
<field name="is_rental"/>
</xpath>
</field>
</record>
<!--UOM tree view to adding a field on it-->
<record id="product_uom_tree_view" model="ir.ui.view">
<field name="name">uom.uom.view.tree.inherit.odoo.rental.sales</field>
<field name="model">uom.uom</field>
<field name="inherit_id" ref="uom.product_uom_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='uom_type']" position="after">
<field name="is_rental"/>
</xpath>
</field>
</record>
<!--Inherit UOM action for passing context-->
<record id="odoo_rental_sales.uom_uom_view_search" model="ir.actions.act_window">
<field name="name">Rental UOM</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">uom.uom</field>
<field name="view_mode">tree,form,activity</field>
<field name="context">{'search_default_rental': 1}</field>
<field name="view_id" ref="uom.uom_uom_view_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new rental uom
</p>
</field>
</record>
<!--Rental conf uom menu-->
<menuitem id="rental_conf_uom_menu"
name="Rental UOM"
parent="odoo_rental_sales.rental_configuration_menu"
action="odoo_rental_sales.uom_uom_view_search"/>
</odoo>

22
odoo_rental_sales/wizard/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import rental_product

45
odoo_rental_sales/wizard/rental_product.py

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class RentalProduct(models.TransientModel):
"""Created the class for creating a new transient model"""
_name = 'rental.product'
_description = "Rental Product Wizard"
_rec_name = 'rental_product_id'
rental_product_id = fields.Many2one('product.product',
domain=[('rental', '=', True)], string='Product',
help='To select the rental product')
unit_price = fields.Float(string='Unit Price', related='rental_product_id.lst_price',
help='To add the unit price of the product')
qty = fields.Float(string='Quantity', help='Quantity of the rental product', default=1.0)
def add_rental_product(self):
""" Function for adding the rental product to the sale order line """
active = self.env.context.get('active_id')
sale = self.env['sale.order'].browse(active)
self.env['sale.order.line'].create({
'product_id': self.rental_product_id.id,
'order_id': sale.id,
'product_uom_qty': self.qty})

34
odoo_rental_sales/wizard/rental_product_views.xml

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Rental product wizard form view-->
<record id="rental_product_view_form" model="ir.ui.view">
<field name="name">rental.product.view.form</field>
<field name="model">rental.product</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="rental_product_id" context="{'default_rental': True}"/>
<field name="unit_price"/>
<field name="qty"/>
</group>
</group>
<footer>
<button special="cancel" string="Cancel" class="btn-primary"/>
<button name="add_rental_product" string="Add Product" type="object" class="btn-primary"/>
</footer>
</sheet>
</form>
</field>
</record>
<!--Rental product wizard action-->
<record id="rental_product_action" model="ir.actions.act_window">
<field name="name">Rental Product</field>
<field name="res_model">rental.product</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>
Loading…
Cancel
Save