Skip to content

Commit

Permalink
Merge with the 8.0 branch of lp:openerp-rental
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis de Lattre committed May 25, 2015
2 parents 956a595 + 3546b1e commit d99cc5c
Show file tree
Hide file tree
Showing 25 changed files with 2,965 additions and 0 deletions.
79 changes: 79 additions & 0 deletions sale_rental/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
Sale Rental
===========

With this module, you can rent products with Odoo. This module supports:

* regular rentals,
* rental extensions,
* sale of rented products.

Configuration
=============

In the menu *Sales > Products > Product Variants*, on the form view
of a stockable product or consumable, in the *Rental* tab, there is a
button *Create Rental Service* which starts a wizard to generate the
corresponding rental service.

In the menu *Warehouse > Configuration > Warehouses*, on the form view
of the warehouse, in the *Technical Information* tab, you will see two
additionnal stock locations: *Rental In* (stock of products to rent) and
*Rental Out* (products currently rented). In the *Warehouse Configuration* tab,
make sure that the option *Rental Allowed* is checked.

To use the module, you need to have access to the form view of sale
order lines. For that, you must add your user to one of these groups:

* Manage Product Packaging
* Properties on lines

Usage
=====

In a sale order line (form view, not tree view), if you select a rental
service, you can :

* create a new rental with a start date and an end date: when the sale
order is confirmed, it will generate a delivery order and an incoming
shipment.
* extend an existing rental: the incoming shipment will be postponed to
the end date of the extension.

In a sale order line, if you select a product that has a corresponding
rental service, you can decide to sell the rented product that the
customer already has. If the sale order is confirmed, the incoming
shipment will be cancelled and a new delivery order will be created with
a stock move from *Rental Out* to *Customers*.

Please refer to `this screencast <https://www.youtube.com/watch?v=9o0QrGryBn8>`
to get a demo of the installation, configuration and use of this module
(note that this screencast is for Odoo v7, not v8).

Known issues / Roadmap
======================

This module has the following limitations:

* No support for planning/agenda of the rented products
* the unit of measure of the rental services must be *Day* (the rental per hours / per week / per month is not supported for the moment)

Credits
=======

Contributors
------------

* Alexis de Lattre <alexis.delattre@akretion.com>

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
24 changes: 24 additions & 0 deletions sale_rental/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Sale Rental module for Odoo
# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import rental
from . import wizard
44 changes: 44 additions & 0 deletions sale_rental/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Rental module for Odoo
# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################


{
'name': 'Rental',
'version': '0.1',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Manage Rental of Products',
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['sale_start_end_dates', 'stock'],
'data': [
'sale_view.xml',
'stock_view.xml',
'rental_view.xml',
'rental_data.xml',
'wizard/create_rental_product_view.xml',
'product_view.xml',
'security/ir.model.access.csv',
],
'demo': ['rental_demo.xml'],
'installable': True,
}
Loading

0 comments on commit d99cc5c

Please sign in to comment.