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_offday #41

Open
wants to merge 14 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
59 changes: 59 additions & 0 deletions rental_offday/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Rental Off-Day
====================================================

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

Summary
-------

Manage off-days in rentals on daily basis

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

During short-term rentals over several days or weeks, the customer and the salesman
agree on so called off-days. On these days the customer still have the rented products
but usually doesn't use them and, therefore, does not pay the daily price. This is often
the case for weekends and holidays, since there might be some legal limitations in using
the products on these days.
In order to meet this requirement, the salesman can add off-days on sale order lines for
products that are rentable in days. These days will not be included in price calculation.


Usage
-----

The off-days can only be used for products rentable in days.

Create a rentable product and its rental service for daily rentals:
* 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'.
* Go to page 'Rental Price'.
* Activate the boolean fields for daily rental.
* Add a usual price for one day.
* Save the product, which creates the related rental service.
* Add bulk prices as desired, e.g. one day costs 300 €, 7 days 290 €, 21 days 250 €, and so on.
* Adjust its stock in location 'Rental In'.

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, e.g. for 3 weeks.
* On the order line you will see a page 'Off-Days' at the bottom.
* Choose the type 'Weekend' in order to create 'Fixed Off-Days' and you get a list with all saturdays and sundays within the rental period.
* Add some additional off-days as needed.
* The number of off-days reduces the rental quantity and is therefore not included in price calculation.
* Confirm the order.

Changelog
---------

- 9089b1d5 2022-04-15 14:16:12 +0200 wagner@elegosoft.com (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 wagner@elegosoft.com add missing/lost documentation (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)

5 changes: 5 additions & 0 deletions rental_offday/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)
20 changes: 20 additions & 0 deletions rental_offday/README/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Rental Off-Day
====================================================

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

Summary
-------

Manage off-days in rentals on daily basis

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

During short-term rentals over several days or weeks, the customer and the salesman
agree on so called off-days. On these days the customer still have the rented products
but usually doesn't use them and, therefore, does not pay the daily price. This is often
the case for weekends and holidays, since there might be some legal limitations in using
the products on these days.
In order to meet this requirement, the salesman can add off-days on sale order lines for
products that are rentable in days. These days will not be included in price calculation.
7 changes: 7 additions & 0 deletions rental_offday/README/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Changelog
---------

