Giter Site home page Giter Site logo

vauxoo / web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oca/web

2.0 2.0 6.0 99.58 MB

Odoo web client UI related addons

License: GNU Affero General Public License v3.0

Python 2.65% CSS 0.94% HTML 15.47% JavaScript 80.15% SCSS 0.78% Less 0.01%

web's People

Contributors

aaltinisik avatar adriagforgeflow avatar alexey-pelykh avatar antespi avatar badbole avatar chienandalu avatar claudiagn avatar etobella avatar grindtildeath avatar guewen avatar hbrunn avatar hhgabelgaard avatar ivantodorovich avatar legalsylvain avatar liweijie0812 avatar marcelsavegnago avatar marylla avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar pasgou avatar pedrobaeza avatar pedrocasi avatar sbidoul avatar simahawk avatar tardo avatar tarteo avatar yajo avatar yavuzavci avatar ypapouin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web's Issues

[11.0][web_widget_datepicker_options] When I try print a report in Invoicing an error occurs

Problem

Steps to reproduce:

Invoicing -> Reports -> Trial Balance

error cuando intento imprimir un reporte

Error:
Uncaught TypeError: Cannot read property 'type' of undefined

https://test.inteco.org/web/content/329345-88c7a85/web.assets_backend.js:2947
Rastreo de error:
TypeError: Cannot read property 'type' of undefined
    at Class.init (https://test.inteco.org/web/content/329345-88c7a85/web.assets_backend.js:2947:274)
    at Class.init (https://test.inteco.org/web/content/250201-584d50c/web.assets_common.js:3819:371)
    at new Class (https://test.inteco.org/web/content/250201-584d50c/web.assets_common.js:3817:65)
    at HTMLDivElement.<anonymous> (https://test.inteco.org/web/content/329345-88c7a85/web.assets_backend.js:2879:1042)
    at Function.each (https://test.inteco.org/web/content/250201-584d50c/web.assets_common.js:625:767)
    at jQuery.fn.init.each (https://test.inteco.org/web/content/250201-584d50c/web.assets_common.js:613:643)
    at Class.render_searchview_buttons (https://test.inteco.org/web/content/329345-88c7a85/web.assets_backend.js:2879:987)
    at Class.render (https://test.inteco.org/web/content/329345-88c7a85/web.assets_backend.js:2879:588)
    at Array.<anonymous> (https://test.inteco.org/web/content/329345-88c7a85/web.assets_backend.js:2878:385)
    at Array.<anonymous> (https://test.inteco.org/web/content/250201-584d50c/web.assets_common.js:802:681)

Solution

--- a/web_widget_datepicker_options/static/src/js/datepicker.js
+++ b/web_widget_datepicker_options/static/src/js/datepicker.js
@@ -11,6 +11,7 @@ odoo.define('web_widget_datepicker_options.datepicker', function(require) {
             this._super.apply(this, arguments);
             var parent = this.getParent();
             if(typeof parent !== 'undefined'
+                && typeof parent.field !== 'undefined'
                     && parent.field.type === 'date'
                     && parent.nodeOptions){
                 var datepicker = parent.nodeOptions.datepicker;
@@ -24,6 +25,7 @@ odoo.define('web_widget_datepicker_options.datepicker', function(require) {
             this._super.apply(this, arguments);
             var parent = this.getParent();
             if(typeof parent !== 'undefined'
+                && typeof parent.field !== 'undefined'
                     && parent.field.type === 'datetime'
                     && parent.nodeOptions){
                 var datepicker = parent.nodeOptions.datepicker;

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.