Edit Document Number - Change Sequence Number, Rename Sales Order, Purchase Order, Transfer and Invoice Reference
by Barakat https://claude.ai/artifact/FEPnKgDRj2xjyUC9WqjuZj$ 15.00
Fix a document number the safe way
A quotation that must keep the number of the old system, a delivery printed before go-live, a draft invoice from the paper book: Odoo does not let users change these numbers. This app lets a trusted group change the number of quotations, RFQs, open transfers and never-posted draft invoices, with a reason, a uniqueness check, accounting guards and an audit log.
Odoo 18 · Accounting, Sales, Purchase, Inventory · Works on Community and Enterprise
"Edit Number" in the Action menu
Open a quotation, a request for quotation, a transfer or a draft invoice / journal entry and pick Edit Number in the Action (gear) menu. Only members of the Edit Document Numbers group see it, and they also need the normal right to edit that document.
Type the new number and the reason
The wizard shows the current number. The reason is required. The new number must not be used by another document of the same type in the same company (in the same journal for invoices and entries), including documents the user cannot see.
Every change is written in the chatter
A note on the document keeps the old number, the new number, the reason and who made the change.
Transfers too
Receipts, deliveries and internal transfers can be renamed while they are not done or cancelled. The stock moves follow the new reference.
Accounting guard: sequence breaks need consent
For a draft invoice or entry that was never posted, the wizard compares the new number with the journal sequence. If numbers would be skipped, or the number does not follow the journal numbering, a warning explains it and the change is refused unless Accept Sequence Break is ticked. The number must also fit the entry date (same year, and month for monthly numbering) and the period must not be locked.
Without consent the change is refused
Nothing is changed until the user confirms the break on purpose; the acceptance is kept in the log.
Posted numbers are never changed
Posted entries, and drafts that were posted before, keep their number: changing them would leave a hole in the posted sequence. Confirmed orders and done or cancelled transfers are refused the same way.
Number Change Log for the auditors
Invoicing / Accounting > Reporting > Management > Number Change Log: date, document type, old and new number, reason, user, sequence break accepted, company. Nobody can edit or delete a line through the interface; each company sees its own lines. Members of the edit group also find Number Change Log in the Action menu of each document, with the changes of that document.
Choose the document types
Invoicing / Accounting > Configuration > Editable Document Numbers (administrators): switch a type off to remove "Edit Number" from its Action menu. Sales, Purchase and Inventory are optional: the app adds the menu entry for those that are installed.
Known limits
- Posted journal entries and invoices, and drafts that were posted before, are never renamed. Use the Resequence action of Odoo (developer mode) to rebuild a posted numbering.
- Only quotations (draft or sent), requests for quotation (draft, sent or to approve), transfers that are not done or cancelled, and draft entries that were never posted can get a new number.
- One document at a time; there is no bulk renumbering.
- For quotations, RFQs and transfers the app does not move the sequence counter, so it refuses a number of the normal sequence that the counter has not reached yet (a later document would get the same number). Journal entries have no counter: Odoo gives the next entry the number after the highest one of the journal and period, so a higher number also moves the next numbers; the wizard warns and asks for consent.
- Texts already copied elsewhere by users (for example a typed "Source Document") are not rewritten.
- Sales orders, purchase orders, transfers and journal entries / invoices only; other documents (for example manufacturing orders or payments outside journal entries) are not covered.
Questions or ideas? Write to abdalrahman.barakat.hr@gmail.com
Support, customization and more apps
Free support for 90 days
Every purchase includes 90 days of free support. Send an email to abdalrahman.barakat.hr@gmail.com with the link of the app you purchased, a short description of the issue and screenshots. We reply within 2-3 business days.
Questions before you buy
Send your question to abdalrahman.barakat.hr@gmail.com with the link of the app and what you would like it to do.
Need a customization?
We can customize this app or any other module for you. Email your requirements to abdalrahman.barakat.hr@gmail.com. We will send you the cost, and once we agree we build it for you.
See all our apps
We publish many more apps for sales, purchase, inventory, accounting, HR, manufacturing, website, point of sale and industry needs.
Browse all our apps on the Odoo Apps Store
Full list of our apps with prices (spreadsheet): open the Website link in the app details on this page, or copy:
https://claude.ai/artifact/FEPnKgDRj2xjyUC9WqjuZj
Also searched as: edit sequence number, change document number, edit invoice number, change sale order number, rename purchase order, edit picking reference, change transfer number, edit reference number, sequence correction, renumber document, document number audit log, change quotation number
كلمات البحث: تعديل رقم المستند، تغيير رقم الفاتورة، تعديل التسلسل، تغيير رقم أمر البيع، تغيير رقم أمر الشراء، تعديل مرجع التحويل، سجل تغيير الأرقام
About the author
Abdalrahman Barakat: 8 years of accounting experience as a finance manager and 5-6 years in ERP, between development and functional consulting (accounting implementer). If you need anything, contact me on LinkedIn: https://www.linkedin.com/in/abdalrahman-barakat-342614134 (or search "Abdalrahman Barakat" on LinkedIn).
بالعربي: ماذا يفعل هذا التطبيق؟
عرض سعر يجب أن يحتفظ برقم النظام القديم، أو إذن تسليم طُبع قبل التشغيل، أو فاتورة مسودة من الدفتر الورقي: Odoo لا يسمح للمستخدمين بتغيير هذه الأرقام. يتيح التطبيق لمجموعة موثوقة تغيير رقم عروض الأسعار وطلبات الشراء والتحويلات المفتوحة والفواتير المسودة التي لم تُرحّل، مع سبب إلزامي وفحص عدم التكرار وحماية محاسبية وسجل تدقيق.
ما يتضمنه التطبيق
- أمر «تعديل الرقم» (Edit Number) في قائمة الإجراءات لعروض الأسعار وطلبات عروض أسعار الشراء والتحويلات المخزنية والفواتير والقيود في حالة المسودة.
- يظهر فقط لأعضاء مجموعة «تعديل أرقام المستندات»، ويجب أن يملك المستخدم أيضاً صلاحية تعديل المستند نفسه.
- السبب إلزامي، والرقم الجديد يجب ألا يكون مستخدماً لمستند آخر من النوع نفسه في الشركة نفسها (وفي اليومية نفسها للفواتير والقيود)، حتى لو كان المستند غير ظاهر للمستخدم.
- ملاحظة في سجل المحادثة (Chatter) للمستند بالرقم القديم والجديد والسبب والمستخدم.
- التحويلات المخزنية: تتبع حركات المخزون المرجع الجديد.
- حماية محاسبية: مقارنة الرقم الجديد بتسلسل اليومية، وتحذير عند تخطي أرقام أو عند رقم لا يتبع ترقيم اليومية، ويُرفض التغيير ما لم يتم تحديد «قبول كسر التسلسل».
- يجب أن يطابق الرقم تاريخ القيد (السنة، والشهر في الترقيم الشهري)، وألا تكون الفترة مقفلة بتواريخ القفل.
- سجل تغييرات الأرقام (Number Change Log) للمدققين: التاريخ والنوع والرقم القديم والجديد والسبب والمستخدم والشركة، ولا يمكن تعديله أو حذفه من الواجهة. ويجد أعضاء مجموعة التعديل أيضاً أمر «سجل تغييرات الأرقام» (Number Change Log) في قائمة الإجراءات لكل مستند، ويعرض تغييرات ذلك المستند.
- تفعيل أو إيقاف كل نوع مستند من الإعدادات؛ المبيعات والمشتريات والمخزون اختيارية.
- يعمل على Odoo 18 Community وEnterprise.
ما لا يتضمنه التطبيق (حدود معروفة)
- القيود والفواتير المرحّلة، والمسودات التي سبق ترحيلها، لا يتغير رقمها أبداً. استخدم إجراء إعادة الترقيم (Resequence) في Odoo بوضع المطوّر لإعادة بناء الترقيم المرحّل.
- يمكن تغيير الرقم فقط لعروض الأسعار (مسودة أو مرسلة)، وطلبات عروض أسعار الشراء (مسودة أو مرسلة أو بانتظار الموافقة)، والتحويلات غير المنجزة وغير الملغاة، والقيود المسودة التي لم تُرحّل من قبل.
- مستند واحد في كل مرة؛ لا توجد إعادة ترقيم جماعية.
- بالنسبة لعروض الأسعار وطلبات عروض الأسعار والتحويلات لا يغيّر التطبيق عدّاد التسلسل، لذلك يرفض رقماً من التسلسل العادي لم يصل إليه العدّاد بعد (لأن مستنداً لاحقاً سيأخذ الرقم نفسه). القيود والفواتير ليس لها عدّاد: يعطي Odoo القيد التالي الرقم الذي يلي أعلى رقم في اليومية والفترة، لذلك فإن الرقم الأعلى يحرّك الأرقام التالية أيضاً، ويعرض المعالج تحذيراً ويطلب الموافقة.
- النصوص التي نسخها المستخدمون في أماكن أخرى (مثل «المستند المصدر» المكتوب يدوياً) لا تُعدّل.
- أوامر البيع والشراء والتحويلات والقيود/الفواتير فقط؛ المستندات الأخرى (مثل أوامر التصنيع) غير مشمولة.
الدعم والتعديل
دعم مجاني لمدة 90 يوماً: أرسل إلى abdalrahman.barakat.hr@gmail.com رابط التطبيق الذي اشتريته ووصف المشكلة مع صور الشاشة، ونرد خلال 2-3 أيام عمل. لأي سؤال قبل الشراء أرسل رابط التطبيق وما تريد أن يفعله. نستطيع تعديل هذا التطبيق أو أي تطبيق آخر حسب طلبك: أرسل المتطلبات ونرسل لك التكلفة، وبعد الاتفاق ننفذه.
قائمة كل تطبيقاتنا مع الأسعار (جدول): افتح رابط Website في تفاصيل التطبيق في هذه الصفحة، أو انسخ الرابط:
https://claude.ai/artifact/FEPnKgDRj2xjyUC9WqjuZj
عن المطوّر
عبدالرحمن بركات: خبرة 8 سنوات في المحاسبة كمدير مالي و5-6 سنوات في أنظمة ERP بين التطوير والاستشارات الوظيفية (تطبيق الأنظمة المحاسبية). تواصل معي على LinkedIn: https://www.linkedin.com/in/abdalrahman-barakat-342614134
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 604 |
| Technical Name |
barakat_edit_document_number |
| License | OPL-1 |
| Website | https://claude.ai/artifact/FEPnKgDRj2xjyUC9WqjuZj |
Edit Document Number
Change the number of a quotation, request for quotation, open transfer or never-posted draft invoice / journal entry, with a reason, guarded and logged.
- "Edit Number" in the Action (gear) menu of sales orders, purchase orders, transfers and journal entries / invoices. Sales, Purchase and Inventory are optional.
- Only members of the "Edit Document Numbers" group; the user also needs the normal right to edit the document.
- Reason required. The new number must be unique for the document type in the company (in the journal for invoices and entries), including documents the user cannot see.
- Note in the document chatter and a read-only Number Change Log (Invoicing / Accounting > Reporting > Management).
- Editors also get "Number Change Log" in the Action menu of each document (changes of that document), also when they do not see the accounting menu.
- Document types can be switched off in Invoicing / Accounting > Configuration > Editable Document Numbers (administrators).
Rules
- Sales orders: quotation or quotation sent. Purchase orders: RFQ, RFQ sent or to approve. Transfers: not done and not cancelled.
- Journal entries and invoices: draft and never posted, date not in a locked period (fiscal year, sales or purchase and hard lock dates), number fitting the entry date (year, and month for monthly numbering).
- When the number skips numbers of the journal sequence or does not follow its numbering, the wizard shows a warning and needs "Accept Sequence Break"; the acceptance is logged.
- Parallel changes to the same number are serialized: only one of them succeeds.
Known limits
- Posted entries and drafts that were posted before are never renamed; use Odoo's Resequence action (developer mode).
- Confirmed orders and done or cancelled transfers are not renamed.
- One document at a time.
- Quotations, RFQs and transfers: the sequence counter is not moved, so a number of the normal sequence that the counter has not reached yet is refused. Journal entries: Odoo numbers the next entry after the highest number of the journal and period, so a higher number (accepted as a sequence break) also moves the next numbers.
- Texts typed elsewhere by users (for example a "Source Document") are not rewritten.
About the author
Abdalrahman Barakat: 8 years of accounting experience as a finance manager and 5-6 years in ERP, between development and functional consulting (accounting implementer). Contact me on LinkedIn: https://www.linkedin.com/in/abdalrahman-barakat-342614134
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