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

[15.0][MIG] rental base #40

Open
wants to merge 15 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
53 changes: 53 additions & 0 deletions rental_base/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Rental Base
====================================================

*This file has been generated on 2023-02-19-14-21-34. Changes to it will be overwritten.*

Summary
-------

Manage Rental of Products

Description
-----------

Base Module for Rental Management

This module provides a new menu for rental management.
It is based on the sale_rental module that currently can be found in sale-workflow repository.


Usage
-----

Create a rentable product and its rental service.
* Go to Rentals > Configuration > Settings.
* Please activate the checkbox for using 'Product Variants'.
* Go to Rentals > Products > Products.
* Create a new storable product.
* Activate the checkbox 'Can be Rented'.
* Go to page 'Sales & Purchase'.
* Create the rental service and configure its name and price.

Create a rental order:
* Go to Rentals > Customer > Rental Quotations.
* Create a new order and choose the type 'Rental Order'.
* Add the rental service as an order line.
* Set the quantity to rent out one or several storable rentable products.
* Choose start and end date.
* Confirm the order.
* Check out the two deliveries, one for outgoing and one for incoming delivery.

Please also see the usage section of sale_rental module.

Changelog
---------

- c0f830f7 2022-04-21 13:21:31 +0200 [email protected] (elego-github/v15) complete remove references to product_packaging (issue #4968)
- 1a0c6ce1 2022-04-21 11:28:55 +0200 [email protected] adapt to product_packaging removal (issue #4968)
- 9089b1d5 2022-04-15 14:16:12 +0200 [email protected] (tag: odoo-fox-v15_v15_int_current_daily, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-26, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-25, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-23, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-22, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-21, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-17, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-16, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-15, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-13, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-12, tag: bp_fox_v15_integration-ceqp-2, tag: bp_fox_v15_integration-cep-27, tag: bp_fox_v15_integration-cep-26, tag: bp_fox_v15_integration-cep-25, tag: bp_fox_v15_integration-cep-23, tag: bp_fox_v15_integration-cep-22, tag: bp_fox_v15_integration-cep-21, tag: bp_fox_v15_integration-cep-17, tag: bp_fox_v15_integration-cep-16, tag: bp_fox_v15_integration-cep-15, tag: bp_fox_v15_integration-cep-13, tag: bp_fox_v15_integration-cep-12, tag: baseline_odoo-fox-v15_v15_fox_v15_daily_build-26, origin/fox_v15_integration-cep-26, origin/fox_v15_integration-cep-25, origin/fox_v15_integration-cep-23, origin/fox_v15_integration-cep-22, origin/fox_v15_integration-cep-21, origin/fox_v15_integration-cep-17, origin/fox_v15_integration-cep-16, origin/fox_v15_integration-cep-15, origin/fox_v15_integration-cep-13, origin/fox_v15_integration-cep-12) update module versions for v15 and remove old migration scripts (issue #4967)
- 8d191ff7 2022-04-10 15:41:16 +0200 [email protected] add missing/lost documentation (issue #4516)
- 39ff8efc 2022-03-14 15:15:31 +0100 [email protected] [IMP] rental_tour correction, (issue#4516)
- ac980b89 2022-02-28 17:36:28 +0100 [email protected] [FIX][IMP] correct code, (issue#4516)
- 4509f78a 2022-02-23 20:48:33 +0100 [email protected] (origin/feature_4516_add_files_ported_from_v12_v14, feature_4516_add_files_ported_from_v12_v14) add files ported to v14 by cpatel and khanhbui (issue #4516)

5 changes: 5 additions & 0 deletions rental_base/README/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

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

elego Software Solutions GmbH, Odoo Community Association (OCA)
17 changes: 17 additions & 0 deletions rental_base/README/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Rental Base
====================================================

*This file has been generated on 2023-02-19-14-21-34. Changes to it will be overwritten.*

Summary
-------

Manage Rental of Products

Description
-----------

Base Module for Rental Management

This module provides a new menu for rental management.
It is based on the sale_rental module that currently can be found in sale-workflow repository.
11 changes: 11 additions & 0 deletions rental_base/README/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

Changelog
---------

- c0f830f7 2022-04-21 13:21:31 +0200 [email protected] (elego-github/v15) complete remove references to product_packaging (issue #4968)
- 1a0c6ce1 2022-04-21 11:28:55 +0200 [email protected] adapt to product_packaging removal (issue #4968)
- 9089b1d5 2022-04-15 14:16:12 +0200 [email protected] (tag: odoo-fox-v15_v15_int_current_daily, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-26, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-25, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-23, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-22, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-21, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-17, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-16, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-15, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-13, tag: daily_odoo-fox-v15_v15_fox_v15_daily_build-12, tag: bp_fox_v15_integration-ceqp-2, tag: bp_fox_v15_integration-cep-27, tag: bp_fox_v15_integration-cep-26, tag: bp_fox_v15_integration-cep-25, tag: bp_fox_v15_integration-cep-23, tag: bp_fox_v15_integration-cep-22, tag: bp_fox_v15_integration-cep-21, tag: bp_fox_v15_integration-cep-17, tag: bp_fox_v15_integration-cep-16, tag: bp_fox_v15_integration-cep-15, tag: bp_fox_v15_integration-cep-13, tag: bp_fox_v15_integration-cep-12, tag: baseline_odoo-fox-v15_v15_fox_v15_daily_build-26, origin/fox_v15_integration-cep-26, origin/fox_v15_integration-cep-25, origin/fox_v15_integration-cep-23, origin/fox_v15_integration-cep-22, origin/fox_v15_integration-cep-21, origin/fox_v15_integration-cep-17, origin/fox_v15_integration-cep-16, origin/fox_v15_integration-cep-15, origin/fox_v15_integration-cep-13, origin/fox_v15_integration-cep-12) update module versions for v15 and remove old migration scripts (issue #4967)
- 8d191ff7 2022-04-10 15:41:16 +0200 [email protected] add missing/lost documentation (issue #4516)
- 39ff8efc 2022-03-14 15:15:31 +0100 [email protected] [IMP] rental_tour correction, (issue#4516)
- ac980b89 2022-02-28 17:36:28 +0100 [email protected] [FIX][IMP] correct code, (issue#4516)
- 4509f78a 2022-02-23 20:48:33 +0100 [email protected] (origin/feature_4516_add_files_ported_from_v12_v14, feature_4516_add_files_ported_from_v12_v14) add files ported to v14 by cpatel and khanhbui (issue #4516)
23 changes: 23 additions & 0 deletions rental_base/README/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

Usage
-----

Create a rentable product and its rental service.
* Go to Rentals > Configuration > Settings.
* Please activate the checkbox for using 'Product Variants'.
* Go to Rentals > Products > Products.
* Create a new storable product.
* Activate the checkbox 'Can be Rented'.
* Go to page 'Sales & Purchase'.
* Create the rental service and configure its name and price.

Create a rental order:
* Go to Rentals > Customer > Rental Quotations.
* Create a new order and choose the type 'Rental Order'.
* Add the rental service as an order line.
* Set the quantity to rent out one or several storable rentable products.
* Choose start and end date.
* Confirm the order.
* Check out the two deliveries, one for outgoing and one for incoming delivery.

Please also see the usage section of sale_rental module.
3 changes: 3 additions & 0 deletions rental_base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Part of rental-vertical See LICENSE file for full copyright and licensing details.
from . import models
from . import wizard
37 changes: 37 additions & 0 deletions rental_base/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Part of rental-vertical See LICENSE file for full copyright and licensing details.

{
"name": "Rental Base",
"version": "15.0.1.0.0",
"category": "Rental",
"summary": "Manage Rental of Products",
"author": "elego Software Solutions GmbH, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/vertical-rental",
"depends": [
"account",
"product_analytic",
"sale",
"sale_order_type",
"sale_rental",
"sale_start_end_dates",
"sale_stock",
"sales_team",
],
"data": [
"security/ir.model.access.csv",
"data/ir_sequence_data.xml",
"data/order_type_data.xml",
"data/product_uom_data.xml",
"wizard/update_sale_line_date_view.xml",
"views/res_config_settings_view.xml",
"views/stock_picking_views.xml",
"views/product_views.xml",
"views/menu_view.xml",
"views/sale_view.xml",
],
"demo": [],
"qweb": [],
"installable": True,
"application": True,
"license": "AGPL-3",
}
11 changes: 11 additions & 0 deletions rental_base/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Sequences for sale.order for rental-->
<record id="seq_rental_order" model="ir.sequence">
<field name="name">Rental Order</field>
<field name="code">sale.order</field>
<field name="prefix">RO</field>
<field name="padding">3</field>
<field name="company_id" eval="False" />
</record>
</odoo>
8 changes: 8 additions & 0 deletions rental_base/data/order_type_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record id="rental_sale_type" model="sale.order.type">
<field name="name">Rental Order</field>
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="sequence_id" ref="seq_rental_order" />
</record>
</odoo>
9 changes: 9 additions & 0 deletions rental_base/data/product_uom_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="product_uom_month" model="uom.uom">
<field name="name">Month(s)</field>
<field name="uom_type">bigger</field>
<field ref="uom.uom_categ_wtime" name="category_id" />
<field name="factor" eval="0.033" />
</record>
</odoo>
Loading
Loading