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

[17.0][MIG] rental_pricelist #54

Open
wants to merge 73 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
ad31fd3
Port sale_start_end_dates and sale_rental (#353)
Nov 8, 2016
9cdc3d4
sale_start_end_dates and sale_rental
dvdhinesh Nov 15, 2016
dfa6288
Product qty on rental pickings
alexis-via May 11, 2017
95b0765
Auto configure sale_rental module via post_install.py script
alexis-via May 24, 2017
14792b4
sale_rental: fix warning @constrains parameter 'must_have_dates' is n…
alexis-via Apr 4, 2018
70c3183
pylint
rousseldenis Sep 4, 2018
48e6e30
sale_rental: Migration to 11.0
Mar 29, 2019
1fdb437
[MIG] sale_start_end_dates and sale_rental to v12
alexis-via Jul 14, 2019
fc973e8
sale_rental: Improve the code of object sale.rental
alexis-via Jul 16, 2019
bce7f18
[IMP] enhancements suggested in code reviews
gurneyalex Oct 15, 2019
6bc1f0a
[FIX] Archive rental routes rather than delete
sadamo Oct 15, 2019
fecaf3f
[UPD] Update sale_rental.pot
oca-travis Sep 16, 2020
d8a4b81
[UPD] README.rst
OCA-git-bot Sep 16, 2020
380af26
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Oct 1, 2020
968f2cd
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Oct 2, 2020
dd9cb7d
Update translation files
oca-transbot Oct 9, 2020
bbd7ec8
Update translation files
oca-transbot Nov 22, 2020
2393b6c
Translated using Weblate (Portuguese)
pedrocs-exo Feb 8, 2021
408d006
[IMP] sale_rental: extract function _run_rental_procurement
yweng8111 Mar 5, 2021
eff7446
[UPD] Update sale_rental.pot
oca-travis Mar 12, 2021
3548296
sale_rental 12.0.1.1.0
OCA-git-bot Mar 12, 2021
eb5ca0b
Update translation files
oca-transbot Mar 12, 2021
30b389e
[UPD] Update sale_rental.pot
oca-travis Mar 12, 2021
b9d2689
Update translation files
oca-transbot Mar 12, 2021
007e3f5
[MIG] sale_rental from v12 to v14
alexis-via Jul 31, 2021
cf07c6a
sale_rental: black, isort, etc.
alexis-via Jul 31, 2021
4f1486f
[UPD] Update sale_rental.pot
oca-travis Dec 7, 2021
2f76051
[UPD] README.rst
OCA-git-bot Dec 7, 2021
f8f9113
[MIG] sale_rental: Migration to 15.0
kirca Jan 17, 2022
68f7ab1
[IMP] : black, isort, prettier, pylint
kirca Jan 17, 2022
55c4884
[UPD] Update sale_rental.pot
May 17, 2022
3ccdd58
[UPD] README.rst
OCA-git-bot May 17, 2022
2d8d924
sale_rental 15.0.1.0.1
OCA-git-bot May 17, 2022
3daa40a
[UPD] README.rst
OCA-git-bot Jun 2, 2022
933787b
[UPD] README.rst
OCA-git-bot Jun 2, 2022
f1f72a0
Translated using Weblate (French (France))
gregory-moka Jun 3, 2022
95adb0a
Translated using Weblate (French (France))
gregory-moka Jun 3, 2022
46f9cf4
Translated using Weblate (French)
gregory-moka Jul 4, 2022
5d83c16
[16.0][MIG] sale_rental
Murtaza-OSI Jan 3, 2023
db64170
[IMP] sale_rental: black, isort, prettier
Mar 7, 2024
b247abb
[FIX] rework unit test
Mar 14, 2024
0f18339
[IMP] sale_rental: black, isort, prettier
Mar 14, 2024
a947ac5
[IMP] sale_rental: pre-commit auto fixes
edescalona Nov 27, 2024
6768771
[IMP] sale_rental: pre-commit auto fixes
edescalona Nov 27, 2024
0494a67
[MIG] sale_rental: Migration to 17.0
edescalona Nov 27, 2024
550716d
[REM] Remove sale_rental module from branch 17.0
edescalona Nov 27, 2024
080e273
[14.0][MIG] rental_pricelist: Migration to 14.0 (#6)
chandni299 Mar 24, 2022
a1325e7
[IMP] rental_base: correction to fields and method and fix pylint che…
chandni300 Mar 25, 2022
3731a58
[UPD] Update rental_pricelist.pot
oca-travis Apr 14, 2022
543d5bb
rental_pricelist 14.0.1.0.1
OCA-git-bot Apr 14, 2022
3881738
Update translation files
oca-transbot Apr 14, 2022
a1fd76f
[14.0][IMP] rental_pricelist: code + documentation improvement
chandni299 Oct 10, 2022
916ff53
[IMP] rental_base, rental_offday, rental_pricelist, rental_pricelist_…
chandni299 Oct 10, 2022
2f768a1
[14.0][IMP] improve test coverage
chandni299 Oct 10, 2022
1652e07
[IMP] change icon to rental modules
chandni299 Jan 3, 2023
186f30e
[14.0][IMP] improve test coverage once again
chandni299 Jan 3, 2023
8e0b7c1
[IMP] correct icon to rental modules
chandni299 Jan 17, 2023
05405f1
[IMP] adjust domain for product_id in sale.order.line
yweng8111 Mar 13, 2023
0540c0f
rental_pricelist 14.0.1.0.2
OCA-git-bot Mar 16, 2023
86190c4
[IMP] remove data tags and string attribute from tree tag
chandni299 Feb 1, 2024
055f3fb
[UPD] Update rental_pricelist.pot
Feb 5, 2024
7f07f55
Update translation files
weblate Feb 5, 2024
025a362
[MIG]rental_pricelist: Migration to 16.0
adasatorres Sep 16, 2024
ed6f25d
[IMP] rental_pricelist: pre-commit auto fixes
edescalona Nov 27, 2024
34b6776
[MIG] rental_pricelist: Migration to 17.0
edescalona Nov 28, 2024
13624c2
[17.0] rental_pricelist: Fixing onchange for product_id, product_uom …
edescalona Nov 28, 2024
0890d25
[17.0][FIX] rental_pricelist: Fixing onchange for product_id, product…
edescalona Nov 28, 2024
2894c39
[DON'T MERGE] test-requirements.txt
edescalona Nov 29, 2024
1e92f76
[17.0][FIX] pre-commit
edescalona Nov 29, 2024
bf25b8d
[17.0][FIX] correcting test
edescalona Nov 29, 2024
b58d8ea
[17.0][FIX] pre-commit
edescalona Nov 29, 2024
c3d7d3c
[IMP] Add tab Rental Price in view product template
edescalona Jan 9, 2025
4bce005
[FIX] The delivery note is not generated once you confirm the rental …
edescalona Jan 10, 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
126 changes: 126 additions & 0 deletions rental_pricelist/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
================
Rental Pricelist
================

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

.. |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_pricelist
: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_pricelist
: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|

*This file has been generated on 2022-05-04-12-21-41. Changes to it will be overwritten.*

Enables the user to define different rental prices with time uom (Month, Day and Hour).

Rental prices are usually scaled prices based on a time unit, typically day, sometimes months or hour.
This modules integrates the standard Odoo pricelists into rental use cases and allows the user an
easy way to specify the prices in a product tab as well as to use all the enhanced pricelist features.

**Table of contents**

.. contents::
:local:

Usage
=====

Create a rentable product:
* Go to Rentals > Configuration > Settings.
* Please activate the checkbox for using 'Product Variants'.
* Go to Rentals > Products > Products.
* Create a new storable product.
* Active the checkbox 'Can be Rented'.

Configure the naming of rental services:
* Go to Settings > Users & Companies > Companies.
* To to page 'Rental Services'.
* Configure the rental service names by providing a prefix and suffix for the name and default code.

Create the rental services:
* Go to the previously created rentable storable product.
* Go to page 'Rental Price'.
* Activate the boolean fields for hourly, daily or monthly rental as needed.
* Save the product, which creates the related rental services for the given time units.
* Add a usual price for one hour, one day or one month.
* Add bulk prices, e.g. one day costs 300 €, 7 days 290 €, 21 days 250 €, and so on.

Hint: The (bulk) prices are added in the product form view of the storable, rentable product
but are actually used for its related rental services!

Create a rental order:
* Go to Rentals > Customer > Rental Quotations.
* Create a new order and choose the type 'Rental Order'.
* Choose the storable rental product (not the rental service!).
* Choose the rental time unit, which actually loads the correct related rental service.
* 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 and rental_base module.

Changelog
=========

- 8d191ff7 2022-04-10 15:41:16 +0200 [email protected] add missing/lost documentation (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)

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_pricelist%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, Odoo Community Association (OCA)

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_pricelist>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
8 changes: 8 additions & 0 deletions rental_pricelist/README/CONFIGURATION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To configure this module, you need to:

#. Go to company settings and define the default interval ranges on 'Rental Interval Prices' tab.
These ranges will be applied for computation of price intervals for rental service products when interval pricing is activated
in stockable product.

#. If desired go to 'RS (Prefix and Suffix)' tab an define how rental interval service product
names and reference numbers are created.
1 change: 1 addition & 0 deletions rental_pricelist/README/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
elego Software Solutions GmbH, Odoo Community Association (OCA)
7 changes: 7 additions & 0 deletions rental_pricelist/README/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*This file has been generated on 2022-05-04-12-21-41. Changes to it will be overwritten.*

Enables the user to define different rental prices with time uom (Month, Day and Hour).

Rental prices are usually scaled prices based on a time unit, typically day, sometimes months or hour.
This modules integrates the standard Odoo pricelists into rental use cases and allows the user an
easy way to specify the prices in a product tab as well as to use all the enhanced pricelist features.
2 changes: 2 additions & 0 deletions rental_pricelist/README/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- 8d191ff7 2022-04-10 15:41:16 +0200 [email protected] add missing/lost documentation (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)
34 changes: 34 additions & 0 deletions rental_pricelist/README/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Create a rentable product:
* Go to Rentals > Configuration > Settings.
* Please activate the checkbox for using 'Product Variants'.
* Go to Rentals > Products > Products.
* Create a new storable product.
* Active the checkbox 'Can be Rented'.

Configure the naming of rental services:
* Go to Settings > Users & Companies > Companies.
* To to page 'Rental Services'.
* Configure the rental service names by providing a prefix and suffix for the name and default code.

Create the rental services:
* Go to the previously created rentable storable product.
* Go to page 'Rental Price'.
* Activate the boolean fields for hourly, daily or monthly rental as needed.
* Save the product, which creates the related rental services for the given time units.
* Add a usual price for one hour, one day or one month.
* Add bulk prices, e.g. one day costs 300 €, 7 days 290 €, 21 days 250 €, and so on.

Hint: The (bulk) prices are added in the product form view of the storable, rentable product
but are actually used for its related rental services!

Create a rental order:
* Go to Rentals > Customer > Rental Quotations.
* Create a new order and choose the type 'Rental Order'.
* Choose the storable rental product (not the rental service!).
* Choose the rental time unit, which actually loads the correct related rental service.
* 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 and rental_base module.
4 changes: 4 additions & 0 deletions rental_pricelist/__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 .hooks import set_multi_sales_price
from . import models
26 changes: 26 additions & 0 deletions rental_pricelist/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Part of rental-vertical See LICENSE file for full copyright and licensing details.

{
"name": "Rental Pricelist",
"summary": "Enables the user to define different rental prices with "
"time uom (Month, Day and Hour).",
"version": "17.0.1.0.0",
"category": "Rental",
"author": "elego Software Solutions GmbH, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/vertical-rental",
"depends": [
"rental_base",
],
"data": [
"views/sale_view.xml",
"views/product_view.xml",
"views/product_template_view.xml",
"views/res_company_view.xml",
],
"demo": [],
"qweb": [],
"post_init_hook": "set_multi_sales_price",
"application": False,
"installable": True,
"license": "AGPL-3",
}
9 changes: 9 additions & 0 deletions rental_pricelist/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Part of rental-vertical See LICENSE file for full copyright and licensing details.


def set_multi_sales_price(env):
conf_page = env["res.config.settings"].create({})
conf_page.group_uom = True
conf_page.group_product_pricelist = True
conf_page.product_pricelist_setting = "advanced"
conf_page.execute()
Loading
Loading