diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-11-09 14:00:18 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-11-09 14:00:18 +0100 |
| commit | 1df1395e64a4bbb4e34d4a3ae0cbc84cf8aa20e4 (patch) | |
| tree | 392786d06b37ecf07341d5151fe42ac09d134c50 /addons | |
| parent | 4c7f0a9e060d2c14e3d448472163b4412941dc50 (diff) | |
Changed context.
bzr revid: nicolas.vanhoren@openerp.com-20121109130018-9jvd3zrqbfvowfso
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/static/src/js/account_move_line_quickadd.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/addons/account/static/src/js/account_move_line_quickadd.js b/addons/account/static/src/js/account_move_line_quickadd.js index cee3142d436..70cb5fb8629 100644 --- a/addons/account/static/src/js/account_move_line_quickadd.js +++ b/addons/account/static/src/js/account_move_line_quickadd.js @@ -3,7 +3,7 @@ openerp.account = function (instance) { _lt = instance.web._lt; var QWeb = instance.web.qweb; - instance.web.account = {}; + instance.web.account = instance.web.account || {}; instance.web.views.add('tree_account_move_line_quickadd', 'instance.web.account.QuickAddListView'); instance.web.account.QuickAddListView = instance.web.ListView.extend({ @@ -54,14 +54,16 @@ openerp.account = function (instance) { search_by_journal_period: function() { var self = this; - compoundDomain = new instance.web.CompoundDomain(self.last_domain, + var compoundDomain = new instance.web.CompoundDomain(self.last_domain, [ ["journal_id", "=", self.current_journal], ["period_id", "=", self.current_period] ]); - self.last_context["journal_id"] = self.current_journal; - self.last_context["period_id"] = self.current_period; - return self.old_search(compoundDomain, self.last_context, self.last_group_by); + var cc = new instance.web.CompoundContext(this.last_context, { + "journal_id": self.current_journal, + "period_id" :self.current_period, + }); + return self.old_search(compoundDomain, cc, self.last_group_by); }, _next: function (next_record, options) { next_record = next_record || 'succ'; |
