This is the quick fix to change the Odoo sequence (running no) of any document to be editable. I would recommend to use the standard auto-incremental sequence and only use the manual sequence no under the following occasions:
1) When you want to allow the user to migrate the historical data from legacy system to Odoo manually, and the sequence must follow the legacy system.
2) When there is a mistake in the sequence set up and you want to fix the document with the wrong running no, manually.
How to do it
In the form view of the record (Debug mode), click on the debug and Edit View: Form.
Usually, the field is "name" or "number", depending on the model. Add the attribute readonly="False" and save.
After done with the manual sequence, dont forget to revert the readonly attribute.
In Odoo V12 or below, for invoice or vendor number, you will need to go to the journal entry to edit the name, which will auto update the invoice number or vendor number.
Comments