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
    • Approvals
    • 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
    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. Technical
  3. Non Negative Widget v 18.0
  4. Sales Conditions FAQ

Non Negative Widget

by Evozard https://evozard.com/
Odoo

$ 35.00

v 18.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
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0
  • Description
  • Manifest
  • License
EVOZARD Logo
Supports:
Community
Enterprise
Availability:
Odoo.sh
On Premise
Self-Hosted

Prevent Negative Values in Odoo Numeric Fields

Odoo 18 • Real-Time Integer & Float Field Validation

Stop users from entering negative quantities or amounts in Integer and Float fields with real-time validation and warning notifications - no backend changes required.

Odoo v18 Community & Enterprise Client-Side Validation Fully Responsive
Contact Support Request Customization

Zero Backend Changes Required

Lightweight client-side OWL widget validation - no Python model overrides needed. Works seamlessly across form views, editable list views, and one2many lines.

Key Highlights

Non-Negative Integer Widget

If the user types a negative number in an Integer field, the value is automatically reset to 0 and a warning notification is shown instantly.

Non-Negative Float Widget

Same protection for Float fields - supports decimal values and numpad input. Negative entries are corrected to 0.0 without disrupting user flow.

Smart Warning Notification

Warning toast appears only once per input session (debounced to 3 seconds), avoiding notification spam.

No "Invalid Fields" Odoo Error

Widget silently returns 0 instead of throwing a parse error - keeping the form saveable while still alerting the user.

No Backend Changes Required

Pure client-side OWL widget - apply non-negative constraints on any field without Python model overrides.

Works on All Editable Views

Compatible with form views, editable tree/list views, and embedded one2many lines across all Odoo modules.

  • Screenshot
  • Features
  • Frequent Questions

Integer Field Validation

When a user enters a negative number in an Integer field, the widget immediately resets it to 0 and shows a warning toast.
Integer field before validation

Integer field - negative value entered

Integer field after validation

Integer field - auto-corrected to 0 with warning

Float Field Validation

Same behaviour for Float fields - negative decimal values are auto-corrected to 0.0 with the same warning notification.
Float field before validation

Float field - negative decimal entered

Float field after validation

Float field - auto-corrected to 0.0 with warning

Our Features

01

Non-Negative Integer Widget

02

Non-Negative Float Widget

03

Smart Warning Notification (Debounced)

04

No "Invalid Fields" Odoo Error

05

No Backend Override Required

06

Works on Form, List & One2many Views

07

Numpad & Decimal Input Supported

08

Odoo 16, 17, 18 & 19 Compatible

09

Compatible with Custom Modules

Frequent Questions

Is this app compatible with Odoo Enterprise as well as Community? ▼

Yes, the app works perfectly with Odoo Enterprise (On-premise and Odoo.SH) as well as Community. Odoo Online (Cloud) does not allow installation of third-party apps.

Does this widget work on both form view and list (tree) view? ▼

Yes. The widgets can be used in any view type that supports editable fields - including form views, editable list views, and embedded one2many lines.

What happens when a user enters a negative number? ▼

The widget silently corrects the value to 0 and displays a warning notification. The form remains fully saveable - there is no Odoo "Invalid Fields" error shown to the user.

Need customization? Who to contact? ▼

Please contact us on Google Chat email: evozard@gmail.com

Overview

This module prevents users from entering negative values in Integer and Float fields across all editable Odoo views. It uses lightweight OWL client-side widgets - no backend model changes required.

Best for: Inventory teams, sales & purchase departments, warehouse operations, manufacturing, and any Odoo developer needing reusable non-negative field validation.

Why Use This Module?

→Prevent accidental negative quantities in inventory
→Improve inventory and order accuracy
→Reduce common data-entry mistakes
→Better user validation experience with toast alerts
→Avoid backend validation complexity
→Works across all editable Odoo views

This Application is Suitable For

Inventory, Sales & Purchase Teams Businesses where quantities must always remain positive in stock adjustments, sales, or purchase orders.
Odoo Developers Enforce non-negative constraints on any Integer or Float field without any backend model changes.
Manufacturing & Warehouse Teams Prevent accidental negative stock or quantity entries to ensure accurate operations data.
Any Odoo Project User-friendly client-side input validation on numeric fields across all editable views.
Sales & Purchase Orders Avoid incorrect negative order lines that could corrupt pricing or fulfillment data.
Manufacturing Orders Ensure component quantities on production orders always remain valid and non-negative.

Installation Example

Simply add the widget attribute to any Integer or Float field in your view XML:

<!-- For Integer fields -->
<field name="quantity" widget="non_negative_integer"/>

<!-- For Float fields -->
<field name="price" widget="non_negative_float"/>

Installation Steps:

  1. Download the module and place it in your Odoo addons folder
  2. Verify dependencies: web
  3. Update App list (Settings → Apps → Update App List)
  4. Install Prevent Negative Values
  5. Add the widget attribute to desired fields in your view XML

Developer Friendly:

  1. Easy widget integration - single attribute on any field
  2. No backend override required
  3. Lightweight client-side validation
  4. Supports editable tree & one2many views
  5. Numpad & decimal input supported

Technical Specifications

Odoo Version: 18.0
Edition: Community & Enterprise
Framework: OWL (Odoo Web Library)
Validation Type: Client-side only
Field Types: Integer, Float
Browser Support: Chrome, Firefox, Safari, Edge (Latest)
Mobile Responsive: Fully Responsive
Numpad Support: Yes

Privacy & Security

100% Client-side validation: No data leaves your Odoo instance.
Prevents data entry errors: Restricts negative values in integer & float fields.
Safe widget integration: Does not modify Odoo model schemas or database fields.
Real-time local verification directly in the user's browser.

Other Apps

AI Task Communication Hub

AI Task Communication Hub

EVOZARD $ 116.46
Customer Data Masking with PIN

Customer Data Masking with PIN

Evozard $ 49.98
Export Image in Excel

Export Image in Excel

Evozard $ 24.99

Contact Us


+91 8000168707, +91 9426376468
evozard@gmail.com
Connect on Google Chat

Support & Contact

Need help? Our team is ready to assist you.

  • Website: https://www.evozard.com
  • Email: evozard@gmail.com
  • Documentation: Included in the module
Support Request Customization

Compatible: Odoo 16 • Community & Enterprise • Odoo.sh

© 2026 EVOZARD • All Rights Reserved

Prevent Negative Values in Odoo Integer & Float Fields

Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 125
Technical Name evo_non_negative_widget
LicenseOPL-1
Websitehttps://evozard.com/
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