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. EVO Non Negative Widget v 18.0
  4. Sales Conditions FAQ

EVO 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.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 174
Technical Name evo_non_negative_widget
LicenseLGPL-3
Websitehttps://evozard.com/
Versions 16.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 174
Technical Name evo_non_negative_widget
LicenseLGPL-3
Websitehttps://evozard.com/
Versions 16.0 18.0
Evozard
Community Enterprise Odoo.sh

Prevent Negative Values in Odoo Numeric Fields

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

This application is suitable for:


Inventory, Sales & Purchase Teams

Businesses managing inventory, sales, or purchase orders where quantities must always remain positive.

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.

Key Features


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 the user flow.

Smart Warning Notification

The warning toast "Negative values are not allowed." 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.

Why Use This Module?


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

Example Use Cases


Inventory Management

Prevent warehouse staff from entering negative product quantities during stock adjustments or transfers.

Manufacturing Orders

Ensure component quantities on production orders always remain valid and non-negative.

Sales & Purchase Orders

Avoid incorrect negative order lines that could corrupt pricing or fulfillment data.

Custom ERP Development

Apply reusable client-side validation across any custom Odoo module with a single widget attribute.

Screenshots


Negative Value Blocked in Integer Field

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

Negative Value Blocked in Float Field

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

Technical Compatibility


Odoo 16 Odoo 17 Odoo 18 Odoo 19 Community Enterprise Odoo.sh

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"/>

Developer Friendly


  • Easy widget integration
  • No backend override required
  • Lightweight client-side validation
  • Compatible with custom modules
  • Supports editable tree & one2many views
  • Numpad & decimal input supported

Frequently Asked Questions


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.
Yes. The widgets can be used in any view type that supports editable fields — including form views, editable list views, and embedded one2many lines.
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.
Please contact us on Skype or email us at support@evozard.com.

Evozard Odoo Services


Odoo Implementation
Community Apps
Support & Maintenance
Odoo Customization

Contact Us


+91 8000168707 | +91 9426376468
evozard@gmail.com
evozard.consulting

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