Skip to content
Health
45/100
poor
  • Security22/25
    1 minor finding
  • Activity0/25
    Last human commit 110 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
(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_datetime Datetime
    default=fields.Datetime.now args: 'Last view datetime'
  • product_id Many2one → product.template
    args: 'product.template', 'Product'
  • sessionid Char
    index=True args: 'Session ID'
Public methods (1)
  • human_readable_datetime_difference(self, now=None)
    @api.multi
    Return 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…