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

I'm wrapping my head around Odoo and have a pretty good handle on the website builder, however, due to other configurations I would like to start over with a new database, BUT, I would to keep the website.   Is there an export function?   Or a "transfer" website from one database to another database function?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You might find this video helpful, which basically explains which fields you need to export from Odoo:

https://www.youtube.com/watch?v=H2fXRXoSZiI&t=133s

Alternatively you can use python to load the fields from the current database and save the pages as xml, which you can then import in your fresh instance. See the demo data from the website module how to format such an xml file: 

https://github.com/odoo/odoo/blob/15.0/addons/website/data/website_demo.xml

I hope this helps!

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

how about the media files such as logo pictures etc...?

Background images are sometimes embedded in the html, but most media files are stored in the ir.attachment model. Activate developer mode. If you go to "Settings" > "Technical" > "Attachments", you see all media files stored in the database. If you filter by "website" = "website_name" you see all media for that website. If you select all media that is used by model "website" and model "ir.ui.view" you can export this data. Make sure you save at least the name, website url, and file content (base64).

Tác giả

Thanks, you're a godsend

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

i got it done but after the website page is imported i cant edit certain blocks the wheel keeps spinning.. and spinning.. what could be the reason?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 24
1819
1
thg 8 23
5297
1
thg 1 22
5898
1
thg 12 20
7634
1
thg 3 25
16997