Rental Pricelist

rental_pricelist
REPOSITORY
REPOSITORYOCA/vertical-rental
GIT
GIThttps://github.com/OCA/vertical-rental.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/vertical-rental/tree/16.0/rental_pricelist
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYRental
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), elego Software Solutions GmbH
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), elego Software Solutions GmbH
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Yu Weng
WEBSITE
WEBSITEhttps://github.com/OCA/vertical-rental
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:54:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-analytic:
    - product_analytic
OCA/account-closing:
    - account_invoice_start_end_dates
OCA/sale-workflow:
    - sale_order_type
    - sale_start_end_dates
OCA/vertical-rental:
    - rental_base
    - sale_rental
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
    - sale_stock
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_normal_form_view view.product.product.form product.product xpath Inherits product.product_normal_form_view
view_company_rental_service_form res.company.form res.company notebook Inherits base.view_company_form
view_order_form rental_pricelist.view_order_form sale.order xpath Inherits rental_base.view_order_form
view_sales_order_filter view.sales.order.filter sale.order xpath Inherits sale.view_sales_order_filter
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')
REPOSITORY
REPOSITORYOCA/vertical-rental
GIT
GIThttps://github.com/OCA/vertical-rental.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/vertical-rental/tree/14.0/rental_pricelist
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYRental
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), elego Software Solutions GmbH
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), elego Software Solutions GmbH
COMMITTERS
COMMITTERSGitHub, OCA Transbot, oca-travis, Weblate, OCA-git-bot, oca-ci, Yu Weng, chandni299, cpatel
WEBSITE
WEBSITEhttps://github.com/OCA/vertical-rental
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-analytic:
    - product_analytic
OCA/account-closing:
    - account_invoice_start_end_dates
OCA/sale-workflow:
    - sale_order_type
    - sale_rental
    - sale_start_end_dates
OCA/vertical-rental:
    - rental_base
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - payment
    - utm
    - sale_stock
    - stock_account
    - stock
    - barcodes
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
product_normal_form_view view.product.product.form product.product group Inherits product.product_normal_form_view
product_template_only_form_view view.product.template.form product.template group Inherits product.product_template_only_form_view
view_company_rental_service_form res.company.form res.company notebook Inherits base.view_company_form
view_order_form rental_pricelist.view_order_form sale.order xpath Inherits rental_base.view_order_form
view_sales_order_filter view.sales.order.filter sale.order xpath Inherits sale.view_sales_order_filter
Models touched (5)

New fields (3)
  • 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)'
Public methods (0)

No public methods.

New fields (13)
  • 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)'
  • 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_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'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (12)
  • 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_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_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_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
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_confirm(self)

New fields (3)
  • 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'
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')
REPOSITORY
REPOSITORYOCA/vertical-rental
GIT
GIThttps://github.com/OCA/vertical-rental.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/vertical-rental/tree/12.0/rental_pricelist
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYRental
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Elego Software Solutions GmbH
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Elego Software Solutions GmbH
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, Yu Weng, Maria Sparenberg
WEBSITE
WEBSITEhttps://github.com/OCA/vertical-rental
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-analytic:
    - product_analytic
OCA/account-closing:
    - account_invoice_start_end_dates
OCA/sale-workflow:
    - sale_order_type
    - sale_rental
    - sale_start_end_dates
OCA/vertical-rental:
    - rental_base
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - sale_stock
    - sale
    - sales_team
    - payment
    - stock_account
    - stock
    - barcodes
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_normal_form_view view.product.product.form product.product xpath Inherits product.product_normal_form_view
view_company_rental_service_form res.company.form res.company notebook Inherits base.view_company_form
view_order_form rental_pricelist.view_order_form sale.order xpath Inherits rental_base.view_order_form
view_sales_order_filter view.sales.order.filter sale.order xpath Inherits sale.view_sales_order_filter
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)
    @api.model
  • write(self, vals)
    @api.multi

New fields (17)
  • rental_service_copy_image Boolean
    help='Copy the image from storable product to its rental service.' string='Copy Image'
  • 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)
    @api.multi

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.multi@api.onchange('can_sell_rental')
  • onchange_display_product_id(self)
    @api.multi@api.onchange('display_product_id')
  • onchange_rental(self)
    @api.multi@api.onchange('rental')
  • onchange_start_end_date(self)
    @api.onchange('start_date', 'end_date', 'product_uom')
  • product_id_change(self)
    @api.multi@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')
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/vertical-rental
PULL REQUEST
PULL REQUEST[17.0][MIG] rental_pricelist (#54)