跳至内容
菜单
此问题已终结
2 回复
93 查看

Hello everyone,

I'm working with Odoo 18 and I'm facing an issue with sales order confirmation. Currently, I can create and confirm a new sales order for a product even when its stock quantity is zero. Odoo allows me to move forward with the quotation, but this is causing problems with overselling.

I need a way to prevent a new sales order from being confirmed if a product on that order has no stock.

I've already tried to change the settings based on common solutions, but the options I'm seeing don't seem to be the ones I need.

  • I looked in the Sales app under Configuration > Settings, but the only options I see are related to shipping policies ("send products as soon as possible" and "send all products at once").
  • I also tried to find a setting in the Inventory app under Configuration > Settings, but I couldn't find a "Picking Policy" field with options like "As soon as possible" or "When all products are ready." The options I'm seeing are different.

Could someone please guide me on where to find the correct configuration to achieve this? Is there a specific setting, a module, or a customization needed to block sales orders with zero-stock products?

Thank you for your help.

形象
丢弃
最佳答案

Hy Monica,

Please Try this module :

Stock Disallow Negative


Please check the link for details on the picking policy.

How to Configure Picking Policies in Odoo 18 Inventory


形象
丢弃
最佳答案

Hi Monica, by default I understand that Odoo does not have this blocking feature (restricting sales order confirmation if product is out of stock), partly because at times there could be negative inventory that that what is actually physical on hand (that can happen in the real world, and inventory manager would need to do manual adjustment entries).

Odoo's recommended approach is to configure automatic replenishment of inventory instead. Try following this documentation on replenishing on order (Make to Order, or MTO): https://www.odoo.com/documentation/master/applications/inventory_and_mrp/inventory/warehouses_storage/replenishment/mto.html

But there's a third-party module you could use. Check an answer to this forum question before (warning, it's a third party module and I haven't tried it myself; you might not be able to use it as well if you're using Odoo Online version and not on-premise, i.e., on your own servers): https://www.odoo.com/forum/help-1/prevent-sale-order-creation-if-an-item-is-not-in-stock-215006

形象
丢弃