- 9089b1d5 2022-04-15 14:16:12 +0200 wagner@elegosoft.com (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 wagner@elegosoft.com add missing/lost documentation (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)
30 changes: 30 additions & 0 deletions rental_offday/README/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

Usage
-----

The off-days can only be used for products rentable in days.

Create a rentable product and its rental service for daily rentals:
* 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'.
* Go to page 'Rental Price'.
* Activate the boolean fields for daily rental.
* Add a usual price for one day.
* Save the product, which creates the related rental service.
* Add bulk prices as desired, e.g. one day costs 300 €, 7 days 290 €, 21 days 250 €, and so on.
* Adjust its stock in location 'Rental In'.

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, e.g. for 3 weeks.
* On the order line you will see a page 'Off-Days' at the bottom.
* Choose the type 'Weekend' in order to create 'Fixed Off-Days' and you get a list with all saturdays and sundays within the rental period.
* Add some additional off-days as needed.
* The number of off-days reduces the rental quantity and is therefore not included in price calculation.
* Confirm the order.
3 changes: 3 additions & 0 deletions rental_offday/__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
23 changes: 23 additions & 0 deletions rental_offday/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Part of rental-vertical See LICENSE file for full copyright and licensing details.

{
"name": "Rental Off-Day",
"summary": "Manage off-days in rentals on daily basis",
"version": "15.0.1.0.0",
"category": "Rental",
"author": "elego Software Solutions GmbH, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/vertical-rental",
"depends": [
"rental_pricelist",
],
"data": [
"security/ir.model.access.csv",
"views/sale_view.xml",
],
"demo": [],
"qweb": [],
"auto_install": False,
"application": False,
"installable": True,
"license": "AGPL-3",
}
229 changes: 229 additions & 0 deletions rental_offday/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * rental_offday
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-06 09:18+0000\n"
"PO-Revision-Date: 2022-01-06 09:18+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "<span>&amp;nbsp; to &amp;nbsp;</span>"
msgstr "<span>&amp;nbsp; bis &amp;nbsp;</span>"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "<span>From &amp;nbsp;</span>"
msgstr "<span>Von &amp;nbsp;</span>"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "<strong>&amp;nbsp; OK? &amp;nbsp;</strong>"
msgstr ""

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__add_additional_offdays
msgid "Add"
msgstr "Hinzufügen"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "Additional Off Days"
msgstr "Weitere Standtage"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__add_offday_ids
msgid "Additional Off-Days"
msgstr "Weitere Standtage"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__create_uid
msgid "Created by"
msgstr "Erstellt von"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__create_date
msgid "Created on"
msgstr "Erstellt am"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__date
msgid "Date"
msgstr "Datum"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "Day(s)"
msgstr "Tag(e)"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__name
msgid "Description"
msgstr "Beschreibung"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__display_name
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__display_name
msgid "Display Name"
msgstr "Anzeigename"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "Fixed Off Days"
msgstr "Feste Standtage"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__fixed_offday_ids
msgid "Fixed Off-Days"
msgstr "Feste Standtage"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__id
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__id
msgid "ID"
msgstr ""

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday____last_update
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line____last_update
msgid "Last Modified on"
msgstr "Zuletzt geändert am"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__write_uid
msgid "Last Updated by"
msgstr "Zuletzt aktualisiert von"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__write_date
msgid "Last Updated on"
msgstr "Zuletzt aktualisiert am"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__offday_number
msgid "Number of Off-Days"
msgstr "Anzahl der Standtage"

#. module: rental_offday
#: code:addons/rental_offday/models/sale.py:0
#, python-format
msgid "Off days' start date must be earlier than end date."
msgstr "Das Startdatum der Standtage muss vor deren Enddatum liegen."

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__fixed_offday_type
msgid "Off-Day Type"
msgstr "Standtage-Typ"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "Off-Days"
msgstr "Standtage"

#. module: rental_offday
#: model_terms:ir.ui.view,arch_db:rental_offday.view_order_form
msgid "Off-Time"
msgstr "Standzeit"

#. module: rental_offday
#: model:ir.model,name:rental_offday.model_rental_offday
msgid "Off-days for daily rentals"
msgstr "Standtage für Vermietungen auf Tagesbasis"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__offday_date_end
msgid "Offday End Date"
msgstr "Enddatum der Standtage"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__offday_date_start
msgid "Offday Start Date"
msgstr "Startdatum der Standtage"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__add_order_line_id
msgid "Order Line (of additional off-day)"
msgstr "Auftragsposition (des weiteren Standtages)"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_rental_offday__fixed_order_line_id
msgid "Order Line (of fixed off-day)"
msgstr "Auftragsposition (des festen Standtages)"

#. module: rental_offday
#: model:ir.model,name:rental_offday.model_sale_order_line
msgid "Sales Order Line"
msgstr "Auftragsposition"

#. module: rental_offday
#: model:ir.model.fields,field_description:rental_offday.field_sale_order_line__show_offday
msgid "Show Off-Days"
msgstr "Standtage anzeigen"

#. module: rental_offday
#: code:addons/rental_offday/models/sale.py:0
#: code:addons/rental_offday/models/sale.py:0
#: code:addons/rental_offday/tests/test_rental_offday.py:0
#, python-format
msgid "The off-day \"%s\" is not between %s and %s."
msgstr "Der Standtag \"%s\" liegt nicht zwischen %s und %s."

#. module: rental_offday
#: code:addons/rental_offday/models/sale.py:0
#: code:addons/rental_offday/tests/test_rental_offday.py:0
#, python-format
msgid "The off-day \"%s\" was already created as fixed off-day."
msgstr "Der Standtag \"%s\" wurde schon als fester Standtag hinzugefügt."

#. module: rental_offday
#: code:addons/rental_offday/models/sale.py:0
#, python-format
msgid "The start date must be anterior to the end date."
msgstr "Das Startdatum muss vor dem Enddatum liegen."

#. module: rental_offday
#: model:ir.model.fields,help:rental_offday.field_sale_order_line__offday_number
msgid ""
"This is the number of days, the product is not used by the customer during the rental period.\n"
"Fixed off-days, e.g. for the weekend, can be created automatically but you can also add manually more off-days."
msgstr ""
"Dies ist die Anzahl der Tage, die das Produkt während des Mietzeitraums nicht vom Kunden benutzt wird.\n"
"Feste Standtage, z.B. für Wochenenden, können automatisch erstellt werden, but auch manuell lassen sich weitere Standtage hinzufügen."

#. module: rental_offday
#: model:ir.model.fields.selection,name:rental_offday.selection__sale_order_line__fixed_offday_type__weekend
msgid "Weekend"
msgstr ""

#. module: rental_offday
#: code:addons/rental_offday/models/sale.py:0
#, python-format
msgid "You cannot add an off day earlier than %s."
msgstr "Sie können keinen Standtag vor dem %s hinzufügen."

#. module: rental_offday
#: code:addons/rental_offday/models/sale.py:0
#, python-format
msgid "You cannot add an off day later than %s."
msgstr "Sie können keinen Standtag nach dem %s hinzufügen."

#. module: rental_offday
#: code:addons/rental_offday/models/rental_offday.py:0
#: code:addons/rental_offday/models/sale.py:0
#, python-format
msgid "You have already created the off-day \"%s\"."
msgstr "Der Standtag \"%s\" wurde schon hinzugefügt."

#. module: rental_offday
#: model:ir.model.fields.selection,name:rental_offday.selection__sale_order_line__fixed_offday_type__none
msgid "none"
msgstr ""
Loading
Loading