← Back to team overview

openerp-india team mailing list archive

[Bug 1203979] Re: Javascript error in Customer Payments

 

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;
                            }
                        }

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1203979

Title:
  Javascript error in Customer Payments

Status in OpenERP Addons (modules):
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1203979/+subscriptions