Skip to Content

Contributors

Preparing for Odoo 18

Hi everyone,

If history repeats itself, we may have a new Odoo version 3 weeks from now.

I created the tracking issue to prepare OCA tooling for Odoo 18, including suggestions for improvements: https://github.com/OCA/maintainer-tools/issues/628

Contributions are most welcome, so don't hesitate to chime in if you want to help.

Best regards,

-Stéphane

--
Stéphane Bidoul
http://acsone.eu/

by Stéphane Bidoul - 03:41 - 12 Sep 2024

Follow-Ups

  • Re: Preparing for Odoo 18
    Well @Virginie Dewulf this is the perfect time to start elaborating some easy training guide (for beginners). We already talked about it
    - how to install a dev environment
    - how to find an OCA module
    - how to migrate a module
    - how to use openupgrade
    ...

    Unless all the documentations already exist, i think it would be cool to have something like a training session to help neebies becoming masters...
    IMHO

    If you launch a workgroup on that subject, I'll be happy to contribute

    BTW, the complete openupgrade documentation is here https://oca.github.io/OpenUpgrade/

    --------------------------------
    Cyril VINH-TUNG
    INVITU
    Computer & Network Engineering
    BP 32 - 98713 Papeete - French Polynesia
    Tél: +689 40 46 11 99
    contact@invitu.com
    www.invitu.com

    Le ven. 18 oct. 2024, 04:56, Virginie Dewulf <virginie@odoo-community.org> a écrit :
    Hello,

    Welcome in the community!

    On YouTube, there is now a dedicated playlist on the topic of OpenUpgrade and migrations from the past OCA Days.


    Testing the scripts is a very good way to start contributing to the OpenUpgrade project, indeed. Pay attention to the fact that sometimes the scripts are good but your data cause issues.

    To start contributing to review and write the scripts themselves, experience shows that you need to be an Odoo expert from the technical and functional point of view, with at least several years of practice as an Odoo developer, because you need to understand well how things work in the different versions from a technical and functional perspective. So we hope to see you contributing there in a bit!

    Enjoy your weekend everyone!

    Le ven. 18 oct. 2024, 11:12, Tom Blauwendraat <notifications@odoo-community.org> a écrit :
    On 10/18/24 04:03, Jacob Christ wrote:
    
    
    
    > I would like to help improve OpenUpgrade but I don't know how to 
    
    
    
    > get started.  If nothing else, I'm happy to test 16 to 17 upgrades as 
    
    
    
    > improvements are made.
    
    In one of the previous OCA days, there was a talk about how to get 
    started with OpenUpgrade. Might be this one: 
    https://www.youtube.com/watch?v=Vx7-PuXCIsY but there could be more.
    
    It seems everybody has their own way of doing things; I think what's 
    "common" is to make a "build" for each version and then include 
    OpenUpgrade in it (it could be for example a Doodba docker container, or 
    one of the other build systems that are around - we use our own 
    Doodba-based concoction at https://github.com/sunflowerit/waftlib) and 
    then add OpenUpgrade into the build and run odoo -u on each version in 
    sequence. Whichever build system you choose, like Graeme says, it's 
    handy if gitaggregator is an integral part of it, so that you can easily 
    include patch PR's into the build - your own, or ones from others.
    
    With every migration we have done so far there are at least a handful 
    errors that you will run into - usually it's a case of the database in 
    your data being slightly different than a specific OpenUpgrade script 
    expects it to be. It can be all kinds of things, for example it might be 
    that on Odoo 14, it was possible to set a financial ledger account to a 
    certain type that it should not be, and you changed it, but now 
    OpenUpgrade does not cover that specific case. What you can then do is 
    either adjust your data on Odoo 14 manually and try the migration again 
    from start, or to make a migration script yourself, and either run it as 
    a custom script or actually propose it as an addition to OpenUpgrade 
    using a PR.
    
    If you're not up to this whole process, what's also a common method for 
    instances without a lot of data is to start over with a fresh Odoo 17 
    instance and use import/export to get your data across. That's of course 
    also laborious but in some cases it can be a good option.
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Cyril VINH-TUNG - 06:55 - 18 Oct 2024
  • Re: Preparing for Odoo 18
    Hello,

    Welcome in the community!

    On YouTube, there is now a dedicated playlist on the topic of OpenUpgrade and migrations from the past OCA Days.


    Testing the scripts is a very good way to start contributing to the OpenUpgrade project, indeed. Pay attention to the fact that sometimes the scripts are good but your data cause issues.

    To start contributing to review and write the scripts themselves, experience shows that you need to be an Odoo expert from the technical and functional point of view, with at least several years of practice as an Odoo developer, because you need to understand well how things work in the different versions from a technical and functional perspective. So we hope to see you contributing there in a bit!

    Enjoy your weekend everyone!

    Le ven. 18 oct. 2024, 11:12, Tom Blauwendraat <notifications@odoo-community.org> a écrit :
    On 10/18/24 04:03, Jacob Christ wrote:
    
    
    > I would like to help improve OpenUpgrade but I don't know how to 
    
    
    > get started.  If nothing else, I'm happy to test 16 to 17 upgrades as 
    
    
    > improvements are made.
    
    In one of the previous OCA days, there was a talk about how to get 
    started with OpenUpgrade. Might be this one: 
    https://www.youtube.com/watch?v=Vx7-PuXCIsY but there could be more.
    
    It seems everybody has their own way of doing things; I think what's 
    "common" is to make a "build" for each version and then include 
    OpenUpgrade in it (it could be for example a Doodba docker container, or 
    one of the other build systems that are around - we use our own 
    Doodba-based concoction at https://github.com/sunflowerit/waftlib) and 
    then add OpenUpgrade into the build and run odoo -u on each version in 
    sequence. Whichever build system you choose, like Graeme says, it's 
    handy if gitaggregator is an integral part of it, so that you can easily 
    include patch PR's into the build - your own, or ones from others.
    
    With every migration we have done so far there are at least a handful 
    errors that you will run into - usually it's a case of the database in 
    your data being slightly different than a specific OpenUpgrade script 
    expects it to be. It can be all kinds of things, for example it might be 
    that on Odoo 14, it was possible to set a financial ledger account to a 
    certain type that it should not be, and you changed it, but now 
    OpenUpgrade does not cover that specific case. What you can then do is 
    either adjust your data on Odoo 14 manually and try the migration again 
    from start, or to make a migration script yourself, and either run it as 
    a custom script or actually propose it as an addition to OpenUpgrade 
    using a PR.
    
    If you're not up to this whole process, what's also a common method for 
    instances without a lot of data is to start over with a fresh Odoo 17 
    instance and use import/export to get your data across. That's of course 
    also laborious but in some cases it can be a good option.
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Virginie Dewulf - 04:55 - 18 Oct 2024
  • Re: Preparing for Odoo 18
    On 10/18/24 04:03, Jacob Christ wrote:
    
    > I would like to help improve OpenUpgrade but I don't know how to 
    
    > get started.  If nothing else, I'm happy to test 16 to 17 upgrades as 
    
    > improvements are made.
    
    In one of the previous OCA days, there was a talk about how to get 
    started with OpenUpgrade. Might be this one: 
    https://www.youtube.com/watch?v=Vx7-PuXCIsY but there could be more.
    
    It seems everybody has their own way of doing things; I think what's 
    "common" is to make a "build" for each version and then include 
    OpenUpgrade in it (it could be for example a Doodba docker container, or 
    one of the other build systems that are around - we use our own 
    Doodba-based concoction at https://github.com/sunflowerit/waftlib) and 
    then add OpenUpgrade into the build and run odoo -u on each version in 
    sequence. Whichever build system you choose, like Graeme says, it's 
    handy if gitaggregator is an integral part of it, so that you can easily 
    include patch PR's into the build - your own, or ones from others.
    
    With every migration we have done so far there are at least a handful 
    errors that you will run into - usually it's a case of the database in 
    your data being slightly different than a specific OpenUpgrade script 
    expects it to be. It can be all kinds of things, for example it might be 
    that on Odoo 14, it was possible to set a financial ledger account to a 
    certain type that it should not be, and you changed it, but now 
    OpenUpgrade does not cover that specific case. What you can then do is 
    either adjust your data on Odoo 14 manually and try the migration again 
    from start, or to make a migration script yourself, and either run it as 
    a custom script or actually propose it as an addition to OpenUpgrade 
    using a PR.
    
    If you're not up to this whole process, what's also a common method for 
    instances without a lot of data is to start over with a fresh Odoo 17 
    instance and use import/export to get your data across. That's of course 
    also laborious but in some cases it can be a good option.
    
    
    

    by Tom Blauwendraat - 11:11 - 18 Oct 2024
  • Re: Preparing for Odoo 18
    Hi,

    Having done more upgrades/migrations than I care to remember 15-20 hours is reasonable even if getting someone to do it via enterprise for you. Big complex ones with custom code and/or lots of data involved can be months. 

    You would normally have builds, testing, user training, scheduling to go live, then a final go live, then day 1 support (because in that testing phase no one really tested). A completely smooth upgrade process with zero issues/compromises/decisions using any upgrade method on anything but the simplest system feels like winning the lottery.

    https://github.com/OCA/OpenUpgrade/issues/4124 is the issue that covers off what has been done for v17, and what is an Open PR. Getting used to building with a tool called git-aggregator to pull in all those Open PR's and run and test them can be useful and makes things a lot quicker to test.

    In any case, version 16 is a good version.

    On Fri, Oct 18, 2024 at 3:02 PM Jacob Christ <notifications@odoo-community.org> wrote:
    Stéphane et al,

    I just joined the OCA a few days ago.

    My background (sorry for the long introduction, you can skip to the TL;DR if you are busy):

    I'm a software/electrictronics engineer and run my own little company and teach an embedded electronics class once a year at a local junior college.  A company I worked for tried to implement Odoo 2 years ago but failed.  I had never heard of Odoo but I still had a bad taste in my mouth from a recent SAP experience and I was intrigued.  A little research and I discovered that it was open source* and decided to try to install it.  It took me about 16 hours to figure out how to get Odoo14 installed.  I discovered the web authoring tools were better than my CSS skills and left it up and pointed my domain at the installation.  About a year ago I was trying to figure out how to upgrade Odoo and it seemed like my best option was to pay for hosting with Odoo S.A. I tried to make it happen at the time but it didn't work out for me.  Two weeks ago I got a quote for upgrading Odoo from 14 to 18 from an integrator and it came back that it should take between 15-20 hours to do.  I couldn't believe that it would take this long so I decided to investigate how difficult this was.  I quickly learned that I had to go from one version to the next one at a time and that I needed Odoo 14, 15, 16, 17 and 18 installed.  Since it had been 2 years since I installed Odoo I had to relearn the process.  It took me about 2 hours to get Odoo 14 installed and I documented what I learned.  I blew away Odoo 14 and started over.  I was able to do the install in 30 minutes.  Then probably another 15 mins for each additional version to 18.  Next I spent 4 hours trying to figure out how to run OpenUpgrade.  Once I figured it out I was able to quickly get from 14 to 15, 15 to 16 (though some pictures resized at 16 in my store and I don't know why) and 16 to 17 but 17 wasn't working.  I took another four hours to figure out that the 16 to 17 upgrade is not working yet.  In all I spent about 13 hours on the process and decided that the quote I received was high if I figured out how to do upgrades, having never done them before.  More importantly I learned alot about Odoo and I feel more confident using it to run my business.  I also am willing to help improve Odoo and the scripts.

    TL;DR

    I would like to help improve OpenUpgrade but I don't know how to get started.  If nothing else, I'm happy to test 16 to 17 upgrades as improvements are made.

    Jacob Christ
    ProLinear/PONTECH, Inc.
    +1 (714) 269-7256 Phone
    http://www.pontech.com



    On Wed, Oct 16, 2024 at 9:33 AM Stéphane Bidoul <notifications@odoo-community.org> wrote:
    Hi everyone,

    The 18.0 branches were created 10 days ago, and migrations are going full speed already.

    Thanks a lot to everyone who helped and continued to help since, this is much appreciated !

    We need to push an update to the dotfiles, with a new version of pylint-odoo with Odoo 18 support.
    At the same time, we'll update the JS linters as well as prettier, taking advantage of an improved version of the xml auto formatter.

    This may make some 18.0 branches or open PR red, so keep an eye on it.

    I'll push that one of these evenings. In the meantime, PSC can already apply it by running "pipx run copier update --trust --defaults".

    Please create an issue on https://github.com/OCA/oca-addons-repo-template/ if you encounter problems.

    -Stéphane

    On Thu, Sep 12, 2024 at 3:36 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:
    Hi everyone,

    If history repeats itself, we may have a new Odoo version 3 weeks from now.

    I created the tracking issue to prepare OCA tooling for Odoo 18, including suggestions for improvements: https://github.com/OCA/maintainer-tools/issues/628

    Contributions are most welcome, so don't hesitate to chime in if you want to help.

    Best regards,

    -Stéphane

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Graeme Gellatly - 04:46 - 18 Oct 2024
  • Re: Preparing for Odoo 18
    Stéphane et al,

    I just joined the OCA a few days ago.

    My background (sorry for the long introduction, you can skip to the TL;DR if you are busy):

    I'm a software/electrictronics engineer and run my own little company and teach an embedded electronics class once a year at a local junior college.  A company I worked for tried to implement Odoo 2 years ago but failed.  I had never heard of Odoo but I still had a bad taste in my mouth from a recent SAP experience and I was intrigued.  A little research and I discovered that it was open source* and decided to try to install it.  It took me about 16 hours to figure out how to get Odoo14 installed.  I discovered the web authoring tools were better than my CSS skills and left it up and pointed my domain at the installation.  About a year ago I was trying to figure out how to upgrade Odoo and it seemed like my best option was to pay for hosting with Odoo S.A. I tried to make it happen at the time but it didn't work out for me.  Two weeks ago I got a quote for upgrading Odoo from 14 to 18 from an integrator and it came back that it should take between 15-20 hours to do.  I couldn't believe that it would take this long so I decided to investigate how difficult this was.  I quickly learned that I had to go from one version to the next one at a time and that I needed Odoo 14, 15, 16, 17 and 18 installed.  Since it had been 2 years since I installed Odoo I had to relearn the process.  It took me about 2 hours to get Odoo 14 installed and I documented what I learned.  I blew away Odoo 14 and started over.  I was able to do the install in 30 minutes.  Then probably another 15 mins for each additional version to 18.  Next I spent 4 hours trying to figure out how to run OpenUpgrade.  Once I figured it out I was able to quickly get from 14 to 15, 15 to 16 (though some pictures resized at 16 in my store and I don't know why) and 16 to 17 but 17 wasn't working.  I took another four hours to figure out that the 16 to 17 upgrade is not working yet.  In all I spent about 13 hours on the process and decided that the quote I received was high if I figured out how to do upgrades, having never done them before.  More importantly I learned alot about Odoo and I feel more confident using it to run my business.  I also am willing to help improve Odoo and the scripts.

    TL;DR

    I would like to help improve OpenUpgrade but I don't know how to get started.  If nothing else, I'm happy to test 16 to 17 upgrades as improvements are made.

    Jacob Christ
    ProLinear/PONTECH, Inc.
    +1 (714) 269-7256 Phone
    http://www.pontech.com



    On Wed, Oct 16, 2024 at 9:33 AM Stéphane Bidoul <notifications@odoo-community.org> wrote:
    Hi everyone,

    The 18.0 branches were created 10 days ago, and migrations are going full speed already.

    Thanks a lot to everyone who helped and continued to help since, this is much appreciated !

    We need to push an update to the dotfiles, with a new version of pylint-odoo with Odoo 18 support.
    At the same time, we'll update the JS linters as well as prettier, taking advantage of an improved version of the xml auto formatter.

    This may make some 18.0 branches or open PR red, so keep an eye on it.

    I'll push that one of these evenings. In the meantime, PSC can already apply it by running "pipx run copier update --trust --defaults".

    Please create an issue on https://github.com/OCA/oca-addons-repo-template/ if you encounter problems.

    -Stéphane

    On Thu, Sep 12, 2024 at 3:36 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:
    Hi everyone,

    If history repeats itself, we may have a new Odoo version 3 weeks from now.

    I created the tracking issue to prepare OCA tooling for Odoo 18, including suggestions for improvements: https://github.com/OCA/maintainer-tools/issues/628

    Contributions are most welcome, so don't hesitate to chime in if you want to help.

    Best regards,

    -Stéphane

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Jacob Christ - 04:01 - 18 Oct 2024