Avoid UoM Fractions

v 13.0 Third Party 10
Download for v 13.0 Deploy on Odoo.sh
Required Apps Invoicing (account)
Lines of code 137
Technical Name odoo_no_fractions
Also available in version v 14.0 v 12.0
You bought this module and need support? Click here!

Avoid UoM Fractions

Beta License: AGPL-3 Alliantum/odoo_no_fractions

Sometimes is a problem when you or any of your employee casually sells parts of one of your products that are supposed to be just sold in a “single block” (even maybe, if internally is possible for you to move parts of that product). That can be annoying if happen too often and maybe you don’t notice it on time. So that’s where this module can be helpful, making it easy to avoid selling parts of products to your customers that uses certain categories of Units of Measure.

Table of contents


To configure this module, you just need to go to Inventory / Configuration / UoM Categories, and there select the UoM Category that you want to avoid selling in fractions. Once inside, check the box Avoid Sell Fractions.



To use this module, after having configured it, you can go to a SO a try to sell a product, using fractions for the UoM Category that you just configured:

You should then receive a warning while you’re editing those quantities to sell, and even if you continue and try to save your changes, and exception will be raised, and will not be possible to save the current SO (or Invoice).


Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.



  • Alliantum

Other credits

The development of this module has been financially supported by:

  • Alliantum (https://www.alliantum.com)


This module is maintained by Alliantum.


Alliantum, is a company whose mission is to support the widespread use of Odoo by others companies, and collaborate in the development of new Odoo features.

This module is part of the Alliantum/odoo_public_modules project on GitHub.

You are welcome to contribute. To learn how please visit https://github.com/Alliantum/odoo_public_modules.

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.