Skip to content

Commit

Permalink
Port to v8 and new API with several enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis de Lattre committed May 25, 2015
1 parent 3d14216 commit 3546b1e
Show file tree
Hide file tree
Showing 21 changed files with 1,258 additions and 885 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 <[email protected]>

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.
4 changes: 2 additions & 2 deletions sale_rental/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Sale Rental module for OpenERP
# Copyright (C) 2014 Akretion (http://www.akretion.com)
# Sale Rental module for Odoo
# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
Expand Down
34 changes: 2 additions & 32 deletions sale_rental/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Rental module for OpenERP
# Copyright (C) 2014 Akretion (http://www.akretion.com)
# Rental module for Odoo
# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -27,36 +27,6 @@
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Manage Rental of Products',
'description': """
Rental
======
This module will allows you to rent products with OpenERP. On the form view of a stockable product or consumable, there is a wizard to generate the corresponding rental service. On the warehouse, you have two additionnal stock locations: *Rental In* (stock of products to rent) and *Rental Out* (products currently rented).
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*.
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
A screencast that explains how to install, configure and use this module is available on Akretion's Youtube channel: https://www.youtube.com/watch?v=9o0QrGryBn8
Known limitations of the current implementation:
* the unit of measure of the rental services must be *Day* (we don't support the rental per hours / per week / per month...)
* when you sell a rental service, you must have as many sale order lines as rented equipements i.e. you can't rent multiple units of an equipment in one sale order line (it is possible to develop that, but it requires additionnal work).
This module has been developped by Alexis de Lattre from Akretion <[email protected]>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['sale_start_end_dates', 'stock'],
Expand Down
Loading

0 comments on commit 3546b1e

Please sign in to comment.