Repository
OCA/vertical-rental · module folder · Try on Runboat
Module version
1.0.1
Category
Rental
Folder size
0.17 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-git-bot, oca-ci, Yu Weng
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
rental_offday
Description

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_normal_form_view view.product.product.form product.product form Inherits product.product_normal_form_view
view_company_rental_service_form res.company.form res.company form Inherits base.view_company_form
view_order_form rental_pricelist.view_order_form sale.order form Inherits rental_base.view_order_form
view_sales_order_filter view.sales.order.filter sale.order Inherits sale.view_sales_order_filter
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (4)
  • day_item_id Many2one → product.product
    comodel_name='product.product' string='Rental Service (Day)'
  • hour_item_id Many2one → product.product
    comodel_name='product.product' string='Rental Service (Hour)'
  • month_item_id Many2one → product.product
    comodel_name='product.product' string='Rental Service (Month)'
  • week_item_id Many2one → product.product
    comodel_name='product.product' string='Rental Service (Week)'
Public methods (0)

No public methods.

New fields (17)
  • day_scale_pricelist_item_ids One2many → product.pricelist.item
    comodel_name='product.pricelist.item' copy=False inverse_name='day_item_id' string='Day Scale Pricelist Items'
  • def_pricelist_id Many2one → product.pricelist
    comodel_name='product.pricelist' default=<expr> string='Default Pricelist'
  • hour_scale_pricelist_item_ids One2many → product.pricelist.item
    comodel_name='product.pricelist.item' copy=False inverse_name='hour_item_id' string='Hour Scale Pricelist Items'
  • month_scale_pricelist_item_ids One2many → product.pricelist.item
    comodel_name='product.pricelist.item' copy=False inverse_name='month_item_id' string='Month Scale Pricelist Items'
  • product_rental_day_id Many2one → product.product
    comodel_name='product.product' copy=False ondelete='set null' string='Rental Service (Day)'
  • product_rental_hour_id Many2one → product.product
    comodel_name='product.product' copy=False ondelete='set null' string='Rental Service (Hour)'
  • product_rental_month_id Many2one → product.product
    comodel_name='product.product' copy=False ondelete='set null' string='Rental Service (Month)'
  • product_rental_week_id Many2one → product.product
    comodel_name='product.product' copy=False ondelete='set null' string='Rental Service (Week)'
  • rental_of_day Boolean
    copy=False string='Rented in days'
  • rental_of_hour Boolean
    copy=False string='Rented in hours'
  • rental_of_month Boolean
    copy=False string='Rented in months'
  • rental_of_week Boolean
    copy=False string='Rented in weeks'
  • rental_price_day Float
    copy=False readonly=False related='product_rental_day_id.list_price' store=True string='Price / Day'
  • rental_price_hour Float
    copy=False readonly=False related='product_rental_hour_id.list_price' store=True string='Price / Hour'
  • rental_price_month Float
    copy=False readonly=False related='product_rental_month_id.list_price' store=True string='Price / Month'
  • rental_price_week Float
    copy=False readonly=False related='product_rental_week_id.list_price' store=True string='Price / Week'
  • week_scale_pricelist_item_ids One2many → product.pricelist.item
    comodel_name='product.pricelist.item' copy=False inverse_name='week_item_id' string='Week Scale Pricelist Items'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (16)
  • rental_service_default_code_prefix_day Char
    default='RENT-D' help="Define the default code of the daily rental service by setting a prefix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Prefix of Rental Service Internal Reference (Day)'
  • rental_service_default_code_prefix_hour Char
    default='RENT-H' help="Define the default code of the hourly rental service by setting a prefix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Prefix of Rental Service Internal Reference (Hour)'
  • rental_service_default_code_prefix_month Char
    default='RENT-M' help="Define the default code of the monthly rental service by setting a prefix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Prefix of Rental Service Internal Reference (Month)'
  • rental_service_default_code_prefix_week Char
    default='RENT-W' help="Define the default code of the weekly rental service by setting a prefix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Prefix of Rental Service Internal Reference (Week)'
  • rental_service_default_code_suffix_day Char
    help="Define the default code of the daily rental service by setting a suffix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Suffix of Rental Service Internal Reference (Day)'
  • rental_service_default_code_suffix_hour Char
    help="Define the default code of the hourly rental service by setting a suffix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Suffix of Rental Service Internal Reference (Hour)'
  • rental_service_default_code_suffix_month Char
    help="Define the default code of the monthly rental service by setting a suffix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Suffix of Rental Service Internal Reference (Month)'
  • rental_service_default_code_suffix_week Char
    help="Define the default code of the weekly rental service by setting a suffix code. The entire default code is built by adding the prefix code, the product's default code and the suffix code." string='Suffix of Rental Service Internal Reference (Week)'
  • rental_service_name_prefix_day Char
    default='Rental of' help="Define the name of the daily rental service by setting a prefix. The entire name is built by adding the prefix, the product's name and the suffix." string='Prefix of Rental Service Name (Day)' translate=True
  • rental_service_name_prefix_hour Char
    default='Rental of' help="Define the name of the hourly rental service by setting a prefix. The entire name is built by adding the prefix, the product's name and the suffix." string='Prefix of Rental Service Name (Hour)' translate=True
  • rental_service_name_prefix_month Char
    default='Rental of' help="Define the name of the monthly rental service by setting a prefix. The entire name is built by adding the prefix, the product's name and the suffix." string='Prefix of Rental Service Name (Month)' translate=True
  • rental_service_name_prefix_week Char
    default='Rental of' help="Define the name of the weekly rental service by setting a prefix. The entire name is built by adding the prefix, the product's name and the suffix." string='Prefix of Rental Service Name (Week)' translate=True
  • rental_service_name_suffix_day Char
    default='(Day(s))' help="Define the name of the daily rental service by setting a suffix. The entire name is built by adding the prefix, the product's name and the suffix." string='Suffix of Rental Service Name (Day)' translate=True
  • rental_service_name_suffix_hour Char
    default='(Hour(s))' help="Define the name of the hourly rental service by setting a suffix. The entire name is built by adding the prefix, the product's name and the suffix." string='Suffix of Rental Service Name (Hour)' translate=True
  • rental_service_name_suffix_month Char
    default='(Month(s))' help="Define the name of the monthly rental service by setting a suffix. The entire name is built by adding the prefix, the product's name and the suffix." string='Suffix of Rental Service Name (Month)' translate=True
  • rental_service_name_suffix_week Char
    default='(Week(s))' help="Define the name of the weekly rental service by setting a suffix. The entire name is built by adding the prefix, the product's name and the suffix." string='Suffix of Rental Service Name (Week)' translate=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_confirm(self)

New fields (4)
  • display_product_id Many2one → product.product
    comodel_name='product.product' domain=<expr> string='Product'
  • number_of_time_unit Float
    help='This is the time difference given by start and end date for this order line.' string='Number of TU'
  • rental_ok Boolean
    related='display_product_id.rental' string='Can be rented'
  • sale_ok Boolean
    related='display_product_id.sale_ok' string='Can be Sold'
Public methods (9)
  • onchange_can_sell_rental(self)
    @api.onchange('can_sell_rental')
  • onchange_display_product_id(self)
    @api.onchange('display_product_id')
  • onchange_rental(self)
    @api.onchange('rental')
  • onchange_start_end_date(self)
    @api.onchange('start_date', 'end_date', 'product_uom')
  • product_id_change(self)
    @api.onchange('product_id')
  • product_uom_change(self)
    @api.onchange('product_uom', 'product_uom_qty')
  • rental_product_id_change(self)
    @api.onchange('product_id', 'rental_qty')
  • rental_qty_number_of_days_change(self)
    @api.onchange('rental_qty', 'number_of_time_unit', 'product_id')
  • start_end_dates_product_id_change(self)
    @api.onchange('product_id')

Loading…

Loading…

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