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

I have already installed an Odoo instance/database with demo data.

Then deleted and modified some of the demo data.

Now when I try to install or upgrade any addons, I get an error because some sample data records has been deleted.

So, how to install or upgrade addons without demo data?

I have tried "without-demo=all" and removing the demo data line at manifest file but didn't work.


Any suggestions?

Appreciated.

Ảnh đại diện
Huỷ bỏ
Tác giả

Sorry, I cannot comment on answers because of Karma points and cannot edit my own question, getting 403 – Forbidden! so I commented here.

I have already tried to comment or totally remove the demo data lines

'demo': [],

But it didn't work, to be accurate, I am trying to upgrade the addon "web" which doesn't has a demo data, but the error message was about a missing record "Chicago Warehouse" so I removed the demo lines from warehouses manifest addons then the error changed to:

The operation cannot be completed, probably due to the following:

- deletion: you may be trying to delete a record while other records still reference it

- creation/update: a mandatory field is not correctly set

[object with reference: Stock Move - stock.move]

The error occur when I click "upgrade" to the "web" addon.

Câu trả lời hay nhất

In the manifest file of the app where you did modifications of the demo data, alter the demo linelike

'demo': [],

upvote if useful.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 18
8534
3
thg 10 15
6254
1
thg 3 15
4280
2
thg 1 21
4583
1
thg 4 16
4528