Skip to content

Commit

Permalink
[FIX] account: bank statement reconciliation widget: do not set partn…
Browse files Browse the repository at this point in the history
…er of a statement line with no partner when selecting a move line
  • Loading branch information
Whisno committed Sep 17, 2014
1 parent cfe558c commit f968ced
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions addons/account/static/src/js/account_widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,18 +1013,7 @@ openerp.account = function (instance) {
return;
}

// If statement line has no partner, give it the partner of the selected move line
if (!this.st_line.partner_id && line.partner_id) {
self.changePartner(line.partner_id, function() {
self.selectMoveLine(mv_line);
});
} else {
self.set("mv_lines_selected", self.get("mv_lines_selected").concat(line));
// $(mv_line).attr('data-selected','true');
// self.set("mv_lines_selected", self.get("mv_lines_selected").concat(line));
// this.set("mv_lines", _.reject(this.get("mv_lines"), function(o){return o.id == line_id}));
// this.getParent().excludeMoveLines([line_id]);
}
self.set("mv_lines_selected", self.get("mv_lines_selected").concat(line));
},

deselectMoveLine: function(mv_line) {
Expand All @@ -1044,11 +1033,6 @@ openerp.account = function (instance) {
self.$el.removeClass("no_match");
self.set("mode", "match");
self.set("mv_lines_selected", mv_lines_selected);


// $(mv_line).attr('data-selected','false');
// this.set("mv_lines", this.get("mv_lines").concat(line));
// this.getParent().unexcludeMoveLines([line_id]);
},

/** Matches pagination */
Expand Down

0 comments on commit f968ced

Please sign in to comment.