forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial check-in of the rental project.
- Loading branch information
Alexis de Lattre
committed
Jan 28, 2014
0 parents
commit f7a80c5
Showing
16 changed files
with
1,245 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Sale Rental module for OpenERP | ||
# Copyright (C) 2014 Akretion (http://www.akretion.com) | ||
# @author Alexis de Lattre <[email protected]> | ||
# | ||
# 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,60 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Rental module for OpenERP | ||
# Copyright (C) 2014 Akretion (http://www.akretion.com) | ||
# @author Alexis de Lattre <[email protected]> | ||
# | ||
# 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', | ||
'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, 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 contact Alexis de Lattre from Akretion <[email protected]> for any help or question about this module. | ||
""", | ||
'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', | ||
], | ||
'installable': True, | ||
'active': False, | ||
} |
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,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Copyright (C) 2014 Akretion (http://www.akretion.com/) | ||
@author Alexis de Lattre <[email protected]> | ||
The licence is in the file __openerp__.py | ||
--> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<record id="product_normal_form_view" model="ir.ui.view"> | ||
<field name="name">rental.product.product.form</field> | ||
<field name="model">product.product</field> | ||
<field name="inherit_id" ref="product.product_normal_form_view" /> | ||
<field name="arch" type="xml"> | ||
<notebook position="inside"> | ||
<page name="rental" string="Rental"> | ||
<group name="rental-service" | ||
attrs="{'invisible': [('type', '!=', 'service')]}"> | ||
<field name="rented_product_id"/> | ||
</group> | ||
<group name="rental-product" | ||
attrs="{'invisible': [('type', '=', 'service')]}" | ||
string="Related Rental Services" col="1"> | ||
<field name="rental_service_ids" nolabel="1"/> | ||
<button type="action" | ||
name="%(create_rental_product_action)d" | ||
string="Create Rental Service" /> | ||
</group> | ||
</page> | ||
</notebook> | ||
</field> | ||
</record> | ||
|
||
|
||
</data> | ||
</openerp> |
Oops, something went wrong.