Repository
OCA/e-commerce · module folder · Try on Runboat
Module version
1.0.0
Category
Website
Folder size
0.01 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.monksoftware.it
Last tracking update
2026-08-07 07:17:47
Authors
Odoo Community Association (OCA), MONK Software
Maintainers
Odoo Community Association (OCA), MONK Software
Committers
Pedro M. Baeza, Leonardo Donelli
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

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…