Odoo Help


Change ID of Record

on 6/4/15, 6:54 AM 519 views

How To change ID of record which is primary key.  I like to change id of res_country, res_country_state?


That's a terrible thing to do.

But, if you must, I'd say: use postgresql. Remove the key, change the value of the record and, then, recreate the key. That should do the trick.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/4/15, 6:54 AM
Seen: 519 times
Last updated: 6/5/15, 1:14 AM