Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9142 Lượt xem

Hello there, 

I did many importation tests in the last week.

Now, I want to reset ID auto-increment.

Is it possible to reset those ID number in the Odoo web client?

Or the only way to modify it is PGadmin ou psql?

Thanks

Ảnh đại diện
Huỷ bỏ

You customized tree view to see the product id ? I don't know the answer to that question. I think we need to test in a test database and make backups as you advance in the project management with odoo. But on reflection, I think that to fill id already allocated must first remove ... can you remove all items created?

Tác giả

Of course that I customized this view. I want to well understand how odoo works before to import all my products.

Tác giả

I can easily delete all the products that I want. But ID always increase.

From what I have seen, the system increments the id to each creation. If you create an article without finishing the procedure (ie without saving), an id will still be used for anything. But after all it does not matter as the system manages the internal id, just let him do good, right?

Tác giả

I know, I know... you are right. thanks.

Tác giả Câu trả lời hay nhất

I have installed pgadmin.

I have changed the «actual value » properties to 1 in these two sequences : 

product_template_id_seq

product_product_id_seq

Now, I can create new product without problem. The id column beginning to 2.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 3 15
9918
2
thg 3 15
6066
1
thg 11 22
2322
0
thg 6 22
2502
2
thg 3 22
1134