-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] maintenance_sequence: code, partner_ref and serial_no #159
Comments
That makes total sense, thanks for the heads-ups. For me it could even be possible to propose the change in v14 and even v13 if migration scripts are provided. My 2 cents. |
@etobella inspecting the code I've found that |
Yes, it is not unique, but it will probably be unless you make the sequence wrongly |
Also, that's the work of a great migration script 😉 |
Or you manually fill the same |
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Reviewing odoo code and OCA code I found that fields
code
andserial_no
should fulfill the same logic.Serial number is a field that should be used to add our internal serial number, as it is unique in our database. On the other side, partner_ref should be used to write the serial number of the vendor/manufacturer. Both fields are searchable using
name
:https://github.com/odoo/odoo/blob/master/addons/maintenance/views/maintenance_views.xml#L507-L509
So, code and serial_no are internal identifier. I think the sequence should fulfill serial_no. The biggest problem is how to manage the migration, as it could be complicated to manage (Maybe on the migration from 14 to 15?)
WDYT?
@dalonsod @LoisRForgeFlow
The text was updated successfully, but these errors were encountered: