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

[16.0][MIG] rental_base #48

Open
wants to merge 21 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8cd0404
[14.0][MIG] rental_base (#4)
chandni299 Jan 17, 2022
0b0a55f
Added translation using Weblate (French)
abdawone Feb 15, 2022
2f757e8
Translated using Weblate (French)
abdawone Feb 15, 2022
c43ee13
[IMP] rental_base: correction to fields and method and fix pylint che…
chandni300 Mar 25, 2022
7fa0254
[UPD] Update rental_base.pot
oca-travis Apr 14, 2022
cadf8ef
rental_base 14.0.1.0.1
OCA-git-bot Apr 14, 2022
d632c88
Update translation files
oca-transbot Apr 14, 2022
f4051b2
[14.0][IMP] rental_base: documentation improvement
chandni299 Oct 10, 2022
a8a0227
[IMP] rental_base, rental_offday, rental_pricelist, rental_pricelist_…
chandni299 Oct 10, 2022
8371a33
[IMP] change icon to rental modules
chandni299 Jan 3, 2023
92edc0f
[IMP] correct icon to rental modules
chandni299 Jan 17, 2023
72a0c86
[IMP] adapt xml structure, remove data tag
chandni299 Feb 1, 2024
e0b990a
[IMP] remove data tags and string attribute from tree tag
chandni299 Feb 1, 2024
d880da6
[IMP]rental_base: pre-commit stuff
adasatorres Sep 16, 2024
9a6827f
[MIG] rental_base : Migration to 16.0
adasatorres Sep 16, 2024
54a3c86
[DON'T MERGE] test-requirements.txt
Christian-RB Nov 28, 2024
47e39ad
[FIX] Showing in the Rental application the products marked with the …
edescalona Dec 27, 2024
5ef828f
[IMP] Add widget daterange field Period date in sale order
edescalona Dec 27, 2024
86a12fd
[FIX] Calculation of periods in the order lines of the Rental applica…
edescalona Dec 27, 2024
7e4869c
[FIX] Tests
edescalona Dec 27, 2024
1bcf1b2
[FIX] Enable rental from Inventory, Sales
edescalona Jan 2, 2025
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
115 changes: 115 additions & 0 deletions rental_base/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
===========
Rental Base
===========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3aa33913fc209f65f5d921f23e1f593e9e994d0753b589e5de2d93d567558aac
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fvertical--rental-lightgray.png?logo=github
:target: https://github.com/OCA/vertical-rental/tree/16.0/rental_base
:alt: OCA/vertical-rental
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/vertical-rental-16-0/vertical-rental-16-0-rental_base
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/vertical-rental&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

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
=========

- 8d191ff7 2022-04-10 15:41:16 +0200 wagner@elegosoft.com add missing/lost documentation (issue #4516)
- 39ff8efc 2022-03-14 15:15:31 +0100 cpatel@elegosoft.com [IMP] rental_tour correction, (issue#4516)
- ac980b89 2022-02-28 17:36:28 +0100 cpatel@elegosoft.com [FIX][IMP] correct code, (issue#4516)
- 4509f78a 2022-02-23 20:48:33 +0100 wagner@elegosoft.com (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)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/vertical-rental/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/vertical-rental/issues/new?body=module:%20rental_base%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* elego Software Solutions GmbH

Contributors
~~~~~~~~~~~~

* elego Software Solutions GmbH

* `Binhex <http://www.binhex.cloud>`_:

* Adasat Torres de León <a.torres@binhex.cloud>
* Zuzanna Elzbieta Szalaty Szalaty <zuzanna@binhex.cloud>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/vertical-rental <https://github.com/OCA/vertical-rental/tree/16.0/rental_base>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions rental_base/README/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* elego Software Solutions GmbH

* `Binhex <http://www.binhex.cloud>`_:

* Adasat Torres de León <a.torres@binhex.cloud>
* Zuzanna Elzbieta Szalaty Szalaty <zuzanna@binhex.cloud>
4 changes: 4 additions & 0 deletions rental_base/README/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
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.
4 changes: 4 additions & 0 deletions rental_base/README/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- 8d191ff7 2022-04-10 15:41:16 +0200 wagner@elegosoft.com add missing/lost documentation (issue #4516)
- 39ff8efc 2022-03-14 15:15:31 +0100 cpatel@elegosoft.com [IMP] rental_tour correction, (issue#4516)
- ac980b89 2022-02-28 17:36:28 +0100 cpatel@elegosoft.com [FIX][IMP] correct code, (issue#4516)
- 4509f78a 2022-02-23 20:48:33 +0100 wagner@elegosoft.com (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)
19 changes: 19 additions & 0 deletions rental_base/README/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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": "16.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",
}
13 changes: 13 additions & 0 deletions rental_base/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?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