Rental Off-Day
rental_offday · OCA/vertical-rental
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
1 migration note
2 models
1 view
0 HTTP endpoints
Migration considerations
view_order_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_form |
rental_offday.view_order_form | sale.order | form | Inherits rental_base.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (4)
-
add_order_line_idMany2one → sale.order.linecomodel_name='sale.order.line'ondelete='set null'string='Order Line (of additional off-day)' -
dateDaterequired=True -
fixed_order_line_idMany2one → sale.order.linecomodel_name='sale.order.line'ondelete='set null'string='Order Line (of fixed off-day)' -
nameCharstring='Description'
No public methods.
New fields (8)
-
add_additional_offdaysBooleanstring='Add' -
add_offday_idsOne2many → rental.offdaycomodel_name='rental.offday'inverse_name='add_order_line_id'string='Additional Off-Days' -
fixed_offday_idsOne2many → rental.offdaycomodel_name='rental.offday'inverse_name='fixed_order_line_id'string='Fixed Off-Days' -
fixed_offday_typeSelectiondefault='none'selection=[('none', 'none'), ('weekend', 'Weekend')]string='Off-Day Type' -
offday_date_endDatestring='Offday End Date' -
offday_date_startDatestring='Offday Start Date' -
offday_numberFloatcompute='_compute_offday_number'help='This is the number of days, the product is not used by the customer during the rental period.\nFixed off-days, e.g. for the weekend, can be created automatically but you can also add manually more off-days.'string='Number of Off-Days' -
show_offdayBooleancompute='_compute_show_offday'string='Show Off-Days'
-
get_rental_offdays(self, date_from, date_to)@api.model -
is_weekend(self, date)@api.model -
onchange_add_additional_offdays(self)@api.onchange('add_additional_offdays') -
onchange_add_offday_ids(self)@api.onchange('add_offday_ids', 'start_date', 'end_date') -
onchange_fixed_offday_type(self)@api.onchange('fixed_offday_type', 'start_date', 'end_date') -
onchange_offday_number(self)@api.onchange('offday_number') -
product_uom_change(self)@api.onchange('product_uom', 'product_uom_qty') -
rental_qty_number_of_days_change(self)@api.onchange('rental_qty', 'number_of_time_unit', 'product_id')
Loading…
Loading…
Loading…
Loading…