diff --git a/odoo_rental_sales/README.rst b/odoo_rental_sales/README.rst new file mode 100755 index 000000000..151d2d51a --- /dev/null +++ b/odoo_rental_sales/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +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/16.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 `__ + +Credits +------- +Developer: (V16) 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..ce93dfb64 --- /dev/null +++ b/odoo_rental_sales/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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..60004825b --- /dev/null +++ b/odoo_rental_sales/__manifest__.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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': '16.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/ir.model.access.csv', + 'data/ir_sequence_data.xml', + 'data/ir_corn_data.xml', + 'wizard/rental_product_views.xml', + 'views/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.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/odoo_rental_sales/data/ir_corn_data.xml b/odoo_rental_sales/data/ir_corn_data.xml new file mode 100755 index 000000000..71cfc042e --- /dev/null +++ b/odoo_rental_sales/data/ir_corn_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..47e46607d --- /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..eb1727f2f --- /dev/null +++ b/odoo_rental_sales/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 17.02.2024 +#### Version 16.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..119f0debb --- /dev/null +++ b/odoo_rental_sales/models/__init__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 +from . import rental_order_contract +from . import rental_product_agreement +from . import rental_product_category +from . import sale_order +from . import uom diff --git a/odoo_rental_sales/models/product.py b/odoo_rental_sales/models/product.py new file mode 100755 index 000000000..3df65562c --- /dev/null +++ b/odoo_rental_sales/models/product.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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): + """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') 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..5ab8f20d5 --- /dev/null +++ b/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(). +# 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): + """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' 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..26e771d9f --- /dev/null +++ b/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(). +# 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): + """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') 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..f1e6a63e9 --- /dev/null +++ b/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(). +# 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): + """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}" + } diff --git a/odoo_rental_sales/models/sale_order.py b/odoo_rental_sales/models/sale_order.py new file mode 100755 index 000000000..6248999c8 --- /dev/null +++ b/odoo_rental_sales/models/sale_order.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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): + """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, + } diff --git a/odoo_rental_sales/models/uom.py b/odoo_rental_sales/models/uom.py new file mode 100755 index 000000000..3a2c31a4b --- /dev/null +++ b/odoo_rental_sales/models/uom.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-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 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') 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..3584eb57b --- /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,access.rental.product.agreement,model_rental_product_agreement,base.group_user,1,1,1,1 +access_rental_product_category,access.rental.product.category,model_rental_product_category,base.group_user,1,1,1,1 +access_rental_product,access.rental.product,model_rental_product,base.group_user,1,1,1,1 +access_rental_order_contract,access.rental.order.contract,model_rental_order_contract,base.group_user,1,1,1,1 diff --git a/odoo_rental_sales/security/rental_order_contract_security.xml b/odoo_rental_sales/security/rental_order_contract_security.xml new file mode 100755 index 000000000..be3fd50b2 --- /dev/null +++ b/odoo_rental_sales/security/rental_order_contract_security.xml @@ -0,0 +1,11 @@ + + + + + + Rental Order Contract Multi-Company + + [('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/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..05c8b4a69 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..38ea1f663 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..89ff6c635 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..dcbd0cb06 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..d1d3775d6 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..17c14989e 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..20c11a28e 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..26b2d9596 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..0b0748b75 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..366afbad0 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/rent123.png b/odoo_rental_sales/static/description/assets/screenshots/rent123.png new file mode 100644 index 000000000..ff12400a1 Binary files /dev/null and b/odoo_rental_sales/static/description/assets/screenshots/rent123.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 100644 index 000000000..8cf27e884 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..0a5b97981 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..776d5e577 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/rent6.png b/odoo_rental_sales/static/description/assets/screenshots/rent6.png new file mode 100755 index 000000000..db929e828 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..361a3837e 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 100644 index 000000000..e68a89950 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 100644 index 000000000..7ed2dc20a 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..2d581eb05 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..beea63f4c 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..7a92befcc --- /dev/null +++ b/odoo_rental_sales/static/description/index.html @@ -0,0 +1,720 @@ +
+ +
+ ` +
+
+ 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 16.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 +

+
+
+
+ +
+

Sales 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. +

+

+ +
+ +
+
+ +
+

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/odoo_rental_sales_menus.xml b/odoo_rental_sales/views/odoo_rental_sales_menus.xml new file mode 100755 index 000000000..a7e8549bd --- /dev/null +++ b/odoo_rental_sales/views/odoo_rental_sales_menus.xml @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/odoo_rental_sales/views/product_views.xml b/odoo_rental_sales/views/product_views.xml new file mode 100755 index 000000000..ad6db6270 --- /dev/null +++ b/odoo_rental_sales/views/product_views.xml @@ -0,0 +1,54 @@ + + + + + product.product.view.search.inherit.odoo.rental.sales + product.product + + + + + + + + + Rental Products + product.product + kanban,tree,form + + + {"search_default_rental":1, "default_rental": True} + +

+

+
+
+ + + product.product.view.form.inherit.odoo.rental.sales + product.product + + + + + + + + + + + + + + + + + + + + + + +
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..5c02703b8 --- /dev/null +++ b/odoo_rental_sales/views/rental_order_contract_views.xml @@ -0,0 +1,88 @@ + + + + + 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..e5a1717c5 --- /dev/null +++ b/odoo_rental_sales/views/rental_product_agreement_views.xml @@ -0,0 +1,42 @@ + + + + + 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..b8cafd610 --- /dev/null +++ b/odoo_rental_sales/views/rental_product_category_views.xml @@ -0,0 +1,40 @@ + + + + + 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..6161656dc --- /dev/null +++ b/odoo_rental_sales/views/sale_order_views.xml @@ -0,0 +1,113 @@ + + + + + sale.order.view.form.inherit.odoo.rental.sales + sale.order + + + +