-
-
Notifications
You must be signed in to change notification settings - Fork 989
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
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.
e71609b
We want to have the date_planned of the regular products that are on …
3e7a0d4
Restrict to "day" UoM in the constraint.
06566de
Add read access on rental to stock user.
45f488b
Add POT file
bb45a7e
FIX missing dependancy.
b112c70
Add pt_BR translation, contributed by Caio Barros.
b59301a
[FIX] Missing call to super in _invoice_line_hook
0d41d33
Better default values in the wizard for the creation of rental servic…
ded5be1
Add a note about the fact that you need to have access to the form vi…
3d14216
FIX my commit revno 9 on the wizard to create the rental service
3546b1e
Port to v8 and new API with several enhancements
d99cc5c
Merge with the 8.0 branch of lp:openerp-rental
999af78
Fix typo
b3217ed
Add account-closing in Travis config
c8647f4
Add server-tools in Travis config
f7ab04a
Inherit of product_id_change on product_id field, for better usabilit…
d8c938f
You can now write directly in the "number_of_days" field
9ee00ea
Fix flake8 warnings
1702217
Fix spelling mistake notified by @jbeficent
d61595d
Move dependencies to other OCA projects to oca_dependencies.txt
bf10018
Update POT file and FR translation
c1ca1eb
Take into account the remarks of Jordi Ballester
alexis-via File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
stock-logistics-workflow | ||
stock-logistics-transport | ||
account-closing | ||
server-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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