This question has been flagged
1 Reply
14802 Views

Dear Odoo.sh developpers,


How can we update the Production-branch using all updates/developpment of the Staging-branch (in which we have developped Odoo Studio customized fields and automations, css customizations, database stored fields, new images) ?

After creating a Production branch  and a Staging branch in odoo.sh, it remains empty in github and without any commit. Why the Production branch or Staging branch does not add automatically all the files from src/odoo/addons ? Why is it restricted to the addons directory and does not include css, images, database modifications ? Do we have to manually git-add these files so that they get tracked in our Production branch (running in "src/users/"  the  " git add " command on all files contained in the src/odoo/addons directory ) ?Is there a way to git all files of the staging and not only the addons ?

Or is there any command in the menu tabs in odoo.sh that allows you to do it directly ?

Why isn't there a git-commit command in odoo editor or odoo.sh ? Do we have to go through command lines in the Odoo terminal ? Is there another way? 

How can we update the Production-branch-Database using all updates/developpment Staging-branch-Database

Thank you for your help ! Best regards, Sylvain

Avatar
Discard
Author

Thank you for your answer !

when we modify - in the developpment or staging branch - the existing modules (sale, event or website) using odoo studio : adding custom fields for example or modifying the website template using the user interface

and when we drag-drop this branch to the Production branch, these modifications are not updated in the production branch.

so we are wondering wether there's someting wrong with the odoo.sh configuration or if it s a bug ? Thank you for your help !

@Pedro, yes you can create the staging branch since production branch and all the data will the same.

So, currently you cannot drag a branch from staging stage and drop it in production, or if you can, the data that was applied in that staging branch will be erased after transfering to production?

Only code changes (ie: modules written in the repository) are pushed between branches. Database changes (ie: Studio, new records, configuration changes) are not. You need to either export/import your Studio changes / record / configuration changes or reapply them) - see also https://www.odoo.com/forum/help-1/how-to-get-studio-form-view-changes-from-staging-branch-to-production-branch-145491

Thx @Ray Carnes (ray) for your detailed answer!

Best Answer

Hi,

we can merge the staging branch with production so that all the work you done will be move to the production.

Refer the following for more information

https://www.odoo.com/documentation/user/13.0/odoo_sh/getting_started/branches.html

Regards

Avatar
Discard