Rental Pricelist
rental_pricelist · OCA/vertical-rental
Health
83/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by15/251 module depends on it
-
Maturity18/25In 3 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.18 MB
Module directory on disk
Code analysis
2 migration notes
5 models
4 views
0 HTTP endpoints
Migration considerations
product_normal_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_order_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- rental_offday
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → product.productcomodel_name='product.product'string='Rental Service (Day)' -
hour_item_idMany2one → product.productcomodel_name='product.product'string='Rental Service (Hour)' -
month_item_idMany2one → product.productcomodel_name='product.product'string='Rental Service (Month)' -
week_item_idMany2one → product.productcomodel_name='product.product'string='Rental Service (Week)'
No public methods.
New fields (17)
-
day_scale_pricelist_item_idsOne2many → product.pricelist.itemcomodel_name='product.pricelist.item'copy=Falseinverse_name='day_item_id'string='Day Scale Pricelist Items' -
def_pricelist_idMany2one → product.pricelistcomodel_name='product.pricelist'default=<expr>string='Default Pricelist' -
hour_scale_pricelist_item_idsOne2many → product.pricelist.itemcomodel_name='product.pricelist.item'copy=Falseinverse_name='hour_item_id'string='Hour Scale Pricelist Items' -
month_scale_pricelist_item_idsOne2many → product.pricelist.itemcomodel_name='product.pricelist.item'copy=Falseinverse_name='month_item_id'string='Month Scale Pricelist Items' -
product_rental_day_idMany2one → product.productcomodel_name='product.product'copy=Falseondelete='set null'string='Rental Service (Day)' -
product_rental_hour_idMany2one → product.productcomodel_name='product.product'copy=Falseondelete='set null'string='Rental Service (Hour)' -
product_rental_month_idMany2one → product.productcomodel_name='product.product'copy=Falseondelete='set null'string='Rental Service (Month)' -
product_rental_week_idMany2one → product.productcomodel_name='product.product'copy=Falseondelete='set null'string='Rental Service (Week)' -
rental_of_dayBooleancopy=Falsestring='Rented in days' -
rental_of_hourBooleancopy=Falsestring='Rented in hours' -
rental_of_monthBooleancopy=Falsestring='Rented in months' -
rental_of_weekBooleancopy=Falsestring='Rented in weeks' -
rental_price_dayFloatcopy=Falsereadonly=Falserelated='product_rental_day_id.list_price'store=Truestring='Price / Day' -
rental_price_hourFloatcopy=Falsereadonly=Falserelated='product_rental_hour_id.list_price'store=Truestring='Price / Hour' -
rental_price_monthFloatcopy=Falsereadonly=Falserelated='product_rental_month_id.list_price'store=Truestring='Price / Month' -
rental_price_weekFloatcopy=Falsereadonly=Falserelated='product_rental_week_id.list_price'store=Truestring='Price / Week' -
week_scale_pricelist_item_idsOne2many → product.pricelist.itemcomodel_name='product.pricelist.item'copy=Falseinverse_name='week_item_id'string='Week Scale Pricelist Items'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (16)
-
rental_service_default_code_prefix_dayChardefault='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_hourChardefault='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_monthChardefault='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_weekChardefault='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_dayCharhelp="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_hourCharhelp="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_monthCharhelp="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_weekCharhelp="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_dayChardefault='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_hourChardefault='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_monthChardefault='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_weekChardefault='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_dayChardefault='(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_hourChardefault='(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_monthChardefault='(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_weekChardefault='(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
No public methods.
New fields (0)
No new fields.
Public methods (1)-
action_confirm(self)
New fields (4)
-
display_product_idMany2one → product.productcomodel_name='product.product'domain=<expr>string='Product' -
number_of_time_unitFloathelp='This is the time difference given by start and end date for this order line.'string='Number of TU' -
rental_okBooleanrelated='display_product_id.rental'string='Can be rented' -
sale_okBooleanrelated='display_product_id.sale_ok'string='Can be Sold'
-
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…
Loading…