Repository
OCA/vertical-rental · module folder · Try on Runboat
Module version
1.0.2
Category
Rental
Folder size
0.18 MB
License
AGPL-3
Application
Yes
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-git-bot, oca-ci, Yu Weng, PicchiSeba, Adasat Torres de León, Edilio Escalona Almira
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
rental_pricelist, rental_product_pack
Description

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
product_template_form_view product.template form Inherits product.product_template_form_view
rental_product_search_view product.product search Inherits product.product_search_form_view
res_config_settings_view_form res.config.settings form Inherits base.res_config_settings_view_form
sale_order_type rental_base.sale_order_type sale.order form Inherits sale_order_type.sot_view_order_form
sale_rental rental_base.sale_rental sale.order form Inherits sale_rental.view_order_form
sale_start_end_dates rental_base.sale_start_end_dates sale.order form Inherits sale_start_end_dates.view_order_form
sale_stock rental_base.sale_stock sale.order form Inherits sale_stock.view_order_form_inherit_sale_stock
update_sale_line_date_form update.sale.line.date.form update.sale.line.date form New
view_order_form rental_base.view_order_form sale.order form Inherits sale.view_order_form
view_sales_order_filter rental_base.sales_order_filter sale.order Inherits sale.view_sales_order_filter
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (0)

No new fields.

Public methods (1)
  • next_by_code(self, sequence_code, sequence_date=None)
    @api.model

New fields (1)
  • rental Boolean
    args: 'Can be Rent'
Public methods (0)

No public methods.

New fields (3)
  • default_end_date Date
    compute='_compute_default_end_date' readonly=False store=True
  • default_start_date Date
    compute='_compute_default_start_date' readonly=False store=True
  • is_rental_order Boolean
    compute='_compute_is_rental_order' store=True
Public methods (1)
  • unlink(self)

New fields (4)
  • end_date Date
    states={'draft': [('readonly', False)], 'sent': [('readonly', False)], 'sale': [('readonly', False)]}
  • order_type Selection
    compute='_compute_order_type' inverse='_inverse_order_type' selection=[('normal', 'Normal'), ('rental', 'Rental')]
  • rental_qty_uom Many2one
    related='product_id.rented_product_id.uom_id' string='Product Unit of Measure'
  • start_date Date
    states={'draft': [('readonly', False)], 'sent': [('readonly', False)], 'sale': [('readonly', False)]}
Public methods (2)
  • update_start_end_date(self, date_start, date_end)
  • write(self, values)
    Both fields start_date and end_date were made editable in state draft, sent and sale, in order to allow the creation of new sale order lines with start and end dates. However, it is forbidden to write the dates of already existing sale order lines. To update these existing line, the method 'update_start_end_date' should be called. :param values: dictionary :return: Boolean

New fields (8)
  • all_line Boolean
    help='If set, all order lines of this order are updated with the given dates.' string='All Lines'
  • date_end Date
    required=True
  • date_in_line Boolean
    help='If set, you can set an individual date in every selected position.'
  • date_start Date
    required=True
  • from_line Integer
    help='In order to update one or several order lines, please set a number referring to the first order line that should to be changed.' string='From'
  • line_ids One2many → update.sale.line.date.line
    comodel_name='update.sale.line.date.line' inverse_name='wizard_id' string='Positions'
  • order_id Many2one → sale.order
    comodel_name='sale.order'
  • to_line Integer
    help='In order to update one or several order lines, please set a number referring to the last order line that should to be changed.' string='To'
Public methods (4)
  • action_confirm(self)
  • default_get(self, fields)
    @api.model
  • onchange_date_in_line(self)
    @api.onchange('date_in_line')
  • onchange_line(self)
    @api.onchange('from_line', 'to_line', 'all_line')

New fields (7)
  • change Boolean
  • date_end Date
  • date_start Date
  • order_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' required=True
  • product_id Many2one → product.product
    comodel_name='product.product'
  • sequence Integer
  • wizard_id Many2one → update.sale.line.date
    comodel_name='update.sale.line.date' required=True
Public methods (0)

No public methods.

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
631 days ago
Last activity
174 days ago
Repository
OCA/vertical-rental
Pull request
[17.0][MIG] rental_base (#53)