Giter VIP home page Giter VIP logo

Comments (19)

gurneyalex avatar gurneyalex commented on July 30, 2024

@hbrunn if you have any idea what is amiss your advice is welcome.

from web.

hbrunn avatar hbrunn commented on July 30, 2024

I'd start with verifying that static/lib/moment-timezone.min.js is loaded

from web.

OSguard avatar OSguard commented on July 30, 2024

i just figure out that this is the reason why runbot not working:
http://2947807-7-0-5b1147.runbot2.odoo-community.org/?db=2947807-7-0-5b1147-all&debug=

from web.

OSguard avatar OSguard commented on July 30, 2024

after installing web_list_html_widget together with web_pytz it fails, i will validate this with a new database

from web.

OSguard avatar OSguard commented on July 30, 2024

now the error hits after installing "web_nocreatedb" Oo

from web.

OSguard avatar OSguard commented on July 30, 2024

you need to install this 13 modules to reproduce the error:
name | author
-----------------------------+------------------------------------------------------------------------
web_m2x_options | Tuxservices,Odoo Community Association (OCA)
web_list_html_widget | initOS GmbH & Co. KG,Odoo Community Association (OCA)
web_recipients_uncheck | initOS GmbH & Co. KG,Odoo Community Association (OCA)
web_search_alphabetic | Serpent Consulting Services Pvt. Ltd.,Odoo Community Association (OCA)
web_pytz | Therp BV,Odoo Community Association (OCA)
web_popup_large | Therp BV,Odoo Community Association (OCA)
web_tree_many2one_clickable | Therp BV,Odoo Community Association (OCA)
web_polymorphic_many2one | Elico Corp,Odoo Community Association (OCA)
web_send_message_popup | Camptocamp,Odoo Community Association (OCA)
web_relativedelta | Therp BV,Odoo Community Association (OCA)
web_widget_float_formula | GRAP,Odoo Community Association (OCA)
web_warning_sound | HacBee UAB,Odoo Community Association (OCA)
web_nocreatedb | Vauxoo,Odoo Community Association (OCA)

from web.

hbrunn avatar hbrunn commented on July 30, 2024

@OSguard any chance web_relativedelta is the culprit? This also pulls moment.js, but in an older version (2.6.0 vs. 2.8.3). The first who loads wins, and it seems like that's the case for the 2.6.0 version. Maybe moment-timezone.js refuses to load with this version?

It should not be a problem to simply update web_relativedelta's moment.js For a quick and dirty test, I'd simply copy web_pytz's moment.js to web_relativedelta/static/lib, reload and see what happens.

It might be even worth a try to update both modules to current upstream from http://momentjs.com

from web.

hbrunn avatar hbrunn commented on July 30, 2024

...if you do the update, don't repeat my mistake and use the non-minified versions. OpenERP minifies them anyways, and this way, you save a lot of headaches when debugging

from web.

OSguard avatar OSguard commented on July 30, 2024

only installing both modules are fine. Having all other modules install always failing. So this was also my first idea but i find no evidence for that. But i can try to replace it in my broken installation. (but not today)

from web.

hbrunn avatar hbrunn commented on July 30, 2024

have a look at load order. On the runbot you linked, web_pytz's momentjs is loaded first and then probably overwritten by web_relativedelta's version. If on your isolated database this order is reversed, then things should be fine. So the trick is for your test to manipulate load order to test both cases.

from web.

hbrunn avatar hbrunn commented on July 30, 2024

Of course not today, now you code sprinters should go for the well deserved belgian beers!

from web.

hbrunn avatar hbrunn commented on July 30, 2024

another hypothesis: The lib-mechanism should avoid loading the same library multiple times, and to my knowledge, this goes by filename. But here, one is called moment.min.js while the other is moment.js, possibly this screws up things? Try changing the min-version to just moment.js and see if odoo still loads both. If everything works then, you might still give the update a try in order to avoid future version incompatibilities.

from web.

OSguard avatar OSguard commented on July 30, 2024
  • rename to moment.js loads both with the same name and error still there
  • replacing the older version with '2.8.3' also did not solve the problem.

from web.

OSguard avatar OSguard commented on July 30, 2024

removing one moment.js from one of the modules solves the problem.
I suggest either:

  • merge the two modules in one
  • make a single module with only holds the lib for moments.js

@hbrunn and @gurneyalex what do you think?

from web.

hbrunn avatar hbrunn commented on July 30, 2024

depending both on a module web_moment seems the proper choice then in my opinion.

from web.

OSguard avatar OSguard commented on July 30, 2024

@hbrunn can you do this, as you are more familiar with this modules?

from web.

hbrunn avatar hbrunn commented on July 30, 2024

yes, but not before end of this week

from web.

hbrunn avatar hbrunn commented on July 30, 2024

@OSguard @gurneyalex I proposed a fix in #142

from web.

hbrunn avatar hbrunn commented on July 30, 2024

closed as of #142

from web.

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.