Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 7 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

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

Loading…