Git Product home page Git Product logo

Comments (8)

mvaled avatar mvaled commented on August 25, 2024

BTW, Why does the procurement pre-migration is ran if it's not installed in my DB. Is this normal?

from openupgrade.

mvaled avatar mvaled commented on August 25, 2024

Well, I took a peek in the loading.py module to see why and now I know:

$ psql -d mercurio8 -c "SELECT name, state FROM ir_module_module WHERE state!='uninstalled'" | grep "\(pro\|sto\)"
 project                      | to upgrade
 procurement                  | to install
 project_issue                | to upgrade
 product                      | installed
 process                      | to upgrade
 crm_profiling                | to upgrade

Procurement, which is auto-installabled, now depends solely on base and product, and since their both installed, it is automatically marked to be installed. I removed the 8.0-procurement-fixes branch for the moment till I know for sure how to deal with this.

from openupgrade.

StefanRijnhart avatar StefanRijnhart commented on August 25, 2024

Strange thing is, that the migrate decorator from openerp/openupgrade/openupgrade.py checks for version and does not run the migration if it is not set. That should be the case for a new installation. Can you check what it gets at that point?

from openupgrade.

mvaled avatar mvaled commented on August 25, 2024

Hi @StefanRijnhart,

I see no check about this in the decorator. Currently the migrate decorator simply calls the decorated function. No questions asked.

from openupgrade.

mvaled avatar mvaled commented on August 25, 2024

I have reworked the branch which moves this past this issue: https://github.com/mvaled/OpenUpgrade/tree/8.0-procurement-fixes

from openupgrade.

mvaled avatar mvaled commented on August 25, 2024

Opps. I didn't get you exactly. It checks the version, not the state.... Let's try to inspect this.

from openupgrade.

mvaled avatar mvaled commented on August 25, 2024

Well, now it simply does not get executed: version is None. It seems I did something I can't recall now that let the DB in an unstable state. Closing this now.

from openupgrade.

StefanRijnhart avatar StefanRijnhart commented on August 25, 2024

Thanks for the follow-up!

from openupgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.