Skip to content
Health
39/100
poor
  • Security22/25
    1 minor finding
  • Activity0/25
    Last human commit 101 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 9.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
LGPL-3
No conflicts with its dependencies
Folder size
0.32 MB
Module directory on disk
Code analysis 4 migration notes 4 models 12 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 12

XML IDNameModelTypeStatus
assets_frontend assets_frontend ir.ui.view qweb Inherits website.assets_frontend
assets_frontend_demo assets_frontend_demo ir.ui.view qweb Inherits website.assets_frontend
header Wishlist Menu ir.ui.view qweb Inherits website_sale.header
heart Heart Icon ir.ui.view qweb New
hidden_wishlist_only_input Hidden Wishlist Input to Preserve Filters ir.ui.view qweb New
menu Wishlist Menu ir.ui.view qweb New
product_add_to_wishlist Add to Wishlist From Form ir.ui.view qweb Inherits website_sale.product
product_toggle Add to Wishlist Widget ir.ui.view qweb New
products Enable Wishlist in Shop ir.ui.view qweb Inherits website_sale.products
products_add_to_wishlist Add to Wishlist From List ir.ui.view qweb Inherits website_sale.products_item
products_attributes Preserve Wishlist Filter When Choosing Attributes ir.ui.view qweb Inherits website_sale.products_attributes
search Preserve Wishlist Filter When Searching ir.ui.view qweb Inherits website_sale.search

HTTP endpoints 2

Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) Wishlist.shop inherited http ALL
/shop/wishlist/toggle/<model('product.template'):product> Wishlist.wishlist_toggle public json ALL website

Models touched 4

New fields (0)

No new fields.

Public methods (1)
  • wishlisted(self)
    @api.multi@tools.ormcache('self.ids', 'self.env.uid', 'self.env.user.current_session')
    Check if all products are wishlisted in current session.

New fields (4)
  • product_tmpl_id Many2one → product.template
    comodel_name='product.template' help='Wishlisted product.' ondelete='cascade' required=True string='Product'
  • session Char
    default=<expr> help='Website session identifier where this product was wishlisted.'
  • user_id Many2one → res.users
    comodel_name='res.users' default=<expr> help='User that wishlisted this product.' ondelete='cascade' string='User'
  • website_id Many2one → website
    comodel_name='website' default=<expr> help='Website where the user wishlisted the product.' ondelete='cascade' required=True string='Website'
Public methods (3)
  • create(self, vals)
    @api.model
  • unlink(self)
    @api.multi
  • write(self, vals)
    @api.multi

New fields (1)
  • current_session Char
    compute='_compute_current_session'
Public methods (1)
  • check_credentials(self, password)
    @api.model
    Make all this session's wishlists belong to its owner user.

New fields (0)

No new fields.

Public methods (2)
  • wishlist_product_ids(self)
    @api.multi@tools.ormcache('self.ids', 'self.env.uid', 'self.env.user.current_session')
    Get wishlisted products for current session. :return list: List of IDs. Not returning records because they could lead to errors if you try to browse them when loaded from cache and cached ones used a cursor that is now closed.
  • wishlisted_product_template_ids(self)
    @api.multi@tools.ormcache('self.ids', 'self.env.uid', 'self.env.user.current_session')
    Get ``product.template`` records wishlisted in current session. :return list: List of IDs. Not returning records because they could lead to errors if you try to browse them when loaded from cache and cached ones used a cursor that is now closed.

Loading…