Skip to Content
Menu
This question has been flagged
3 Replies
1052 Views

As the title says, I haven't found a way to get it actually to function properly in this method.


Is allowing less than 1.0 through code editing or feature upgrade possible?


I can assign a SKU, but through any time of invoicing, or finishing phase it breaks. It does warn you that it doesn't do less than 1.0, but does partially do it, so I feel like its potentially possible? 

Avatar
Discard
Best Answer

Hi Justin: I hope I understood your question correctly. Odoo supports fractional quantities out-of-the-box. Listed below are screenshots of a Sales Order, Purchase Order, Receipt, Delivery Order and Invoice, all of which support fractional quantities using kg as the UoM.


Avatar
Discard
Author Best Answer

This is incorrect. Odoo does allow for 1.0 across the board, it is only related specifically to SKU and the SKU quantity, nothing else. 

Avatar
Discard
Best Answer

In Odoo, by default, it's not possible to assign a quantity less than 1.0 to a product when creating an invoice or any other document. This is because the quantity is usually used to represent the number of units of a product, and it's not possible to have a fraction of a unit.

However, depending on the specific use case, there are a few ways to work around this limitation:

  1. Use decimal precision: Instead of using the quantity field, you can use the decimal_precision field to allow for decimal values. For example, you can use 0.5 to represent half a unit of a product.

  2. Use a custom field: Create a custom field that allows decimal values and use it instead of the quantity field.

  3. Use a custom module: You can also use an external module that allows for decimal quantities, but you need to check its compatibility with your version of Odoo and its reliability.

  4. Use a work-around: Instead of using the quantity field, you can use the weight field and create a custom calculation that allows you to calculate the quantity based on the weight.

It's worth noting that, allowing decimal quantities can have an impact on the stock management, accounting, and other areas of your system, so you should consider the implications and test it thoroughly before implementing it in a production environment.

Avatar
Discard