OdooWiki OCA HUB

Website Sale Block Partner

website_sale_block_partner folder_open OCA/e-commerce open_in_new
Contact License: AGPL-3

This module help to blacklist customers. If the customer is blacklisted, a notification will be shown in sale order and invoice. Also the customer can't buy products from website

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Mark contacts as blacklisted and Odoo will warn you on their quotations, sales orders and invoices, and stop them from buying on your website.

This module adds a simple blacklist flag to contacts. On any contact form you get a new checkbox next to the Tax ID field; tick it to mark that person or company as blacklisted. In the Contacts list you can also filter with a new "Blacklisted" filter to find all blocked contacts quickly.

Once a contact is blacklisted, a warning banner appears automatically at the top of their sales orders and invoices, showing a message such as "<name> is marked as blacklisted". The warning is computed from the contact, so it appears and disappears on its own when you tick or untick the flag.

On the website shop, a logged-in visitor whose contact is blacklisted no longer sees the "Add to Cart" button on product pages; instead a message tells them they are not allowed to buy and to contact the administrator. The "Buy now" button, the wishlist buttons and the compare buttons are also hidden for that visitor. This applies to the shop pages and product pages.

No emails or scheduled jobs are added; the module only adds the flag, the warnings and the website restrictions.

Depends on

contactswebsite_sale_wishlistwebsite_sale_comparisonsale_management
Models and fields (3)
  • sale.order · extends an existing modelpartner_blacklist_warning (warning)
  • res.partner · extends an existing modelblacklist
  • account.move · extends an existing modelpartner_blacklist_warning (warning)

Text generated by AI (DeepSeek) from reading the Odoo 15.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 15.0
  • Go to Contacts > select a contact > check the Blacklist field.
  • Log in with this partner.

You can check the functionality in these three cases:

  • Go to Sales > create a new sale order > when this contact is selected, a message will be displayed.
  • Go to Invoicing > Customers > Invoices > create a new invoice > when this contact is selected, a message will be displayed.
  • Go to Website > Shop > click on a product > a message will appear on the page and you won't be able to add the product to the cart.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.