[FIX] account: revert commit 9265, show every invoice line in the list view and do not force domain on it to remove 0 debit/credit lines

bzr revid: mat@openerp.com-20131008152812-j3cll4jrwic1864r
This commit is contained in:
Martin Trigaux 2013-10-08 17:28:12 +02:00
parent ca65b05467
commit 78c10afab2
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ openerp.account.quickadd = function (instance) {
},
search_by_journal_period: function() {
var self = this;
var domain = ['|',['debit', '!=', 0], ['credit', '!=', 0]];
var domain = [];
if (self.current_journal !== null) domain.push(["journal_id", "=", self.current_journal]);
if (self.current_period !== null) domain.push(["period_id", "=", self.current_period]);
self.last_context["journal_id"] = self.current_journal === null ? false : self.current_journal;