Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Website/Website
Folder size
0.91 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-08-15 22:44:20
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Raphael Collet, Thibault Delavallée, Odoo Translation Bot, Aaron Bohy, Jorge Pinna Puissant, Arnold Moyaux, Julien Castiaux, Victor Feyens, Tiffany Chang (tic), Gorash, Mathieu Duckerts-Antoine, Kishan Gajjar, Valentin Chevalier, Levi Siuzdak (sile), Dylan Kiss (dyki), Valeriya(vchu), Youssef Bashandy, lase@odoo.com, Louis (loti), Serge Bayet (seba), kcv-odoo, dere-odoo, Ritika Rathore, Lina (liew), Chrysanthe (chgo), mano-odoo, Patricia Daloze (pda), Antoine (anso), Manushi Shah, Rahil Ghanchi, Bastien PIERRE, Shrey Mehta, pish-odoo, Mahdi Alijani (malj), bona-odoo, nipl-odoo, bikh-odoo, MAGREMENT, macs-odoo, Nisarg (nipl), assh-odoo, Lionel Piraux (lipi), Merlin Guillaume, Julien (jdeh), msho-odoo, chpa-odoo
Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
website_sale_collect, website_sale_mrp, website_sale_stock_available, website_sale_stock_list_preview, website_sale_stock_provisioning_date, website_sale_stock_wishlist
Description
Manage the inventory of your products and display their availability status in your eCommerce store.
In case of stockout, you can decide to block further sales or to keep selling.
A default behavior can be selected in the Website settings.
Then it can be made specific at the product level.
    

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
availability_email_body availability_email_body ir.ui.view qweb New
product_pages_tree_view Product Pages List (stock inherit) product.template tree Inherits website_sale.product_pages_tree_view
product_template_form_view_inherit_website_sale_stock product.template.form.inherit.website.sale.stock product.template form Inherits website_sale.product_template_form_view
res_config_settings_view_form res.config.settings.view.form.inherit.website.sale.stock res.config.settings form Inherits website_sale.res_config_settings_view_form
view_picking_form_inherit_website_sale_stock stock.picking.form.inherit.website.sale.stock stock.picking form Inherits stock.view_picking_form
website_sale_stock_cart_lines Shopping Cart Lines ir.ui.view qweb Inherits website_sale.cart_lines_quantity
website_sale_stock_product website_sale_stock_product ir.ui.view qweb Inherits website_sale.cta_wrapper
HTTP endpoints (2)
Route(s)HandlerAuthTypeMethodsFlags
/shop/add/stock_notification WebsiteSaleStock.add_stock_email_notification public jsonrpc ALL sudo website
(inherited route override) WebsiteSaleStockVariantController.get_combination_info_website inherited http ALL
Models touched (10)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • stock_notification_partner_ids Many2many → res.partner
    relation='stock_notification_product_partner_rel' string='Back in stock Notifications' args: 'res.partner'
Public methods (0)

No public methods.

New fields (1)
  • assign Selection
    help='Defines how this ribbon is assigned to products:\n- Manually: You assign the ribbon manually to products.\n- Sale: Applied when the product is visibly on sale.\n- New: Applied based on the New period you will define.\n- Out Of Stock: Applied when the product is out of stock.' ondelete={'out_of_stock': 'cascade'} selection_add=[('out_of_stock', 'when out of stock')]
Public methods (0)

No public methods.

New fields (4)
  • allow_out_of_stock_order Boolean
    default=True string='Sell when Out-of-Stock'
  • available_threshold Float
    default=5.0 string='Show Threshold'
  • out_of_stock_message Html
    string='Out-of-Stock Message' translate=html_translate
  • show_availability Boolean
    default=False string='Show availability Qty'
Public methods (0)

No public methods.

New fields (4)
  • default_allow_out_of_stock_order Boolean
    default=True default_model='product.template' string='Continue selling when out-of-stock'
  • default_available_threshold Float
    default=5.0 default_model='product.template' string='Show Threshold'
  • default_show_availability Boolean
    default=False default_model='product.template' string='Show availability Qty'
  • website_warehouse_id Many2one → stock.warehouse
    domain="[('company_id', '=', website_company_id)]" readonly=False related='website_id.warehouse_id' args: 'stock.warehouse'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • website_id Many2one → website
    help='Website where this order has been placed, for eCommerce orders.' readonly=True related='sale_id.website_id' store=True string='Website' args: 'website'
Public methods (0)

No public methods.

New fields (1)
  • warehouse_id Many2one → stock.warehouse
    string='Warehouse' args: 'stock.warehouse'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…