GithubHelp home page GithubHelp logo

web module error about openupgrade HOT 7 CLOSED

oca avatar oca commented on July 25, 2024
web module error

from openupgrade.

Comments (7)

pankk avatar pankk commented on July 25, 2024

This problem is solved by migrating mail.

from openupgrade.

martintamare avatar martintamare commented on July 25, 2024

Could you elaborate on how to solve the problem ?

from openupgrade.

pankk avatar pankk commented on July 25, 2024

@martintamare IIRC the mail module did not have migration scripts at the moment of opening this issue, they were added a few weeks later, so you should not run into the same issue as above anymore using a recent version of OpenUpgrade. Have a look at the mail migration scripts, they might hold a clue to solving the errors you are getting.

from openupgrade.

martintamare avatar martintamare commented on July 25, 2024

Here is what fixed the issue for me using raw postgresql (ugly but efficient ^^):
update res_partner set notify_email ='always' where notify_email='none';

The problem was present when clicking on a res.partners in the list view -> I then focus on the res.partner table and see the constraint there. none was not supposed to be in notify_email :)

from openupgrade.

pankk avatar pankk commented on July 25, 2024

@martintamare Thanks for sharing your solution. Maybe I don't fully understand the problem, and I'm not sure to which version you are migrating, but 'none' should be a valid option for that field (e.g. https://github.com/odoo/odoo/blob/master/addons/mail/models/res_partner.py#L21).

from openupgrade.

martintamare avatar martintamare commented on July 25, 2024

We started with openrp 7.0 then updating to odoo 8.0 using OCA.
Since the migration, we had this issue. Debugging the JS is a real pain so maybe that is not the correct fix.
We had a dirty installation with plenty of old module, I clean it all, let's see where this is leading us ;)
Anyway I can't reproduce the issue anymore, so ... :)

from openupgrade.

alesisjoan avatar alesisjoan commented on July 25, 2024

Had a similar problem migrating 7.0 to 8.0.

The field notification_email_send is 'comment' while 8.0 accepts as 'always'.

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.