Javascript error in Customer Payments

Bug #1203979 reported by diannejose
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

I've three validated invoices for Agrolait for amounts 213.90, 1190.25, 66.13. Then I create a new customer payment for Agrolait and these three show up. And i entered 213.90 in Paid amount and the full reconcile will be ticked. And now i change the paid amount to 280.03 and there will be no change, but it can allocate the 3rd invoice 66.13. Now I tick the full reconcile option for 66.13 and now change the paid amount. A javascript error will appear for this case.

Amit Parik (amit-parik)
affects: openobject-server → openobject-addons
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

We have faced this kind error since ago but on latest stable7 this is working fine. This error was fixed meanwhile after release the v7.

So would you please try with the latest update code and If you still faced the same problem with latest v7 then you can reopen this.

Thank you!

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
diannejose (dianne-o) wrote :

I've tried this for openerp-7.0-20130611-235553

diannejose (dianne-o)
Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

You have use the openerp code for 11/06/2013, go to the nightly.openerp.com and use the latest date's code and try again.

Thank you!

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
diannejose (dianne-o) wrote :

Hello,

I've tried this in OpenERP version 7.0-20130729-231030 with Chrome and i get the js error:

Uncaught TypeError: Cannot call method 'set' of undefined

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

I am facing this error with both trunk and 7.0. In Firefox 22 I am facing this below error :

TypeError: self.records.find(...) is undefined
http://localhost:8069/web/webclient/js?db=trnk:3795

And with chrome 28.0.1500.71 version,

Uncaught TypeError: Cannot call method 'set' of undefined
http://trunk-16474.runbot.openerp.com/web/webclient/js?db=trunk-16474-all:3795

while select "Full Reconcile". So, I am confirming this issue.

Thanks for reporting.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Pavel Batishchev (pavel-batishchev) wrote :

This error can be avoided replacing code in web/addons/web/static/src/js/view_list_editable.js (string 316-323):

                        var record = self.records.get(attrs.id);
                        if (!record) {
                            // new record
                            created = true;
                            record = self.records.find(function (r) {
                                return !r.get('id');
                            }).set('id', attrs.id);
                        }

by this code:

                        var record = self.records.get(attrs.id);
                        if (!record) {
                            // new record
                            created = true;
                            record = self.records.find(function (r) {
                                return !r.get('id');
                            })
                            if (record) {
                                    record = record.set('id', attrs.id);
                            }
                            else {
                                return;
                            }
                        }

Revision history for this message
Mohamed ARRIOUACH (med-arriouach) wrote :

Thanks Pavel Batishchev, that work for me :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.