Ir al contenido
Menú
Se marcó esta pregunta
6 Respuestas
8411 Vistas

Hi,

Would anyone know why this error message appears when i try to enter a supplier invoice order line:

1) OpenERP version 7.0 webclient

2) Anglo-Saxon accounting

3) Products adopt product category with anglo saxon accounting properties set on parent as per required.

4) This error message appears when trying to create oder lines via Accounting>Supplier Invoice:


Uncaught TypeError: Cannot read property '1' of undefined http://example:8070/web/webclient/js?db=demo:3549


Regards,

Ashley Marc

Avatar
Descartar
Mejor respuesta

Hi Ashley,

I also have the same problem! The difference is mine lies on different line code:

Uncaught TypeError: Cannot read property '1' of undefined
localhost/web/webclient/js?db=bitnami_openerp:3573

On Firefox, it's:

data[0] is undefined
localhost/web/webclient/js?db=bitnami_openerp:3573

And the problem is, after this error pops out, I cannot insert any line order! I use Bitnami stack to install my OpenERP on CentOS. I have created another database to see whether it's systemic or just database specific and fortunately, it's only on my database.

The problem is, I'm not very familiar with Python, Javascript or even Linux to locate the error.

Can someone please help or at least give some guidance?

Thanks in advance!

Jeremy

Avatar
Descartar
Mejor respuesta

Guess not really helpful but I am seeing the exact same issue :(

Any pointer / suggestion would be appreciated

EDITED: Are we the only two seeing this ? It is a blocking issue :(

EDITED v2: Guess it is some bug in the webclient that nobody cares to look into :(

Avatar
Descartar
Mejor respuesta

Same problem for me. It reproduces trying to create both customer and supplier invoice lines.

The problem appears on a different line than yours:

Uncaught TypeError: Cannot read property '1' of undefined
http : // web/webclient/js?db=demo:3574

I started with a Costa Rica accounts chart but I ended replacing it.

Any idea?

Avatar
Descartar
Mejor respuesta

I get the same error. I am trying to add lines to Supplier Invoice.

Avatar
Descartar
Mejor respuesta

Hello,

This is web-client error in js file. web/static/src/js/view_form.js

     if (! no_recurse) {
         var dataset = new instance.web.DataSetStatic(this, this.field.relation, self.build_context());
         this.alive(dataset.name_get([self.get("value")])).done(function(data) {
            **if (data.length ==0){return false;}**
             self.display_value["" + self.get("value")] = data[0][1];
             self.render_value(true);
         });

Thanks,

Avatar
Descartar

why this error is coming when there is no data.?Also why this error is not coming in every view

Publicaciones relacionadas Respuestas Vistas Actividad
3
feb 25
2431
1
nov 24
2095
1
dic 23
2098
1
abr 21
7398
6
ene 24
15077