| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) |
| Lines of code | 362 |
| Technical Name |
stock_no_negative_hafify |
| License | OPL-1 |
| Website | https://github.com/haythamafify |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) |
| Lines of code | 362 |
| Technical Name |
stock_no_negative_hafify |
| License | OPL-1 |
| Website | https://github.com/haythamafify |
Prevent Negative Stock
Stop accidental overselling from internal stock. Clear errors, flexible exceptions,
and visibility before the balance goes negative.
USD $49 — one-time purchase, no subscription.
يمنع صرف كمية أكبر من المتوفر حتى لا يصبح رصيد المخزون سالباً؛ مع استثناءات يمكن ضبطها (فئة، مستودع، أو موقع). يوفر أيضاً لوحة تنبّه للمنتجات التي وصل مخزونها إلى حد تنبيه تحدده أنت (مثلاً: عند 5 وحدات أو أقل)، وتنبيهات اختيارية لمديري المخزون.
Why it matters
Fewer surprises at the loading bay
When a delivery is validated from an internal location, standard Odoo can still let the on-hand balance drop below zero. This module enforces your policy at validation: if the stock is not there, users see a direct message—product, location, and quantities—so teams fix the issue instead of chasing phantom stock.
Protect revenue & trust
Reduce promises you cannot ship and the firefighting that follows a negative balance.
Rules you control
Strict by default; carve out categories or locations where negative stock is still acceptable.
Accountability built in
Blocked attempts are recorded; a risk-style list highlights lines near your chosen alert level.
Details
What you get in the app
- Outgoing moves from internal locations are checked before completion.
- Disable the check only where it makes sense: product category, warehouse, or single stock location.
- Failed validations are stored for review (
stock.no.negative.log). - A read-only dashboard highlights lines at or below your warning threshold (
stock.no.negative.risk). - An hourly scheduled action can create warning activities for stock managers—nudge inside Odoo without inbox noise.
بالعربية
دليل تجربة سريعة
مثال عملي يمكن اقتباسه أو تعديل أسماء المنتجات والكميات حسب بيئتك.
أولاً: تجهيز الفئات والمنتجات
- فئة تمنع السالب: من Inventory → Configuration → Product Categories أنشئ فئة باسم Test – Block Negative، عطّل Allow Negative Stock، وحدّد حد التنبيه = 5.
- فئة تسمح بالسالب: نفس المسار، فئة Test – Allow Negative مع تفعيل Allow Negative Stock.
- منتجان: A: Product-BLOCK على الفئة المانعة، B: Product-ALLOW على الفئة المسموحة.
- مخزون ابتدائي: عبّي لـ Product-BLOCK مثلاً 3 وحدات، واترك Product-ALLOW على صفر.
ثانياً: السيناريوهات
- حظر: صرف 5 وحدات من Product-BLOCK (الرصيد 3) — النظام يرفض ويعرض رسالة.
- نجاح: صرف 2 وحدات من Product-BLOCK (الرصيد 3) — يمر والرصيد يصبح 1.
- فئة مسموحة: صرف 10 من Product-ALLOW (الرصيد 0) — يمر رغم الرصيد السالب.
- تجميع: سطران 1.5 + 2.0 من Product-BLOCK (الرصيد 1) — يُحسب المجموع 3.5 ويُحظر.
- تجاوز المستودع: فعّل Bypass على WH ثم جرّب صرفاً فوق الرصيد — يمر.
- تجاوز الموقع: نفس الفكرة على موقع التخزين الداخلي بدل المستودع كامل.
ثالثاً: السجل، اللوحة، والتنبيه
- من Inventory → No Negative Stock → Blocked Attempts يمكنك مراجعة محاولات الحظر.
- Risk Dashboard يعرض الأصناف التي وصلت إلى حد التنبيه أو دونه.
- من Scheduled Actions شغّل «Negative Stock Risk Notifications» يدوياً لمعاينة أنشطة التحذير.
Product tour
Screenshots
Fourteen screens from a full walkthrough: setup, block message, bypass, dashboard, and scheduling.
Quality
Tested behavior
Nine automated scenarios ship with the module (block, pass, bypass paths, multi-move aggregation, logging, risk view, scheduled activities). 9 passed, 0 failed on Odoo 18 in the latest run.
Questions before you buy?
We aim to reply to support email within 48 hours on business days (often faster).
نسعى للرد على رسائل الدعم خلال 48 ساعة عمل (وغالباً أسرع).
Built and maintained by Haytham Afify · Email support · LinkedIn · GitHub
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