Recently Viewed Products
website_sale_recently_viewed_products · OCA/e-commerce
Health
45/100
poor
-
Security22/251 minor finding
-
Activity0/25Last human commit 110 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.01 MB
Module directory on disk
Code analysis
6 migration notes
2 models
5 views
2 HTTP endpoints
Migration considerations
ProductHistory— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceProductHistory— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceWebsite— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · 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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_frontend |
Recently Viewed Products Assets | ir.ui.view | qweb | Inherits website.assets_frontend |
page |
User product history | ir.ui.view | qweb | New |
popover |
Viewed products popover | ir.ui.view | qweb | New |
recently_viewed_products_header |
Recently Viewed Products Header | ir.ui.view | qweb | Inherits website_sale.header |
table |
Viewed products table | ir.ui.view | qweb | New |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | WebsiteSale.product |
inherited | http | ALL | |
/shop/recent |
WebsiteSale.recent |
public | http | ALL | website |
Models touched 2
New fields (0)
No new fields.
Public methods (1)-
recently_viewed_products(self)@api.multi
New fields (3)
-
last_view_datetimeDatetimedefault=fields.Datetime.now args: 'Last view datetime' -
product_idMany2one → product.templateargs: 'product.template', 'Product' -
sessionidCharindex=True args: 'Session ID'
-
human_readable_datetime_difference(self, now=None)@api.multiReturn an human readable form of the difference between the supplied datetime (or the current datetime if not supplied) and the history record ``last_view_datetime``.
Loading…
Loading…