summaryrefslogtreecommitdiff
path: root/addons/account/static/src/js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-09-20 18:22:57 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-09-20 18:22:57 +0200
commit4dfc435b092fde85a4ee00d65bdae85d2cbc2374 (patch)
tree70dbe3e5d5394ec6ab722124d5489d2e6b0d401c /addons/account/static/src/js
parenta79bc9be12fc488d7e8ec987ce45e3247dafaccf (diff)
Added mark as reconciled
bzr revid: nicolas.vanhoren@openerp.com-20120920162257-njbnth2t30jranvx
Diffstat (limited to 'addons/account/static/src/js')
-rw-r--r--addons/account/static/src/js/account_move_reconciliation.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/account/static/src/js/account_move_reconciliation.js b/addons/account/static/src/js/account_move_reconciliation.js
index 6399cdbca5d..3c7a56971ec 100644
--- a/addons/account/static/src/js/account_move_reconciliation.js
+++ b/addons/account/static/src/js/account_move_reconciliation.js
@@ -27,6 +27,9 @@ openerp.account = function (instance) {
this.$(".oe_account_recon_reconcile").click(function() {
self.reconcile();
});
+ this.$(".oe_account_recom_mark_as_reconciled").click(function() {
+ self.mark_as_reconciled();
+ });
}
return tmp;
},
@@ -86,6 +89,13 @@ openerp.account = function (instance) {
});
});
},
+ mark_as_reconciled: function() {
+ var self = this;
+ var id = self.partners[self.current_partner][0];
+ new instance.web.Model("res.partner").call("mark_as_reconciled", [[id]]).pipe(function() {
+ self.do_search(self.last_domain, self.last_context, self.last_group_by);
+ });
+ },
});
};