Skip to content

Commit

Permalink
[14.0][MIG] rental_base (OCA#4)
Browse files Browse the repository at this point in the history
* selectively add some files from the v12 branch

* initial add of several rental modules

* [UPD] Update rental_base.pot

* Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: vertical-rental-12.0/vertical-rental-12.0-rental_base
Translate-URL: https://translation.odoo-community.org/projects/vertical-rental-12-0/vertical-rental-12-0-rental_base/

* [IMP] rental_base: black, isort, prettier

* [MIG] rental_base: Migration to 14.0

Co-authored-by: Maria Sparenberg <maria.sparenberg@elegosoft.com>
Co-authored-by: oca-travis <oca+oca-travis@odoo-community.org>
Co-authored-by: OCA Transbot <transbot@odoo-community.org>
Co-authored-by: cpatel <cpatel@elegosoft.com>
  • Loading branch information
5 people authored and edescalona committed Nov 27, 2024
1 parent ba0838e commit 9fa8782
Show file tree
Hide file tree
Showing 30 changed files with 3,878 additions and 0 deletions.
168 changes: 168 additions & 0 deletions rental_base/README.rst

Large diffs are not rendered by default.

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 2021-10-25-10-18-19. 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.
125 changes: 125 additions & 0 deletions rental_base/README/HISTORY.rst

Large diffs are not rendered by default.

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.
4 changes: 4 additions & 0 deletions rental_base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Part of rental-vertical See LICENSE file for full copyright and licensing details.
from . import models
from . import tests
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": "14.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",
}
15 changes: 15 additions & 0 deletions rental_base/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data 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>

</data>
</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>
11 changes: 11 additions & 0 deletions rental_base/data/product_uom_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<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>
</data>
</odoo>
Loading

0 comments on commit 9fa8782

Please sign in to comment.