This question has been flagged
7 Replies
9248 Views

I created website by means of Website Builder locally. I would like to deploy it to working server.

Backup-restore database is not a solution. Local database stores test OpeErp data.

Avatar
Discard

Hello, you should add this as a comment, not an answer.

Author

It's impossible to develop website effectively by means of odoo :-( - No source control for layout and static - No oportunity for partial database import-export: website data stored into system tables (re_ui_view, res_attachment etc.)

Best Answer

Any updates on that topic?

Avatar
Discard
Best Answer

Check this...

https://www.odoo.com/forum/help-1/question/export-website-data-75198

I tried it importing exporting in order:

  1. ir.ui.view

  2. ir.attachment

  3. website.menu

It worked pretty well but I had to replace into each view the ref_id to the images

(e.g.)

<img src="/website/image/ir.attachment/87_01d5af9/datas"


where 87 is the id of the ir.attachment in the old website

became


<img src="/website/image/ir.attachment/1_01d5af9/datas"

where 1 is the id of the attachment in the new site.


I could not try, but maybe if I were to import ir.attachment before ir.ui.view i would not have need to manually replace them.

Next time I will try it :)


I also had to adjust parents in the menu items and I had to exclude from import the unknown fields.


Another issue is about the size of attachments: because of the size limit  I received the error message during the import:

"Import preview failed due to: field larger than field limit (131072)."

I fixed it by using

https://github.com/odoo/odoo/commit/68f14c68709bbb50cb7fb66d288955e1d769c5ff

(see https://www.odoo.com/forum/help-1/question/fixed-csv-product-import-issues-import-preview-failed-due-to-field-larger-than-field-limit-131072-57081 )

Avatar
Discard
Best Answer

In order to deploy the website you created you need to install oDoo in the production server. Then you need to backup the database and restore it in the production server. Sorry, but to my knowledge there is no other way around

Avatar
Discard
Author Best Answer

It's impossible to develop website effectively by means of odoo :-(

- No source control for layout and static

- No oportunity for partial database import-export: website data stored into system tables (re_ui_view, res_attachment etc.)

 

Avatar
Discard

This is a very serious defect. I created a website with a V8 beta version from the middle of March, and added quite a few enhancements to the HTML and JavaScript. I am looking into how I would incorporate it into a separate site, with changes to content. How does Odoo propose we do this? I sort of hoped that there would be Website specific backup and restore capability provided by now, for the official release version. Your comments make me wonder if they ever considered these aspects at all.