Odoo Development
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 381 |
| Technical Name |
wb_dynamic_warning |
| License | LGPL-3 |
| Website | https://wanbuffer.com |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 381 |
| Technical Name |
wb_dynamic_warning |
| License | LGPL-3 |
| Website | https://wanbuffer.com |
| Versions | 17.0 18.0 19.0 |
Advanced Form Warnings & Dynamic Alert Rules
Dynamic Warnings is an advanced Odoo module that allows administrators to configure and inject dynamic, customizable alert banners into any form view across the system. Alerts are triggered based on user-defined domain conditions evaluating in real-time on the client side, and can be restricted by user groups, validity dates, or company in order to control exactly when and to whom the warning is shown.
Features
1. Universal Compatibility This feature ensures that the warning banner works across all standard Odoo form views like Sales Orders, Contacts, Products, Invoices, etc.
2. Filter-Based Condition Builder Create complex rules easily using Odooâs native filter widget. No more typing manual code; just pick your fields and values from a dropdown.
3. User-Based Visibility You can control who sees which warning by assigning user groups.
For example, only Sales Managers can see certain alerts, while regular users wonât.
4. Scheduled Alerts Each warning can have a defined validity period using âValid Fromâ and âValid Toâ dates.
The system automatically shows or hides warnings based on the current date.
5. Multi-Company Ready Each warning can be configured to apply to specific companies, allowing you to show different alerts to users in different legal entities.
6. Native UI Design The warning banners use Odooâs built-in Bootstrap alert styles such as Info (blue), Warning (yellow), and Danger (red).
1) Assign Manager Access Rights
Go to Settings Users & Companies Users
and ensure the Dynamic Warnings permissions are set to Manager.
2) Open Dynamic Warnings Configuration
Refresh your page. Navigate to Settings
Dynamic Warnings
Warning Rules.
3) Create a New Warning Rule
Click New. Select your Target Model (e.g. Contact / Sales Order) and
select the Alert Style.
Check Is Validation Rule if you want to prevent saving the record when conditions are met.
In the CONDITIONS section, use the user-friendly Domain Selector to build your triggers easily without writing any code.
4) View Result Live on the Form
Navigate to the app representing your Target Model (e.g., Contacts). When you open a
record matching the condition natively in Odoo, the warning banner automatically
injects itself right at the top of the form sheet!
5. Example: Low Stock Alert Configuration
Create a warning rule for Products when stock is low.
6) Set Date Validity
If you only want an alert to run temporarily (e.g., during a holiday season or
audit), fill out the Valid From and
Valid To fields. The warning will
automatically activate and expire precisely based on this timeframe!
Date Configuration
Hidden After Expiration
7) Restrict by User Groups
Under the Restrict to User Groups field,
you can limit the warning to specific Odoo user groups. Below, you can see the
configuration and the result where a non-authorized user views the form and the
warning remains completely hidden, keeping their UI clean!
Restricted Configuration
Hidden for Non-Authorized Users
Smart Field Discovery:
The system automatically detects and fetches any fields needed for your conditions, even if they are not visible on the form! This ensures your rules work perfectly on any field like amount_total, state, etc.
Yes, you can specify any Odoo model in the "Target Model" field, and the alert will automatically inject itself into that model's form views (including specialized views like Settings and Invoice Extract).
If enabled, the system will not only show the warning but also prevent the user from saving the record if the conditions are met, displaying a notification of the validation failure.
Yes, the module uses "Smart Field Discovery" to automatically fetch any field data needed for your domain conditions, even if those fields are not part of the current form layout.
Yes, it fully supports both Odoo Community and Enterprise editions (v17+).
Dynamic Warnings in Purchase & Invoicing
Enhance your procurement and invoicing workflows with real-time dynamic alerts. Whether it's vendor credit limits, tax warnings, or item-specific procurement alerts, the Dynamic Warning module ensures your team is always informed at the moment of data entry across Vendor Bills, RFQs and Purchase Orders.
Features
Create reusable templates for vendor-side documents
Apply terms to Purchase RFQs and Orders
Apply terms to Vendor Bills
Templates auto-reflect in final PDF layouts
Easy integration with Odoo Purchase & Invoicing modules
Fully supports Community and Enterprise editions
1) Go to the Odoo Apps menu and install
the module
Then, navigate to Settings Users Access Rights
and ensure the appropriate permissions are enabled for "Purchase Terms &
Conditions."
2) Navigate to Purchase Configuration
Go to Purchase Configuration
Terms and
Conditions.
This section allows you to manage all templates specific to purchase operations.
3) Create a New Template
Click the Create button to add a new Terms
& Conditions template.
You will also see a list of all previously created templates here.
4) Fill in Template Details
Enter a Title, select the Company, and write your
Terms & Conditions in the text editor.
Click Save to finalize the template.
5) Go to Purchase Configuration
Terms and
Conditions
Navigate to Purchase Requests for Quotation
(RFQ) and click the Create
button to generate a new RFQ
or Purchase Order.
6) Select Terms on RFQ/Purchase Order Form
On the RFQ or Purchase Order details page, you will see a new tab titled
Terms and Conditions.
From here, select the desired template - the terms content will auto-fill
accordingly.
7) Terms in Print/PDF
Upon confirming the RFQ into a Purchase
Order, the selected Terms &
Conditions will be included in the printable
PDF.
8) Use in Vendor Bills
While creating or editing a Vendor Bill,
you will see the same
Terms and Conditions tab.
Choose the required template, and the terms will be printed on the final bill
document.
Absolutely. By using Odoo's native Domain Selector, you can create complex "And/Or" conditions with nested structures to trigger alerts exactly when needed.
Yes, you can select one or more user groups for each rule. Users who do not belong to the selected groups will not see the warning, keeping their UI clean.
You can choose from standard Bootstrap styles: Info (Blue), Success (Green), Warning (Yellow), and Danger (Red) to match the severity of the alert.
Yes, the banners use Odoo's standard responsive styles and will adapt to any screen size, including mobile and tablet.
Our Services
Odoo Customization
Odoo Consultancy
Odoo Implementation
Odoo Migration
Odoo Training
Odoo Integration
Please log in to comment on this module