Comments (19)
@hbrunn if you have any idea what is amiss your advice is welcome.
from web.
I'd start with verifying that static/lib/moment-timezone.min.js
is loaded
from web.
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.
after installing web_list_html_widget together with web_pytz it fails, i will validate this with a new database
from web.
now the error hits after installing "web_nocreatedb" Oo
from web.
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.
@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.
...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.
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.
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.
Of course not today, now you code sprinters should go for the well deserved belgian beers!
from web.
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.
- 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.
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.
depending both on a module web_moment
seems the proper choice then in my opinion.
from web.
@hbrunn can you do this, as you are more familiar with this modules?
from web.
yes, but not before end of this week
from web.
@OSguard @gurneyalex I proposed a fix in #142
from web.
closed as of #142
from web.
Related Issues (20)
- [16.0] web_widget_x2many_2d_matrix: not showing all columns HOT 4
- Make web_responsive work with Odoo Enterprise HOT 3
- [16.0] web_widget_x2many_2d_matrix: cells with no data error HOT 1
- [16.0] Missing key in search panel filter component OWL HOT 4
- Migration to version 17.0 HOT 33
- Clarification on the Necessity of web_responsive in Odoo 17 HOT 3
- [12.0] web_drop_target
- [16.0_
- [16.0] preview issues pdf on customer invoice/vendorbill in combination with addon web_responsive HOT 2
- [15.0] web_pivot_computed_measure question HOT 1
- [web_dialog_size] Reports re-generated on window size change
- [16.0] web_reponsive: the HTML styling toolbar doesn't appear when composing messages from chatters HOT 11
- Missing web_widget_text_markdown for newer versions HOT 3
- I would really like to get this module on version: 14.0 HOT 1
- causes a problem where the toolbar does not appear when text is selected in the editor within a popup window. web_responsive.scss file, specifically in lines 373-377. HOT 5
- [16.0] web_remember_tree_column_width: issues with HTML fields HOT 1
- [16.0] web_company_color: not working if not all colors are filled HOT 4
- [16.0] web_chatter_position: Button to switch between sided and bottom views HOT 2
- [16.0] web_responsive: document_url module is not working properly when installed
- [17.0] web_responsive: Main document preview is activated by default HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web.