Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Productivity
  3. Form Alerts and Guards v 19.0
  4. Sales Conditions FAQ

Form Alerts and Guards

by Awins
Odoo

$ 33.97

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Apps / Awins / form_alert_guard

Form Alerts and Guards

Show a coloured alert at the top of any form when the record matches a condition, and stop chosen buttons such as Confirm until it no longer does.

Install›Configure›Use
/odoo/action-sale.action_quotations_with_onboarding/2 · S00002 for Ready Mat
Form Alerts and Guards in the Odoo backend
Odoo17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works withBase and Web only (works on any app's forms)
LicenceOPL-1, 31 EUR
Tests9 automated, run on every version
Moduleform_alert_guard

The situation

Quotation S00002 for Ready Mat is worth $2,947.50. Your rule says anything above 1,000 needs a finance check first, and Ready Mat only takes deliveries before noon. Both facts live in an email from last year. The salesperson opens the quotation, sees neither, and clicks Confirm.

With this module you write those facts once, as rules. S00002 opens with a red alert that reads the real total and customer from the record, and a blue delivery note under it. Confirm is guarded: while the quotation is above 1,000 the click does nothing except show the alert again, and the attempt goes to Blocked Attempts. Members of the group you name in Allowed to Bypass can still confirm.

What it adds

Settings › Form Alerts › Alert Rules
One rule, any model
Pick the model (Sales Order, Contact, Transfer, Invoice or a custom one) and build the Condition in the standard domain editor. The rule's alert is added at the top of that model's form, inside the sheet, without editing any view.
Without it: a warning per form means a view customisation, and Odoo only has fixed warning fields on contacts and products.
Style · Message
Four colours, formatted text
Info (blue), Warning (orange), Danger (red) or Success (green), each with its icon. The Message is a normal formatted text field, translatable per language.
{{ object.amount_total }}
Values from the record
Placeholders in the title and message print fields of the record, related fields too ({{ object.partner_id.name }}) and {{ user.name }}. Amounts and dates are formatted in the user's language, values are HTML-escaped, and a wrong placeholder prints nothing instead of breaking the form.
Guarded Buttons · Allowed to Bypass
Stop a button while the condition matches
Enter the button names, for example action_confirm or button_validate. The Button Guard tab lists every button of the form with its label, so you copy the name instead of guessing it. A click on a matching record is refused with a red notice; groups in Allowed to Bypass are not stopped.
Without it: the only way to stop a button for some records is custom code.
Blocked Attempts
Who tried what
Every refused click is logged with date, user, rule, record and button, with an Open link to the record. Group by rule or by user to see where people run into a rule.
Applies To · Company · Active From / Until
Scope and time window
Show a rule to some user groups only, in one company only, or between two dates, for example a warehouse shutdown from 20 December to 4 January. Outside the window nothing is shown and nothing is blocked.
Matching · Preview
Check a rule before people see it
The Matching button counts and opens the records that match the condition today. The Preview tab renders the alert on the first matching record, or on a record ID you enter, and says when the condition does not match it.

Getting started

Install

Open Apps, clear the Apps filter, search for Form Alerts and Guards and click Activate. It only needs Base and Web, so it works on the forms of every installed app.

Apps › form_alert_guard › Activate
Configure

Go to Settings › Form Alerts › Alert Rules and click New. Give the alert a title, choose the model and the style, build the condition and write the message. On the Button Guard tab add the buttons to block, if any, and the groups that may still click them. Only Settings administrators can create or edit rules.

Settings › Form Alerts › Alert Rules Settings for Form Alerts and Guards
Use

Users do nothing new: they open records as usual and read the alerts that apply to them. When a guarded button is refused they see a red notice with the alert text and the record names. Administrators check Settings › Form Alerts › Blocked Attempts to see how often a rule stops someone, and archive or adjust the rule when it is no longer needed.

Confirm on S00002 is refused: the notice repeats the alert and names the blocked quotation.
Confirm on S00002 is refused: the notice repeats the alert and names the blocked quotation.
Blocked Attempts: each refused click with user, rule, record, button and a link to the record.
Blocked Attempts: each refused click with user, rule, record, button and a link to the record.

Fine print

Does the alert update while I edit the record?
It is computed when the form opens and again after each save. If you change the amount of a quotation, save it to see the alerts for the new amount.
Is a guarded button also blocked for imports, scripts and the portal?
No. The guard checks clicks on form and list buttons in the Odoo backend. A customer accepting a quotation on the portal, an automated action or an external API call runs the method without the guard. Use it as a check on people's clicks, not as an access right.
Does it slow down forms?
Forms of models without any rule are not touched. For a model with rules, the list of rules is cached and the condition is checked on the one record you open, so it costs about as much as reading a few fields.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 17.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
Alerts appear on forms only, not in list or kanban views, and they refresh when the record is opened or saved, not on every keystroke. The button guard covers buttons clicked in the backend, not portal, website, import, cron or API calls. Conditions are read as a superuser, so a rule can test fields a user is not allowed to read, while the message text only prints values the user can read.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

19.0.1.0.0 · Oct 2026
First release, published for Odoo 17.0 to 20.0.

Want a rule that blocks saving, or an alert inside the list view?

Send us the model, the condition and your Odoo version.

Email odoo.expert.111@gmail.com
QR code: email Awins about this module

Also by Awins

Delivery Promise Tracker Delivery Promise Tracker delivery_promise_tracker
Split Transfers Split Transfers a_stock_picking_split
REST Payment Provider REST Payment Provider api_hub_payment
Awins builds small Odoo modules that do one job. form_alert_guard · 19.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 619
Technical Name form_alert_guard
LicenseOPL-1
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with