@ -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 <https://cybrosys.com/>`__ |
||||
|
|
||||
|
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: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from . import models |
||||
|
from . import wizard |
@ -0,0 +1,54 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
{ |
||||
|
'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, |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!--Schedule activity for calculating expiration of contract--> |
||||
|
<record id="rental_scheduler_recurring_action" model="ir.cron"> |
||||
|
<field name="name">Rental Scheduler Recurring Activity</field> |
||||
|
<field name="model_id" ref="model_rental_order_contract"/> |
||||
|
<field name="state">code</field> |
||||
|
<field name="code">model._contract_expiration()</field> |
||||
|
<field name="user_id" ref="base.user_root"/> |
||||
|
<field name="interval_number">1</field> |
||||
|
<field name="interval_type">days</field> |
||||
|
<field name="numbercall">-1</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!--Sale order line sequence number--> |
||||
|
<record id="seq_sale_order_line" model="ir.sequence"> |
||||
|
<field name="name">Order Line Sequence</field> |
||||
|
<field name="code">sale.order.line</field> |
||||
|
<field name="prefix">RO</field> |
||||
|
<field name="padding">5</field> |
||||
|
<field name="company_id" eval="False"/> |
||||
|
</record> |
||||
|
<!--Rental contract sequence number--> |
||||
|
<record id="seq_rental_contract" model="ir.sequence"> |
||||
|
<field name="name">Rental Contract Sequence</field> |
||||
|
<field name="code">rental.order.contract</field> |
||||
|
<field name="prefix">ROC</field> |
||||
|
<field name="padding">5</field> |
||||
|
<field name="company_id" eval="False"/> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,6 @@ |
|||||
|
## Module <odoo_rental_sales> |
||||
|
|
||||
|
#### 17.02.2024 |
||||
|
#### Version 16.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for Odoo Rental Sales |
@ -0,0 +1,27 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
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 |
@ -0,0 +1,38 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ProductProduct(models.Model): |
||||
|
"""Created the class for inheriting the product model """ |
||||
|
_inherit = 'product.product' |
||||
|
|
||||
|
rental = fields.Boolean('Rental', |
||||
|
help="Boolean field for checking the product is rental or not") |
||||
|
category_id = fields.Many2one('rental.product.category', |
||||
|
string='Rental Category', |
||||
|
help="Adding rental product category") |
||||
|
product_agreement_id = fields.Many2one('rental.product.agreement', |
||||
|
string='Product Agreement', |
||||
|
help="Set the product agreement") |
||||
|
security_amount = fields.Monetary(string='Security Amount', |
||||
|
help='To add the Security Amount') |
@ -0,0 +1,98 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo.exceptions import UserError |
||||
|
|
||||
|
|
||||
|
class RentalOrderContract(models.Model): |
||||
|
"""Created the class for creating a new model rental order contract""" |
||||
|
_name = "rental.order.contract" |
||||
|
_inherit = ['mail.thread', 'mail.activity.mixin', 'portal.mixin'] |
||||
|
_description = 'Rental Order Contract' |
||||
|
_rec_name = 'reference_no' |
||||
|
|
||||
|
reference_no = fields.Char(string='Reference', copy=False, |
||||
|
readonly=True, default=lambda self: _('New'), |
||||
|
help='Create a reference number for rental contract') |
||||
|
partner_id = fields.Many2one('res.partner', string='Customer', |
||||
|
help='To set the customer for the contract') |
||||
|
product_id = fields.Many2one('product.product', string='Product', |
||||
|
domain="[('rental', '=', True)]", |
||||
|
help='To add the rental product') |
||||
|
qty = fields.Float(string='Quantity', help='To add the quantity') |
||||
|
currency_id = fields.Many2one('res.currency', string="Currency", |
||||
|
related='company_id.currency_id', |
||||
|
help='To add the company currency') |
||||
|
unit_price = fields.Monetary(string='Unit Price', readonly=True, |
||||
|
help='To set the unit price') |
||||
|
date_start = fields.Datetime(string='Start Date', |
||||
|
help='To set the start date') |
||||
|
date_end = fields.Datetime(string='End Date', help='To set the end date') |
||||
|
sale_order_id = fields.Many2one('sale.order', string='Sale Order', |
||||
|
help='To set the corresponding sale order') |
||||
|
rental_order_id = fields.Many2one('sale.order.line', string='Rental Order', |
||||
|
help='To set the corresponding rental order', |
||||
|
domain=[('is_rental', '=', True)]) |
||||
|
company_id = fields.Many2one('res.company', required=True, |
||||
|
default=lambda self: self.env.company, |
||||
|
string='Company', |
||||
|
help='To set the default company') |
||||
|
contract_status = fields.Selection( |
||||
|
[('new', 'New'), ('confirmed', 'Confirmed'), ('expired', 'Expired'), |
||||
|
('cancel', 'Cancelled')], string='Contract Status', |
||||
|
default='new', help='To add contract status') |
||||
|
|
||||
|
@api.onchange('date_start', 'date_end') |
||||
|
def _onchange_date_start(self): |
||||
|
"""Checking the end date is less than start date""" |
||||
|
if self.date_start and self.date_end and self.date_start > self.date_end: |
||||
|
raise UserError( |
||||
|
_('The end date must be after or the same as the start date')) |
||||
|
|
||||
|
@api.model |
||||
|
def create(self, vals): |
||||
|
"""Creating sequence for the rental contract""" |
||||
|
if vals.get('reference_no', _('New')) == _('New'): |
||||
|
vals['reference_no'] = self.env['ir.sequence'].next_by_code( |
||||
|
'rental.order.contract') or _('New') |
||||
|
|
||||
|
return super(RentalOrderContract, self).create(vals) |
||||
|
|
||||
|
def action_confirm_contract(self): |
||||
|
""" Function for confirming the contract """ |
||||
|
self.contract_status = 'confirmed' |
||||
|
|
||||
|
def action_reset_contract(self): |
||||
|
"""Function for reset the contract to draft""" |
||||
|
self.contract_status = 'new' |
||||
|
|
||||
|
def action_cancel_contract(self): |
||||
|
""" Function for cancel contract """ |
||||
|
self.contract_status = 'cancel' |
||||
|
|
||||
|
def _contract_expiration(self): |
||||
|
"""Calculating the expiration date of the contract""" |
||||
|
rental_contract = self.env['rental.order.contract'].search( |
||||
|
[('contract_status', 'not in', ['expired', 'cancel'])]) |
||||
|
for rec in rental_contract: |
||||
|
if rec.date_end and rec.date_end.date() < fields.date.today(): |
||||
|
rec.contract_status = 'expired' |
@ -0,0 +1,37 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class RentalProductAgreement(models.Model): |
||||
|
"""Created the class for creating the model rental product agreement""" |
||||
|
_name = 'rental.product.agreement' |
||||
|
_description = 'Rental Product Agreement' |
||||
|
|
||||
|
name = fields.Char(string='Name', required=True, |
||||
|
help='Name of the rental product agreement') |
||||
|
sequence = fields.Integer(string='Sequence', required=True, |
||||
|
help='Sequence of the rental product agreement') |
||||
|
description = fields.Text(string='Description', |
||||
|
help='Description of the rental product agreement') |
||||
|
agreement_file = fields.Binary(string='Product Agreement', |
||||
|
help='Agreement file of the rental product') |
@ -0,0 +1,43 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class RentalProductCategory(models.Model): |
||||
|
"""Created the class for creating the model rental product category""" |
||||
|
_name = 'rental.product.category' |
||||
|
_description = 'Rental Product Category' |
||||
|
|
||||
|
name = fields.Char(string='Name', required=True, |
||||
|
help='Name of product category') |
||||
|
|
||||
|
def action_view_rental_products(self): |
||||
|
"""Showing the products under the rental category""" |
||||
|
self.ensure_one() |
||||
|
return { |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'name': 'Rental Products', |
||||
|
'view_mode': 'tree', |
||||
|
'res_model': 'product.product', |
||||
|
'domain': [('category_id', '=', self.id)], |
||||
|
'context': "{'create': False}" |
||||
|
} |
@ -0,0 +1,167 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo.exceptions import UserError |
||||
|
|
||||
|
|
||||
|
class SaleOrder(models.Model): |
||||
|
"""Created the class for inheriting the model sale order""" |
||||
|
_inherit = 'sale.order' |
||||
|
|
||||
|
rental_status = fields.Selection( |
||||
|
[('new', 'New'), ('confirmed', 'Confirmed'), |
||||
|
('expired', 'Expired'), |
||||
|
('cancel', 'Cancelled')], |
||||
|
default='new', help='To show the rental status', string='Rental Status') |
||||
|
|
||||
|
def action_confirm(self): |
||||
|
"""For creating rental order contract at the time of confirm the sale order.""" |
||||
|
res = super(SaleOrder, self).action_confirm() |
||||
|
for product in self.order_line: |
||||
|
if product.rental: |
||||
|
product.is_rental = True |
||||
|
self.env['rental.order.contract'].create([{ |
||||
|
'partner_id': self.partner_id.id, |
||||
|
'product_id': product.product_id.id, |
||||
|
'qty': product.product_uom_qty, |
||||
|
'unit_price': product.price_unit, |
||||
|
'rental_order_id': product.id, |
||||
|
'sale_order_id': self.id, |
||||
|
}]) |
||||
|
return res |
||||
|
|
||||
|
|
||||
|
class SaleOrderLine(models.Model): |
||||
|
"""Created the class for inheriting the model sale order line""" |
||||
|
_inherit = 'sale.order.line' |
||||
|
_rec_name = 'reference_no' |
||||
|
|
||||
|
reference_no = fields.Char(string='Reference', readonly=True, |
||||
|
default=lambda self: _('New'), |
||||
|
help='To create reference number for sale order line') |
||||
|
initial_contract_id = fields.Many2one('rental.order.contract', |
||||
|
string='Initial Contract', |
||||
|
help='To add initial contract') |
||||
|
initial_start = fields.Datetime(string='Start Date', related='initial_contract_id.date_start', |
||||
|
help='To add the initial contract start date') |
||||
|
initial_end = fields.Datetime(string='End Date', related='initial_contract_id.date_end', |
||||
|
help='To add initial contract end date') |
||||
|
initial_qty = fields.Float(string='Quantity', related='initial_contract_id.qty', |
||||
|
help='To add initial contract product quantity') |
||||
|
partner_id = fields.Many2one('res.partner', string='Partner', |
||||
|
help='To store the partner of the corresponding sale order') |
||||
|
current_contract_id = fields.Many2one('rental.order.contract', |
||||
|
string='Current Contract', |
||||
|
help='To add the current contract') |
||||
|
current_start = fields.Datetime(string='Start Date', related='current_contract_id.date_start', |
||||
|
help='To add the current contract start date') |
||||
|
current_end = fields.Datetime(string='End Date', related='current_contract_id.date_end', |
||||
|
help='To add the current contract end date') |
||||
|
current_qty = fields.Float(string='Quantity', related='current_contract_id.qty', |
||||
|
help='To add the current contract product quantity') |
||||
|
last_renewal_time = fields.Datetime(string='Last Renewal Time', |
||||
|
help='To store the last renewal time of the contract') |
||||
|
is_rental = fields.Boolean(string='Rental', |
||||
|
help='To check the sale order line contains rental product or not') |
||||
|
rental = fields.Boolean(string='Rental', related='product_id.rental', |
||||
|
help='To check the sale order line product is rental product') |
||||
|
current_contract_values = fields.Boolean(string='Contract Value', |
||||
|
compute='_compute_current_contract_values', |
||||
|
help='To compute the contract values') |
||||
|
rental_status = fields.Selection( |
||||
|
[('new', 'New'), ('confirmed', 'Confirmed'), |
||||
|
('cancel', 'Cancelled')], |
||||
|
default='new', help='To show the rental status', string='Rental Status') |
||||
|
rental_contract_ids = fields.One2many('rental.order.contract', |
||||
|
'rental_order_id', |
||||
|
string='Rental Contract', |
||||
|
help='To Shows the rental contract') |
||||
|
|
||||
|
@api.depends('rental_contract_ids') |
||||
|
def _compute_current_contract_values(self): |
||||
|
"""For fetching the current contract values to the sale order line form view""" |
||||
|
for rec in self: |
||||
|
rec.current_contract_values = False |
||||
|
try: |
||||
|
recs_sorted = \ |
||||
|
rec.rental_contract_ids.sorted(key=lambda r: r.date_start)[0] if rec.rental_contract_ids.sorted( |
||||
|
key=lambda r: r.date_start) else False |
||||
|
rec.current_contract_values = True |
||||
|
for record in rec.rental_contract_ids: |
||||
|
if record.date_start and record.date_end: |
||||
|
if record.date_start.date() <= fields.date.today() <= record.date_end.date(): |
||||
|
rec.current_contract_id = record.id |
||||
|
rec.last_renewal_time = record.date_end |
||||
|
if recs_sorted: |
||||
|
rec.initial_contract_id = recs_sorted.id |
||||
|
except: |
||||
|
continue |
||||
|
|
||||
|
@api.onchange('initial_start', 'initial_end', 'current_start', 'current_end') |
||||
|
def _onchange_initial_start(self): |
||||
|
"""Checking the end date is less than start date""" |
||||
|
if self.initial_start and self.initial_end and self.initial_start > self.initial_end: |
||||
|
raise UserError( |
||||
|
_('The end date must be after or the same as the start date')) |
||||
|
if self.current_start and self.current_end and self.current_start > self.current_end: |
||||
|
raise UserError( |
||||
|
_('The end date must be after or the same as the start date')) |
||||
|
|
||||
|
@api.model |
||||
|
def create(self, vals): |
||||
|
""" Function for adding reference number to the sale order line """ |
||||
|
if vals.get('reference_no', _('New')) == _('New'): |
||||
|
vals['reference_no'] = self.env['ir.sequence'].next_by_code( |
||||
|
'sale.order.line') or _('New') |
||||
|
return super(SaleOrderLine, self).create(vals) |
||||
|
|
||||
|
def action_confirm(self): |
||||
|
""" Button function that confirm the order line products """ |
||||
|
self.rental_status = 'confirmed' |
||||
|
|
||||
|
def action_cancel(self): |
||||
|
""" Button function that cancel the order """ |
||||
|
self.rental_status = 'cancel' |
||||
|
|
||||
|
def action_renew_contract(self): |
||||
|
"""For renewing the rental order""" |
||||
|
self.ensure_one() |
||||
|
vals = [] |
||||
|
if self.rental_contract_ids: |
||||
|
vals = [{ |
||||
|
'partner_id': rec.partner_id.id, |
||||
|
'product_id': rec.product_id.id, |
||||
|
'rental_order_id': rec.rental_order_id.id, |
||||
|
'sale_order_id': rec.sale_order_id.id, |
||||
|
'qty': rec.qty, |
||||
|
'unit_price': rec.unit_price, |
||||
|
} for rec in self.rental_contract_ids] |
||||
|
|
||||
|
contract_rec = self.env['rental.order.contract'].create(vals) |
||||
|
return { |
||||
|
'name': _('Renew Rental Order'), |
||||
|
'view_mode': 'form', |
||||
|
'res_model': 'rental.order.contract', |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'target': 'new', |
||||
|
'res_id': contract_rec[0].id if contract_rec else False, |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class Uom(models.Model): |
||||
|
"""Created the class for inheriting the model uom """ |
||||
|
_inherit = 'uom.uom' |
||||
|
|
||||
|
is_rental = fields.Boolean(string='Rental', |
||||
|
help='Check the uom is for rental product') |
|
@ -0,0 +1,11 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Multi company rule for rental contract--> |
||||
|
<record id="rental_order_contract_rule_company" model="ir.rule"> |
||||
|
<field name="name">Rental Order Contract Multi-Company</field> |
||||
|
<field name="model_id" ref="model_rental_order_contract"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 234 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,720 @@ |
|||||
|
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> |
||||
|
<!-- TITLE BAR --> |
||||
|
<div class="d-flex align-items-center justify-content-between" |
||||
|
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> |
||||
|
<img src="./assets/misc/cybrosys-logo.png" width="42" height="42" |
||||
|
style="width: 42px; height: 42px;"/>` |
||||
|
<div> |
||||
|
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Community |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF TITLE BAR --> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12"> |
||||
|
<!-- APP HERO --> |
||||
|
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> |
||||
|
Odoo Rental Sales</h1> |
||||
|
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">Helps to Manage the |
||||
|
Rental |
||||
|
Orders.</p> |
||||
|
<!-- END OF APP HERO --> |
||||
|
<img src="./assets/screenshots/hero.gif" |
||||
|
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- NAVIGATION SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/compass.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Explore This |
||||
|
Module</h2> |
||||
|
</div> |
||||
|
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#overview"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> |
||||
|
<span |
||||
|
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn |
||||
|
more about this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#features"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> |
||||
|
<span |
||||
|
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View |
||||
|
features of this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#screenshots"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> |
||||
|
<span |
||||
|
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View |
||||
|
screenshots for this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF NAVIGATION SECTION --> |
||||
|
|
||||
|
<!-- OVERVIEW SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/pie-chart.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Overview |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 py-4"> |
||||
|
The community version of Odoo currently doesn't provide a rental management system. |
||||
|
By using this module, you can effortlessly handle rental sales. |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF OVERVIEW SECTION --> |
||||
|
|
||||
|
<!-- FEATURES SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/features.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Available in Odoo 16.0 Community</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">User Can Manage The Rental Orders By Using This Module.</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage the Rental Contract and renew Contract.</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Creating Rental Category, Rental Products, Unit of Measures.</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF FEATURES SECTION --> |
||||
|
|
||||
|
<!-- SCREENSHOTS SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" |
||||
|
id="screenshots"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/pictures.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Screenshots |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Sales Order Under |
||||
|
Rental Menu. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">In the Rental Sales menu, users have access to all existing |
||||
|
Sale Orders and can also create new Sale Orders directly from there.</p> |
||||
|
<img src="./assets/screenshots/rent1.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Add Rental |
||||
|
Products. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">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</p> |
||||
|
<img src="./assets/screenshots/rent2.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Order. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> From the Rental Order menu, we can see all Rental Orders.</p> |
||||
|
<img src="./assets/screenshots/rent3.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Order |
||||
|
Details. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">By selecting any |
||||
|
Rental Order we can see complete details of that Rental Order.</p> |
||||
|
<img src="./assets/screenshots/rent4.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Renew Expired |
||||
|
Rental Contract. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> We can renew an |
||||
|
expired Rental Order by clicking the 'RENEW CONTRACT' button and a new pop-up will appear.</p> |
||||
|
<img src="./assets/screenshots/rent123.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Contract. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/rent6.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Contract |
||||
|
Details. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Here we can see |
||||
|
the complete details of the Rental Contract</p> |
||||
|
<img src="./assets/screenshots/rent7.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Products. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/rent8.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product Details. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">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.</p> |
||||
|
<img src="./assets/screenshots/rent9.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Category. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">From the Rental Category menu, we can create new Rental Product Categories.</p> |
||||
|
<img src="./assets/screenshots/rent10.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Rental Agreement. |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">From the Rental Agreement menu, we can create new Rental Product Agreements</p> |
||||
|
<img src="./assets/screenshots/rent11.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF SCREENSHOTS SECTION --> |
||||
|
|
||||
|
<!-- RELATED PRODUCTS --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/categories.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Related |
||||
|
Products |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
||||
|
<!-- The slideshow --> |
||||
|
<div class="carousel-inner" style="padding: 30px;"> |
||||
|
<div class="carousel-item" style="min-height: 198.656px;"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/dashboard_pos/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius:0px" |
||||
|
src="./assets/modules/6.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/custom_receipts_for_pos/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius:0px" |
||||
|
src="./assets/modules/5.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/pos_report_generator/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius:0px" |
||||
|
src="./assets/modules/4.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item active" |
||||
|
style="min-height: 198.656px;"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/multi_barcodes_pos/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius:0px" |
||||
|
src="./assets/modules/1.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/pos_order_line_image/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius:0px" |
||||
|
src="./assets/modules/2.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
|
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/pos_magnify_image/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius:0px" |
||||
|
src="./assets/modules/3.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Left and right controls --> |
||||
|
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
||||
|
style="width:35px; color:#000"> <span |
||||
|
class="carousel-control-prev-icon"><i |
||||
|
class="fa fa-chevron-left" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> <a class="carousel-control-next" href="#demo1" |
||||
|
data-slide="next" style="width:35px; color:#000"> |
||||
|
<span class="carousel-control-next-icon"><i |
||||
|
class="fa fa-chevron-right" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF RELATED PRODUCTS --> |
||||
|
|
||||
|
<!-- OUR SERVICES --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/star.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Our Services |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/cogs.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Customization</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/wrench.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/lifebuoy.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Support</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/user.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Hire |
||||
|
Odoo |
||||
|
Developer</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/puzzle.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Integration</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/update.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Migration</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/consultation.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Consultancy</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/training.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/license.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Licensing Consultancy</h6> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF OUR SERVICES --> |
||||
|
|
||||
|
<!-- OUR INDUSTRIES --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/corporate.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Our |
||||
|
Industries |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/trading-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Trading |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easily procure |
||||
|
and |
||||
|
sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/pos-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
POS |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easy |
||||
|
configuration |
||||
|
and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/education-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Education |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
A platform for |
||||
|
educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/manufacturing-black.png" |
||||
|
class="img-responsive mb-3" height="48px" |
||||
|
width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Manufacturing |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Plan, track and |
||||
|
schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/ecom-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
E-commerce & Website |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Mobile |
||||
|
friendly, |
||||
|
awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/service-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Service Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Keep track of |
||||
|
services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/restaurant-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Restaurant |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Run your bar or |
||||
|
restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="./assets/icons/hotel-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Hotel Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
An |
||||
|
all-inclusive |
||||
|
hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF OUR INDUSTRIES --> |
||||
|
|
||||
|
<!-- SUPPORT --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/customer-support.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Support |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4" |
||||
|
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="./assets/misc/support.png" height="48" width="48" |
||||
|
style="width: 42px; height: 42px;"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>Need Help?</h4> |
||||
|
<p style="line-height: 100%;">Got questions or need help? |
||||
|
Get in touch.</p> |
||||
|
<a href="mailto:odoo@cybrosys.com"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
||||
|
odoo@cybrosys.com</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4" |
||||
|
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="./assets/misc/whatsapp.png" height="52" width="52" |
||||
|
style="width: 52px; height: 52px;"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>WhatsApp</h4> |
||||
|
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p> |
||||
|
<a href="https://api.whatsapp.com/send?phone=918606827707"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
||||
|
+91 86068 27707</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> |
||||
|
<img src="./assets/misc/logo.png" width="144" height="31" |
||||
|
style="width:144px; height: 31px; margin-top: 40px;"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SUPPORT --> |
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Rental menus--> |
||||
|
<menuitem id="rental_menu_root" |
||||
|
name="Rental"/> |
||||
|
<menuitem id="rental_sales_menu" |
||||
|
name="Rental Sales" |
||||
|
parent="rental_menu_root" |
||||
|
sequence="1"/> |
||||
|
<menuitem id="rental_products_menu" |
||||
|
name="Products" |
||||
|
parent="rental_menu_root" |
||||
|
sequence="2" |
||||
|
action="odoo_rental_sales.product_template_kanban_view"/> |
||||
|
<menuitem id="rental_configuration_menu" |
||||
|
name="Configuration" |
||||
|
parent="rental_menu_root" |
||||
|
sequence="3"/> |
||||
|
<menuitem id="rental_conf_settings_menu" |
||||
|
name="Settings" |
||||
|
action="sale.action_sale_config_settings" |
||||
|
parent="odoo_rental_sales.rental_configuration_menu" |
||||
|
sequence="1"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,54 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!--Product search view for add new filter--> |
||||
|
<record id="product_product_view_search" model="ir.ui.view"> |
||||
|
<field name="name">product.product.view.search.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">product.product</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<search> |
||||
|
<filter string="Rental" name="rental" |
||||
|
domain="[('rental', '=', True)]"/> |
||||
|
</search> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Product template kanban view for adding new context--> |
||||
|
<record id="odoo_rental_sales.product_template_kanban_view" model="ir.actions.act_window"> |
||||
|
<field name="name">Rental Products</field> |
||||
|
<field name="res_model">product.product</field> |
||||
|
<field name="view_mode">kanban,tree,form</field> |
||||
|
<field name="view_id" ref="product.product_template_kanban_view"/> |
||||
|
<field name="search_view_id" ref="product_product_view_search"/> |
||||
|
<field name="context">{"search_default_rental":1, "default_rental": True}</field> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="oe_view_nocontent_create"> |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Inherit product form view to add new fields and notebook--> |
||||
|
<record id="product_normal_form_view" model="ir.ui.view"> |
||||
|
<field name="name">product.product.view.form.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">product.product</field> |
||||
|
<field name="inherit_id" ref="product.product_normal_form_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//div[@name='options']" position="inside"> |
||||
|
<span class="d-inline-block"> |
||||
|
<field name="rental"/> |
||||
|
<label for="rental"/> |
||||
|
</span> |
||||
|
</xpath> |
||||
|
<xpath expr="//notebook[last()]" position="inside"> |
||||
|
<page string="Rental" name="rental" attrs="{'invisible':[('rental', '=', False)]}"> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="category_id"/> |
||||
|
<field name="security_amount"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="product_agreement_id"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
</page> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,88 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Rental order contract tree view--> |
||||
|
<record id="rental_order_contract_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">rental.order.contract.view.tree</field> |
||||
|
<field name="model">rental.order.contract</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="reference_no"/> |
||||
|
<field name="partner_id"/> |
||||
|
<field name="product_id"/> |
||||
|
<field name="company_id" invisible="1"/> |
||||
|
<field name="qty"/> |
||||
|
<field name="unit_price"/> |
||||
|
<field name="date_start"/> |
||||
|
<field name="date_end"/> |
||||
|
<field name="rental_order_id"/> |
||||
|
<field name="sale_order_id"/> |
||||
|
<field name="contract_status"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Rental order contract form view--> |
||||
|
<record id="rental_contract_view_form" model="ir.ui.view"> |
||||
|
<field name="name">rental.order.contract.view.form</field> |
||||
|
<field name="model">rental.order.contract</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<header> |
||||
|
<button string="Confirm" name="action_confirm_contract" |
||||
|
class="oe_highlight" |
||||
|
type="object" |
||||
|
attrs="{'invisible':[('contract_status','!=','new')]}"/> |
||||
|
<button string="Cancel" name="action_cancel_contract" |
||||
|
class="btn-primary" |
||||
|
type="object" |
||||
|
attrs="{'invisible':[('contract_status','=','cancel')]}"/> |
||||
|
<button string="Reset To Draft" name="action_reset_contract" |
||||
|
class="btn-primary" |
||||
|
type="object" |
||||
|
attrs="{'invisible':[('contract_status','!=','cancel')]}"/> |
||||
|
<field name="contract_status" widget="statusbar" |
||||
|
nolabel="1"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<div class="oe_title"> |
||||
|
<h1> |
||||
|
<field name="reference_no"/> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="partner_id" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="product_id" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="company_id" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="qty" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="unit_price" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="create_date" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="date_start" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="date_end" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="rental_order_id" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
<field name="sale_order_id" attrs="{'readonly':[('contract_status','!=','new')]}"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
<div class="oe_chatter"> |
||||
|
<field name="message_follower_ids"/> |
||||
|
<field name="activity_ids"/> |
||||
|
<field name="message_ids"/> |
||||
|
</div> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Rental order contract action--> |
||||
|
<record id="rental_order_contract_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Rental Contract</field> |
||||
|
<field name="res_model">rental.order.contract</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
</record> |
||||
|
<!-- Rental contract menu--> |
||||
|
<menuitem id="rental_order_contract_menu" |
||||
|
name="Rental Contract" |
||||
|
parent="odoo_rental_sales.rental_sales_menu" |
||||
|
action="rental_order_contract_action"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,42 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Rental product agreement form view--> |
||||
|
<record id="rental_product_agreement_view_form" model="ir.ui.view"> |
||||
|
<field name="name">rental.product.agreement.view.form</field> |
||||
|
<field name="model">rental.product.agreement</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="name"/> |
||||
|
<field name="agreement_file"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="sequence"/> |
||||
|
</group> |
||||
|
<label for="description"/> |
||||
|
<field name="description"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Rental product agreement action--> |
||||
|
<record id='rental_product_agreement_action' model='ir.actions.act_window'> |
||||
|
<field name="name">Rental Product Agreement</field> |
||||
|
<field name="res_model">rental.product.agreement</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="o_view_nocontent_smiling_face"> |
||||
|
Create a new rental agreement |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Rental agreement menu item--> |
||||
|
<menuitem id="rental_product_agreement_menu" |
||||
|
name="Rental Agreement" |
||||
|
action="rental_product_agreement_action" |
||||
|
parent="odoo_rental_sales.rental_configuration_menu"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,40 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Rental product category form view--> |
||||
|
<record id="rental_product_category_view_form" model="ir.ui.view"> |
||||
|
<field name="name">rental.product.category.view.form</field> |
||||
|
<field name="model">rental.product.category</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<sheet> |
||||
|
<div class="oe_button_box" name="button_box"> |
||||
|
<button class="oe_stat_button" string="Products" name="action_view_rental_products" |
||||
|
icon="fa-th-list" type="object"/> |
||||
|
</div> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="name"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
|
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Rental product category action--> |
||||
|
<record id='rental_product_category_action' model='ir.actions.act_window'> |
||||
|
<field name="name">Rental Product Category</field> |
||||
|
<field name="res_model">rental.product.category</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="o_view_nocontent_smiling_face"> |
||||
|
Create a new rental product category |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Rental category menu item--> |
||||
|
<menuitem id="rental_product_category_menu" |
||||
|
name="Rental Category" |
||||
|
action="rental_product_category_action" |
||||
|
parent="odoo_rental_sales.rental_configuration_menu"/> |
||||
|
</odoo> |
@ -0,0 +1,113 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!--Sale order view form for adding a new button--> |
||||
|
<record id="view_order_form" model="ir.ui.view"> |
||||
|
<field name="name">sale.order.view.form.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">sale.order</field> |
||||
|
<field name="inherit_id" ref="sale.view_order_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//page[@name='order_lines']//field[@name='order_line']" |
||||
|
position="before"> |
||||
|
<button name="%(rental_product_action)d" type="action" |
||||
|
class="btn-primary" string="Add Rental Product"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Sale order line tree view inherited for adding the rental status--> |
||||
|
<record id="view_order_tree" model="ir.ui.view"> |
||||
|
<field name="name">sale.order.view.tree.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">sale.order</field> |
||||
|
<field name="inherit_id" ref="sale.view_order_tree"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='invoice_status']" position="after"> |
||||
|
<field name="rental_status"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Sale order line tree view for adding new fields--> |
||||
|
<record id="view_order_line_tree" model="ir.ui.view"> |
||||
|
<field name="name">sale.order.line.view.tree.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">sale.order.line</field> |
||||
|
<field name="inherit_id" ref="sale.view_order_line_tree"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='price_subtotal']" position="after"> |
||||
|
<field name="rental_status"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Inherited sale order tree view for add new domain--> |
||||
|
<record id="sale_order_line_tree_view_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Rental Order</field> |
||||
|
<field name="type">ir.actions.act_window</field> |
||||
|
<field name="res_model">sale.order.line</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="domain">[('rental','=',True)]</field> |
||||
|
</record> |
||||
|
<!--Sale order line form view for adding buttons and fields--> |
||||
|
<record id="sale_order_line_view_form_readonly" model="ir.ui.view"> |
||||
|
<field name="name">sale.order.line.view.form.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">sale.order.line</field> |
||||
|
<field name="inherit_id" ref="sale.sale_order_line_view_form_readonly"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//sheet" position='before'> |
||||
|
<header> |
||||
|
<button string="Confirm" name="action_confirm" |
||||
|
class="oe_highlight" |
||||
|
type="object" |
||||
|
attrs="{'invisible':[('rental_status','!=','new')]}"/> |
||||
|
<button string="Cancel" name="action_cancel" |
||||
|
class="btn-primary" |
||||
|
type="object" |
||||
|
attrs="{'invisible':[('rental_status','=','cancel')]}"/> |
||||
|
<button string="Renew Contract" class="oe_highlight" |
||||
|
name="action_renew_contract" type="object" |
||||
|
attrs="{'invisible':[('rental_status','=','cancel')]}"/> |
||||
|
<field name="rental_status" widget="statusbar" nolabel="1"/> |
||||
|
</header> |
||||
|
</xpath> |
||||
|
|
||||
|
<xpath expr="//group" position="inside"> |
||||
|
<group string="Current Contract" name="current_contract" |
||||
|
attrs="{'invisible':[('rental_status','=','new')]}"> |
||||
|
<field name="current_start"/> |
||||
|
<field name="current_end"/> |
||||
|
<field name="current_qty"/> |
||||
|
<field name="current_contract_id"/> |
||||
|
<field name="last_renewal_time"/> |
||||
|
</group> |
||||
|
<group string="Initial Contract" name="initial_contract" |
||||
|
attrs="{'invisible':[('rental_status','=','new')]}"> |
||||
|
<field name="initial_start"/> |
||||
|
<field name="initial_end"/> |
||||
|
<field name="initial_qty"/> |
||||
|
<field name="initial_contract_id"/> |
||||
|
<field name="current_contract_values" invisible="1"/> |
||||
|
|
||||
|
</group> |
||||
|
</xpath> |
||||
|
<xpath expr="//sheet" position='inside'> |
||||
|
<notebook> |
||||
|
<page string="Rental Contract"> |
||||
|
<field name="rental_contract_ids"> |
||||
|
<tree> |
||||
|
<field name="reference_no"/> |
||||
|
<field name="date_start"/> |
||||
|
<field name="date_end"/> |
||||
|
<field name="contract_status"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Rental order menu items--> |
||||
|
<menuitem id="sale_order_menu" |
||||
|
name="Sales Order" |
||||
|
action="sale.action_orders" |
||||
|
parent="odoo_rental_sales.rental_sales_menu"/> |
||||
|
<menuitem id="rental_order_menu" |
||||
|
name="Rental Order" |
||||
|
parent="odoo_rental_sales.rental_sales_menu" |
||||
|
action="sale_order_line_tree_view_action"/> |
||||
|
</odoo> |
@ -0,0 +1,57 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!--UOM search view for adding new filter--> |
||||
|
<record id="rental_uom_filter" model="ir.ui.view"> |
||||
|
<field name="name">uom.uom.filter</field> |
||||
|
<field name="model">uom.uom</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<search> |
||||
|
<filter string="Rental" name="rental" domain="[('is_rental', '=',True)]"/> |
||||
|
</search> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Inherit UOM form view for add new fields--> |
||||
|
<record id="product_uom_form_view" model="ir.ui.view"> |
||||
|
<field name="name">uom.uom.view.form.odoo.rental.sales</field> |
||||
|
<field name="model">uom.uom</field> |
||||
|
<field name="inherit_id" ref="uom.product_uom_form_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='rounding']" position="after"> |
||||
|
<field name="is_rental"/> |
||||
|
|
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--UOM tree view to adding a field on it--> |
||||
|
<record id="product_uom_tree_view" model="ir.ui.view"> |
||||
|
<field name="name">uom.uom.view.tree.inherit.odoo.rental.sales</field> |
||||
|
<field name="model">uom.uom</field> |
||||
|
<field name="inherit_id" ref="uom.product_uom_tree_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='uom_type']" position="after"> |
||||
|
<field name="is_rental"/> |
||||
|
|
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Inherit UOM action for passing context--> |
||||
|
<record id="odoo_rental_sales.uom_uom_view_search" model="ir.actions.act_window"> |
||||
|
<field name="name">Rental UOM</field> |
||||
|
<field name="type">ir.actions.act_window</field> |
||||
|
<field name="res_model">uom.uom</field> |
||||
|
<field name="view_mode">tree,form,activity</field> |
||||
|
<field name="context">{'search_default_rental': 1}</field> |
||||
|
<field name="view_id" ref="uom.uom_uom_view_search"/> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="o_view_nocontent_smiling_face"> |
||||
|
Create a new rental uom |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Rental conf uom menu--> |
||||
|
<menuitem id="rental_conf_uom_menu" |
||||
|
name="Rental UOM" |
||||
|
parent="odoo_rental_sales.rental_configuration_menu" |
||||
|
action="odoo_rental_sales.uom_uom_view_search"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from . import rental_product |
@ -0,0 +1,45 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class RentalProduct(models.TransientModel): |
||||
|
"""Created the class for creating a new transient model""" |
||||
|
_name = 'rental.product' |
||||
|
_description = "Rental Product Wizard" |
||||
|
_rec_name = 'rental_product_id' |
||||
|
|
||||
|
rental_product_id = fields.Many2one('product.product', |
||||
|
domain=[('rental', '=', True)], string='Product', |
||||
|
help='To select the rental product') |
||||
|
unit_price = fields.Float(string='Unit Price', related='rental_product_id.lst_price', |
||||
|
help='To add the unit price of the product') |
||||
|
qty = fields.Float(string='Quantity', help='Quantity of the rental product', default=1.0) |
||||
|
|
||||
|
def add_rental_product(self): |
||||
|
""" Function for adding the rental product to the sale order line """ |
||||
|
active = self.env.context.get('active_id') |
||||
|
sale = self.env['sale.order'].browse(active) |
||||
|
self.env['sale.order.line'].create({ |
||||
|
'product_id': self.rental_product_id.id, |
||||
|
'order_id': sale.id, |
||||
|
'product_uom_qty': self.qty}) |
@ -0,0 +1,35 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Rental product wizard form view--> |
||||
|
<record id="rental_product_view_form" model="ir.ui.view"> |
||||
|
<field name="name">rental.product.view.form</field> |
||||
|
<field name="model">rental.product</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="rental_product_id" context="{'default_rental': True}"/> |
||||
|
<field name="unit_price"/> |
||||
|
<field name="qty"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
|
||||
|
<footer> |
||||
|
<button special="cancel" string="Cancel" class="btn-primary"/> |
||||
|
<button name="add_rental_product" string="Add Product" type="object" class="btn-primary"/> |
||||
|
</footer> |
||||
|
</sheet> |
||||
|
|
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Rental product wizard action--> |
||||
|
<record id="rental_product_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Rental Product</field> |
||||
|
<field name="res_model">rental.product</field> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="target">new</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |