diff --git a/odoo_rental_sales/README.rst b/odoo_rental_sales/README.rst new file mode 100755 index 000000000..eeec0a30f --- /dev/null +++ b/odoo_rental_sales/README.rst @@ -0,0 +1,51 @@ +.. 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/15.0/setup/install.html +- Install our custom addon + +Configuration +============= +- Additional configuration not required + +License +------- +General Public License, Version 3 (AGPL-3). +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V15) - Aswathi PN, 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: ``__ diff --git a/odoo_rental_sales/__init__.py b/odoo_rental_sales/__init__.py new file mode 100755 index 000000000..fc918fe61 --- /dev/null +++ b/odoo_rental_sales/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from . import models +from . import wizard diff --git a/odoo_rental_sales/__manifest__.py b/odoo_rental_sales/__manifest__.py new file mode 100755 index 000000000..1667d2289 --- /dev/null +++ b/odoo_rental_sales/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +{ + 'name': 'Odoo Rental Sales', + 'version': '15.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'], + 'data': [ + 'security/odoo_rental_sales_security.xml', + 'security/ir.model.access.csv', + 'data/ir_sequence_data.xml', + 'data/ir_cron_data.xml', + 'wizard/rental_product_views.xml', + 'views/rental_order_contract_views.xml', + 'views/product_views.xml', + 'views/rental_product_category_views.xml', + 'views/rental_product_agreement_views.xml', + 'views/uom_views.xml', + 'views/rental_menu_views.xml', + 'views/sale_order_views.xml', + 'views/rental_conf_menu_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/odoo_rental_sales/data/ir_cron_data.xml b/odoo_rental_sales/data/ir_cron_data.xml new file mode 100755 index 000000000..60acf2ccc --- /dev/null +++ b/odoo_rental_sales/data/ir_cron_data.xml @@ -0,0 +1,16 @@ + + + + + + Rental Scheduler Recurring Activity + + code + model._contract_expiration() + + 1 + days + -1 + + + diff --git a/odoo_rental_sales/data/ir_sequence_data.xml b/odoo_rental_sales/data/ir_sequence_data.xml new file mode 100755 index 000000000..da6f8954b --- /dev/null +++ b/odoo_rental_sales/data/ir_sequence_data.xml @@ -0,0 +1,21 @@ + + + + + + Order Line Sequence + sale.order.line + RO + 5 + + + + + Rental Contract Sequence + rental.order.contract + ROC + 5 + + + + diff --git a/odoo_rental_sales/doc/RELEASE_NOTES.md b/odoo_rental_sales/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..3cb0ca0a1 --- /dev/null +++ b/odoo_rental_sales/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 25.01.2024 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Odoo Rental Sales diff --git a/odoo_rental_sales/models/__init__.py b/odoo_rental_sales/models/__init__.py new file mode 100755 index 000000000..109749f1a --- /dev/null +++ b/odoo_rental_sales/models/__init__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +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_uom diff --git a/odoo_rental_sales/models/product_product.py b/odoo_rental_sales/models/product_product.py new file mode 100755 index 000000000..4969cd1e1 --- /dev/null +++ b/odoo_rental_sales/models/product_product.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from odoo import fields, models + + +class ProductProduct(models.Model): + """Adding some new fields to the product model""" + + _inherit = 'product.product' + + rental = fields.Boolean(string='Rental', + help='To check the product is rental or not') + category_id = fields.Many2one('rental.product.category', + string='Rental Category', + help='To add rental product category') + security_amount = fields.Monetary(string='Security Amount', + help='To add the security amount of the ' + 'product') + product_agreement_id = fields.Many2one('rental.product.agreement', + string='Product Agreement', + help='To add the product agreement') diff --git a/odoo_rental_sales/models/rental_order_contract.py b/odoo_rental_sales/models/rental_order_contract.py new file mode 100755 index 000000000..ce6007025 --- /dev/null +++ b/odoo_rental_sales/models/rental_order_contract.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from odoo import api, fields, models, _ +from odoo.exceptions import UserError + + +class RentalOrderContract(models.Model): + """Model for showing the rental order contracts""" + _name = "rental.order.contract" + _description = 'Rental Order Contract' + _rec_name = 'reference_no' + + reference_no = fields.Char(string='Reference', copy=False, + readonly=True, default=lambda self: _('New'), + help='To store the reference number to the ' + 'rental contract') + partner_id = fields.Many2one('res.partner', string='Customer', + help='To add the customer of the rental order') + product_id = fields.Many2one('product.product', string='Rental Product', + help='To add the rental product') + qty = fields.Float(string='Quantity', + help='To add the rental product 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', + help='To add the unit price of the product') + date_start = fields.Datetime(string='Start Date', + help='Contract start date') + date_end = fields.Datetime(string='End Date', help='Contract end date') + sale_order_id = fields.Many2one('sale.order', string='Sale Order', + help='Sale of the contract') + rental_order_id = fields.Many2one('sale.order.line', string='Rental Order', + help='Rental order of the contract') + company_id = fields.Many2one('res.company', required=True, + default=lambda self: self.env.company, + help='Set the company') + contract_status = fields.Selection( + [('new', 'New'), ('confirmed', 'Confirmed'), ('expired', 'Expired'), + ('cancel', 'Cancelled')], + default='new', string='Contract Status', + help='To show the contract status') + + @api.onchange('date_start', 'date_end') + def _onchange_date_start(self): + """Checking whether the end date is less than or equal to the 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')) + + 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: + if rec.date_end.date() < fields.date.today(): + rec.contract_status = 'expired' + + def action_confirm_contract(self): + """ Function for contract confirmation""" + self.contract_status = 'confirmed' + + def action_cancel_contract(self): + """ Function for cancel contract""" + self.contract_status = 'cancel' + + @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) diff --git a/odoo_rental_sales/models/rental_product_agreement.py b/odoo_rental_sales/models/rental_product_agreement.py new file mode 100755 index 000000000..0fcb397cb --- /dev/null +++ b/odoo_rental_sales/models/rental_product_agreement.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from odoo import fields, models + + +class RentalProductAgreement(models.Model): + """Model for showing the rental agreement details""" + _name = 'rental.product.agreement' + _description = 'Rental Product Agreement' + + name = fields.Char(string='Name', required=True, + help='Name of rental product agreement') + sequence = fields.Integer(string='Sequence', required=True, + help='Sequence of rental product Agreement') + description = fields.Text(string='Description', + help='Description of rental product agreement') + agreement_file = fields.Binary(string='Product Agreement', + help='Rental product agreement file') diff --git a/odoo_rental_sales/models/rental_product_category.py b/odoo_rental_sales/models/rental_product_category.py new file mode 100755 index 000000000..70b4ad1f0 --- /dev/null +++ b/odoo_rental_sales/models/rental_product_category.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from odoo import fields, models + + +class RentalProductCategory(models.Model): + """Model for configuring the rental product category""" + + _name = 'rental.product.category' + _description = 'Rental Product Categories' + + name = fields.Char(string='Name', required=True, + help='Name of rental product category') + + def action_view_rental_products(self): + """Showing the products under the rental category + + :param : + :return: tree view that 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}" + } diff --git a/odoo_rental_sales/models/sale_order.py b/odoo_rental_sales/models/sale_order.py new file mode 100755 index 000000000..f2638af05 --- /dev/null +++ b/odoo_rental_sales/models/sale_order.py @@ -0,0 +1,184 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from odoo import api, fields, models, _ +from odoo.exceptions import UserError + + +class SaleOrder(models.Model): + """Inherit the sale order to add new features""" + _inherit = 'sale.order' + + rental_status = fields.Selection( + [('new', 'New'), ('confirmed', 'Confirmed'), + ('cancel', 'Cancelled')], + default='new', string='Rental Status', + help='To showing the rental status of the order') + + 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): + """Inherit sale order line to add contract details on the sale order line form view""" + _inherit = 'sale.order.line' + _rec_name = 'reference_no' + + reference_no = fields.Char(string='Reference', copy=False, + readonly=True, default=lambda self: _('New'), + help='Showing the reference number of 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', + help='Initial start date of Rental Order ' + 'Contract', + related='initial_contract_id.date_start') + initial_end = fields.Datetime(string='End Date', + help='Initial end date of Rental Order ' + 'Contract', + related='initial_contract_id.date_end') + initial_qty = fields.Float(string='Quantity', + help='Quantity of initial contract', + related='initial_contract_id.qty') + current_contract_id = fields.Many2one('rental.order.contract', + string='Current Contract', + help='To add the current contract') + partner_id = fields.Many2one('res.partner', string='Partner', + help='Partner of the corresponding sale order') + current_start = fields.Datetime(string='Start Date', + help='Current contract start date', + related='current_contract_id.date_start') + current_end = fields.Datetime(string='End Date', + help='Current contract end date', + related='current_contract_id.date_end') + current_qty = fields.Float(string='Quantity', + help='Current contract product quantity', + related='current_contract_id.qty') + last_renewal_time = fields.Datetime(string='Last Renewal Time', + help='Last Date contract Renewal') + is_rental = fields.Boolean(string='Is Rental', + help='To check the order is rental or not') + rental = fields.Boolean(string='Rental', related='product_id.rental', + help='To check the order line product is rental ' + 'or not') + current_contract_values = fields.Boolean(string='Initial', + compute='_compute_current_contract_values', + help='To Update the values') + rental_status = fields.Selection( + [('new', 'New'), ('confirmed', 'Confirmed'), + ('cancel', 'Cancelled')], + default='new', string='Rental Status', + help='To showing the rental status of the order') + rental_contract_ids = fields.One2many('rental.order.contract', + 'rental_order_id', + string='Rental Contract', + help='To showing the rental order ' + 'contract') + + 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 whether the end date is less than or equal to the 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): + """For adding references number to 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): + """ Function for confirm the order line""" + self.rental_status = 'confirmed' + + def action_cancel(self): + """ Function for cancel sale order """ + self.rental_status = 'cancel' + + def action_renew_contract(self): + """For renewing the rental order + :param : + :return: rental order renewing form view + """ + self.ensure_one() + vals = [] + for rec in self.rental_contract_ids[ + 0] if self.rental_contract_ids else '': + vals.append({ + '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, + }) + 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.id, + } diff --git a/odoo_rental_sales/models/uom_uom.py b/odoo_rental_sales/models/uom_uom.py new file mode 100755 index 000000000..c00f18b82 --- /dev/null +++ b/odoo_rental_sales/models/uom_uom.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Aswathi PN (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 . +# +################################################################################ +from odoo import fields, models + + +class UomUom(models.Model): + """Inherit uom model to add new field""" + _inherit = 'uom.uom' + + is_rental = fields.Boolean(string='Rental', + help='Check the uom is for rental or not') diff --git a/odoo_rental_sales/security/ir.model.access.csv b/odoo_rental_sales/security/ir.model.access.csv new file mode 100755 index 000000000..8ea327c2b --- /dev/null +++ b/odoo_rental_sales/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_rental_product_agreement_user,access.rental.product.agreement.user,model_rental_product_agreement,base.group_user,1,1,1,1 +access_rental_product_category_user,access.rental.product.category.user,model_rental_product_category,base.group_user,1,1,1,1 +access_rental_product_user,access.rental.product.user,model_rental_product,base.group_user,1,1,1,1 +access_rental_order_contract_user,access.rental.order.contract.user,model_rental_order_contract,base.group_user,1,1,1,1 diff --git a/odoo_rental_sales/security/odoo_rental_sales_security.xml b/odoo_rental_sales/security/odoo_rental_sales_security.xml new file mode 100755 index 000000000..f6c67f9be --- /dev/null +++ b/odoo_rental_sales/security/odoo_rental_sales_security.xml @@ -0,0 +1,9 @@ + + + + + Rental Order Contract Rule + + [('company_id', 'in', company_ids)] + + diff --git a/odoo_rental_sales/static/description/assets/icons/cogs.png b/odoo_rental_sales/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/cogs.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/consultation.png b/odoo_rental_sales/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/consultation.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/ecom-black.png b/odoo_rental_sales/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/ecom-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/education-black.png b/odoo_rental_sales/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/education-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/hotel-black.png b/odoo_rental_sales/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/hotel-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/license.png b/odoo_rental_sales/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/license.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/lifebuoy.png b/odoo_rental_sales/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/lifebuoy.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/logo.png b/odoo_rental_sales/static/description/assets/icons/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/logo.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/manufacturing-black.png b/odoo_rental_sales/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/manufacturing-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/pos-black.png b/odoo_rental_sales/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/pos-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/puzzle.png b/odoo_rental_sales/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/puzzle.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/restaurant-black.png b/odoo_rental_sales/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/restaurant-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/service-black.png b/odoo_rental_sales/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/service-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/trading-black.png b/odoo_rental_sales/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/trading-black.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/training.png b/odoo_rental_sales/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/training.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/update.png b/odoo_rental_sales/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/update.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/user.png b/odoo_rental_sales/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/user.png differ diff --git a/odoo_rental_sales/static/description/assets/icons/wrench.png b/odoo_rental_sales/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/odoo_rental_sales/static/description/assets/icons/wrench.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/categories.png b/odoo_rental_sales/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/categories.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/check-box.png b/odoo_rental_sales/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/check-box.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/compass.png b/odoo_rental_sales/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/compass.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/corporate.png b/odoo_rental_sales/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/corporate.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/customer-support.png b/odoo_rental_sales/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/customer-support.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/cybrosys-logo.png b/odoo_rental_sales/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/cybrosys-logo.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/features.png b/odoo_rental_sales/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/features.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/logo.png b/odoo_rental_sales/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/logo.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/pictures.png b/odoo_rental_sales/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/pictures.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/pie-chart.png b/odoo_rental_sales/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/pie-chart.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/right-arrow.png b/odoo_rental_sales/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/right-arrow.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/star.png b/odoo_rental_sales/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/star.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/support.png b/odoo_rental_sales/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/support.png differ diff --git a/odoo_rental_sales/static/description/assets/misc/whatsapp.png b/odoo_rental_sales/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/misc/whatsapp.png differ diff --git a/odoo_rental_sales/static/description/assets/modules/1.png b/odoo_rental_sales/static/description/assets/modules/1.png new file mode 100755 index 000000000..026ca78d3 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/modules/1.png differ diff --git a/odoo_rental_sales/static/description/assets/modules/2.png b/odoo_rental_sales/static/description/assets/modules/2.png new file mode 100755 index 000000000..72464b121 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/modules/2.png differ diff --git a/odoo_rental_sales/static/description/assets/modules/3.png b/odoo_rental_sales/static/description/assets/modules/3.png new file mode 100755 index 000000000..5238bdeab Binary files /dev/null and b/odoo_rental_sales/static/description/assets/modules/3.png differ diff --git a/odoo_rental_sales/static/description/assets/modules/4.png b/odoo_rental_sales/static/description/assets/modules/4.png new file mode 100755 index 000000000..5c8646fae Binary files /dev/null and b/odoo_rental_sales/static/description/assets/modules/4.png differ diff --git a/odoo_rental_sales/static/description/assets/modules/5.png b/odoo_rental_sales/static/description/assets/modules/5.png new file mode 100755 index 000000000..258bf213d Binary files /dev/null and b/odoo_rental_sales/static/description/assets/modules/5.png differ diff --git a/odoo_rental_sales/static/description/assets/modules/6.png b/odoo_rental_sales/static/description/assets/modules/6.png new file mode 100755 index 000000000..bf412a972 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/modules/6.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/hero.gif b/odoo_rental_sales/static/description/assets/screenshots/hero.gif new file mode 100755 index 000000000..497322fb1 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/hero.gif differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent1.png b/odoo_rental_sales/static/description/assets/screenshots/rent1.png new file mode 100755 index 000000000..dca046c35 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent1.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent10.png b/odoo_rental_sales/static/description/assets/screenshots/rent10.png new file mode 100755 index 000000000..185df2ae3 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent10.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent11.png b/odoo_rental_sales/static/description/assets/screenshots/rent11.png new file mode 100755 index 000000000..f9d8cc9af Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent11.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent2.png b/odoo_rental_sales/static/description/assets/screenshots/rent2.png new file mode 100755 index 000000000..4f269777b Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent2.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent3.png b/odoo_rental_sales/static/description/assets/screenshots/rent3.png new file mode 100755 index 000000000..272ad77a1 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent3.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent4.png b/odoo_rental_sales/static/description/assets/screenshots/rent4.png new file mode 100755 index 000000000..0d0b1d6b5 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent4.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent5.png b/odoo_rental_sales/static/description/assets/screenshots/rent5.png new file mode 100755 index 000000000..916789780 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent5.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent6.png b/odoo_rental_sales/static/description/assets/screenshots/rent6.png new file mode 100755 index 000000000..d07019cdf Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent6.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent7.png b/odoo_rental_sales/static/description/assets/screenshots/rent7.png new file mode 100755 index 000000000..bd3ef54f6 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent7.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent8.png b/odoo_rental_sales/static/description/assets/screenshots/rent8.png new file mode 100755 index 000000000..6577b238b Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent8.png differ diff --git a/odoo_rental_sales/static/description/assets/screenshots/rent9.png b/odoo_rental_sales/static/description/assets/screenshots/rent9.png new file mode 100755 index 000000000..7130765a2 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent9.png differ diff --git a/odoo_rental_sales/static/description/banner.png b/odoo_rental_sales/static/description/banner.png new file mode 100755 index 000000000..195ab8225 Binary files /dev/null and b/odoo_rental_sales/static/description/banner.png differ diff --git a/odoo_rental_sales/static/description/icon.png b/odoo_rental_sales/static/description/icon.png new file mode 100755 index 000000000..64e2bbe8e Binary files /dev/null and b/odoo_rental_sales/static/description/icon.png differ diff --git a/odoo_rental_sales/static/description/index.html b/odoo_rental_sales/static/description/index.html new file mode 100755 index 000000000..2952223ae --- /dev/null +++ b/odoo_rental_sales/static/description/index.html @@ -0,0 +1,751 @@ +
+ +
+ +
+
+ Community +
+ +
+
+ + + +
+
+
+

+ + Odoo Rental Sales

+

Helps to Manage the + Rental + Orders.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ The community version of Odoo currently doesn't provide a rental management system. + By using this module, you can effortlessly handle rental sales. + +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Available in Odoo 15.0 Community +
+
+
+
+ + User Can Manage The Rental Orders By Using This Module. +
+
+
+
+ + Manage the Rental Contract and renew Contract. +
+
+
+
+ + Creating Rental Category, Rental Products, Unit of Measures. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

Sale + order under + Rental menu. +

+

In the Rental Sales menu, users have access to all existing + Sale Orders and can also create new Sale Orders directly from there.

+ +
+ +
+
+ +
+

Add + Rental + products. +

+

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.

+ +
+ +
+
+ +
+

Rental + Order. +

+

From the Rental Order menu, we can see all Rental Orders.

+ +
+ +
+
+ +
+

Rental + Order + Details. +

+

By selecting any + Rental Order we can see complete details of that Rental Order.

+ +
+ +
+
+ +
+

Renew + Expired + Rental + Contract. +

+

We can renew an + expired Rental Order by clicking the 'RENEW CONTRACT' button and a new pop-up will appear.

+ +
+ +
+
+ +
+

Rental + Contract. +

+

Here you + can see + all + rental order contracts

+ +
+ +
+
+ +
+

Rental + Contract + Details. +

+

Here we can see + the complete details of the Rental Contract.

+ +
+ +
+
+ +
+

Rental + Products. +

+

+ +
+ +
+
+ +
+

Product + Details. +

+

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.

+ +
+ +
+
+ +
+

Rental + Category. +

+

From the Rental Category menu, we can create new Rental Product Categories.

+ +
+ +
+
+ +
+

Rental + Agreement. +

+

From the Rental Agreement menu, we can create new Rental Product Agreements.

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

+ Related + Products +

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

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/odoo_rental_sales/views/product_views.xml b/odoo_rental_sales/views/product_views.xml new file mode 100755 index 000000000..db5b2d11a --- /dev/null +++ b/odoo_rental_sales/views/product_views.xml @@ -0,0 +1,56 @@ + + + + + product.product.view.search.inherit.odoo.rental.sales + product.product + + + + + + + + + Products + ir.actions.act_window + product.product + kanban,tree,form,activity + {'search_default_rental': 1, "default_rental": True} + + + +

+ Create a new rental product +

+
+
+ + + product.product.view.form.inherit.odoo.rental.sales + product.product + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/odoo_rental_sales/views/rental_conf_menu_views.xml b/odoo_rental_sales/views/rental_conf_menu_views.xml new file mode 100755 index 000000000..c639e26ab --- /dev/null +++ b/odoo_rental_sales/views/rental_conf_menu_views.xml @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/odoo_rental_sales/views/rental_menu_views.xml b/odoo_rental_sales/views/rental_menu_views.xml new file mode 100755 index 000000000..3733081b9 --- /dev/null +++ b/odoo_rental_sales/views/rental_menu_views.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/odoo_rental_sales/views/rental_order_contract_views.xml b/odoo_rental_sales/views/rental_order_contract_views.xml new file mode 100755 index 000000000..9b034fa34 --- /dev/null +++ b/odoo_rental_sales/views/rental_order_contract_views.xml @@ -0,0 +1,69 @@ + + + + + rental.order.contract.view.tree + rental.order.contract + + + + + + + + + + + + + + + + + + + rental.order.contract.view.form + rental.order.contract + +
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ + + Rental Contract + rental.order.contract + tree,form + +
diff --git a/odoo_rental_sales/views/rental_product_agreement_views.xml b/odoo_rental_sales/views/rental_product_agreement_views.xml new file mode 100755 index 000000000..3f520a0df --- /dev/null +++ b/odoo_rental_sales/views/rental_product_agreement_views.xml @@ -0,0 +1,36 @@ + + + + + rental.product.agreement.view.form + rental.product.agreement + +
+ + + + + + + + + + + +
+
+
+ + + Rental Product Agreement + rental.product.agreement + tree,form + +

+ Create a new rental agreement +

+
+
+
diff --git a/odoo_rental_sales/views/rental_product_category_views.xml b/odoo_rental_sales/views/rental_product_category_views.xml new file mode 100755 index 000000000..4549cf074 --- /dev/null +++ b/odoo_rental_sales/views/rental_product_category_views.xml @@ -0,0 +1,36 @@ + + + + + rental.product.category.view.form + rental.product.category + +
+ +
+
+ + + + + +
+
+
+
+ + + Rental Product Category + rental.product.category + tree,form + +

+ Create a new rental product category +

+
+
+
diff --git a/odoo_rental_sales/views/sale_order_views.xml b/odoo_rental_sales/views/sale_order_views.xml new file mode 100755 index 000000000..917c05b69 --- /dev/null +++ b/odoo_rental_sales/views/sale_order_views.xml @@ -0,0 +1,115 @@ + + + + + sale.order.view.form.inherit.odoo.rental.sales + sale.order + + + +