Repository
OCA/vertical-rental · module folder · Try on Runboat
Module version
1.0.0
Category
Rental
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/vertical-rental
Last tracking update
2026-08-07 08:09:33
Authors
Odoo Community Association (OCA), elego Software Solutions GmbH
Maintainers
Odoo Community Association (OCA), elego Software Solutions GmbH
Committers
Weblate, oca-ci, Yu Weng
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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_id Many2one → sale.order.line
    comodel_name='sale.order.line' ondelete='set null' string='Order Line (of additional off-day)'
  • date Date
    required=True
  • fixed_order_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' ondelete='set null' string='Order Line (of fixed off-day)'
  • name Char
    string='Description'
Public methods (0)

No public methods.

New fields (8)
  • add_additional_offdays Boolean
    string='Add'
  • add_offday_ids One2many → rental.offday
    comodel_name='rental.offday' inverse_name='add_order_line_id' string='Additional Off-Days'
  • fixed_offday_ids One2many → rental.offday
    comodel_name='rental.offday' inverse_name='fixed_order_line_id' string='Fixed Off-Days'
  • fixed_offday_type Selection
    default='none' selection=[('none', 'none'), ('weekend', 'Weekend')] string='Off-Day Type'
  • offday_date_end Date
    string='Offday End Date'
  • offday_date_start Date
    string='Offday Start Date'
  • offday_number Float
    compute='_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_offday Boolean
    compute='_compute_show_offday' string='Show Off-Days'
Public methods (8)
  • 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…

Status
Open migration PR — not merged yet for this version
CI status
checks running
Open since
630 days ago
Last activity
427 days ago
Repository
OCA/vertical-rental
Pull request
[17.0][MIG] rental_offday (#56)