Odoo Help


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.


Consist of two sequential in one form: How to make my two sequential the same in one form?(SOLVE)

on 9/6/14, 5:08 AM 852 views

I want to change the sequential field in the below image with a new field that I've created. Any idea on changing this one? Please advise.

For example: 

      the Header name of the example image below is 11000018 i want this header to be same as the above sequential name LocSO037. How will i going to do that if they use different class? any suggestions please


Mariusz Mizgier
On 9/6/14, 7:46 AM

You have to go to Settings -> Technical -> Sequences &Identifiers -> Sequences and find Purchase Order record - you can change there to whatever you need it to be. 

For existing records, you would have to do that via database, ie. for this record it would be like 'UPDATE purchase_order SET name='xxx' where name='PO00002';

is there any way to do it in codes? do you have any idea? thanks in advance..

on 9/7/14, 9:02 PM

You have to modify function create in purchase_order model - it has name creation in it - check out lines 313-319 in this file - https://github.com/odoo/odoo/blob/master/addons/purchase/purchase.py

Currenda Sp. z o.o., Mariusz Mizgier
on 9/8/14, 1:42 AM

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)


Asked: 9/6/14, 5:08 AM
Seen: 852 times
Last updated: 3/16/15, 8:10 AM