Odoo Help


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 1,108 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

--Mariusz Mizgier--
| 4 1 7
SOPOT, Poland
--Mariusz Mizgier--

OpenERP developer

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

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: 9/6/14, 5:08 AM
Seen: 1108 times
Last updated: 3/16/15, 8:10 AM