Odoo Help

Welcome!

This community 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.

0

Increment by one the current_id of an object

By
Jihen BEN ALI
on 8/15/16, 10:37 AM 138 views

Hello,

I need to increment by one the active_id for specific object for example if I create a new item its id will be 4 I need this id to take 4+1 and to be saved in the database as 5

How can I do it using the def create function??

Thanks

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/15/16, 10:37 AM
Seen: 138 times
Last updated: 8/15/16, 11:03 AM