Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.0 add support for rental #164

Merged
merged 23 commits into from
Jun 21, 2015
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f7a80c5
Initial check-in of the rental project.
Jan 28, 2014
e71609b
We want to have the date_planned of the regular products that are on …
Jan 29, 2014
3e7a0d4
Restrict to "day" UoM in the constraint.
Jan 29, 2014
06566de
Add read access on rental to stock user.
Jan 29, 2014
45f488b
Add POT file
Feb 2, 2014
bb45a7e
FIX missing dependancy.
Feb 25, 2014
b112c70
Add pt_BR translation, contributed by Caio Barros.
Jul 14, 2014
b59301a
[FIX] Missing call to super in _invoice_line_hook
Oct 15, 2014
0d41d33
Better default values in the wizard for the creation of rental servic…
Nov 18, 2014
ded5be1
Add a note about the fact that you need to have access to the form vi…
Nov 18, 2014
3d14216
FIX my commit revno 9 on the wizard to create the rental service
Nov 26, 2014
3546b1e
Port to v8 and new API with several enhancements
May 25, 2015
d99cc5c
Merge with the 8.0 branch of lp:openerp-rental
May 25, 2015
999af78
Fix typo
May 25, 2015
b3217ed
Add account-closing in Travis config
May 26, 2015
c8647f4
Add server-tools in Travis config
May 27, 2015
f7ab04a
Inherit of product_id_change on product_id field, for better usabilit…
May 31, 2015
d8c938f
You can now write directly in the "number_of_days" field
Jun 2, 2015
9ee00ea
Fix flake8 warnings
Jun 2, 2015
1702217
Fix spelling mistake notified by @jbeficent
Jun 2, 2015
d61595d
Move dependencies to other OCA projects to oca_dependencies.txt
Jun 2, 2015
bf10018
Update POT file and FR translation
Jun 2, 2015
c1ca1eb
Take into account the remarks of Jordi Ballester
alexis-via Jun 11, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
stock-logistics-workflow
stock-logistics-transport
account-closing
server-tools
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
additional 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 1 to 22 are not useful, just import no license mandatory, no explicit encoding, just ascii used
It's just a suggestion, you may keep as it if you want

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