Product seasonality
product_seasonality · OCA/product-attribute
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 49 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 14.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.08 MB
Module directory on disk
Code analysis
3 migration notes
4 models
7 views
0 HTTP endpoints
Migration considerations
seasonal_config_line_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceseasonal_config_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_partner_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
- sale_product_seasonality
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
seasonal_config_line_view_form |
seasonal.config.line.form | seasonal.config.line | form | New |
seasonal_config_line_view_search |
seasonal.config.line.search | seasonal.config.line | search | New |
seasonal_config_line_view_tree |
seasonal.config.line.tree | seasonal.config.line | tree | New |
seasonal_config_view_tree |
seasonal.config.tree | seasonal.config | tree | New |
view_company_form |
res.company | form | Inherits base.view_company_form | |
view_partner_form |
res.partner | form | Inherits base.view_partner_form | |
view_seasonal_config_view_form |
seasonal.config.form | seasonal.config | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (1)
-
default_seasonal_config_idMany2one → seasonal.configcomodel_name='seasonal.config'string='Default product seasonal configuration'
-
create(self, vals)@api.model -
write(self, vals)
New fields (1)
-
seasonal_config_idMany2one → seasonal.configcomodel_name='seasonal.config'string='Product seasonal configuration'
No public methods.
New fields (2)
-
line_idsOne2many → seasonal.config.linecomodel_name='seasonal.config.line'copy=Trueinverse_name='seasonal_config_id'string='Lines' -
nameCharrequired=True
-
config_for_product(self, prod)Retrieve current configuration for given product.
New fields (13)
-
date_endDatetime -
date_startDatetimerequired=True -
display_nameCharcompute='_compute_display_name' -
fridayBooleandefault=True -
mondayBooleandefault=True -
product_idMany2one → product.productcomodel_name='product.product'domain="[('product_tmpl_id', '=', product_template_id)]"index=True -
product_template_idMany2one → product.templatecomodel_name='product.template'domain=[('sale_ok', '=', True)]index=Truerequired=True -
saturdayBooleandefault=True -
seasonal_config_idMany2one → seasonal.configcomodel_name='seasonal.config'index=Truerequired=Truestring='Product seasonal configuration' -
sundayBooleandefault=True -
thursdayBooleandefault=True -
tuesdayBooleandefault=True -
wednesdayBooleandefault=True
-
find_for_product(self, prod, config=None) -
is_sale_ok(self, date)