Products Wishlist
website_sale_wishlist · OCA/e-commerce
Merged into website_sale in 20.0
OCA/e-commerce 9.0–10.0 → odoo/odoo 11.0–19.0
Health
39/100
poor
-
Security22/251 minor finding
-
Activity0/25Last human commit 101 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 9.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
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
Migration considerations
ProductTemplate— 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 · sourceProductWishlist— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceResUsers— 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. (2 methods) migration-api-multi-one · 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 12
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (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_idMany2one → product.templatecomodel_name='product.template'help='Wishlisted product.'ondelete='cascade'required=Truestring='Product' -
sessionChardefault=<expr>help='Website session identifier where this product was wishlisted.' -
user_idMany2one → res.userscomodel_name='res.users'default=<expr>help='User that wishlisted this product.'ondelete='cascade'string='User' -
website_idMany2one → websitecomodel_name='website'default=<expr>help='Website where the user wishlisted the product.'ondelete='cascade'required=Truestring='Website'
-
create(self, vals)@api.model -
unlink(self)@api.multi -
write(self, vals)@api.multi
New fields (1)
-
current_sessionCharcompute='_compute_current_session'
-
check_credentials(self, password)@api.modelMake 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…