niv-openerp 2012-09-21 12:11:22 +02:00
parent 4dfc435b09
commit c63ac8ca5a
3 changed files with 12 additions and 3 deletions

View File

@ -1532,7 +1532,7 @@
</record>
<act_window
context="{'search_default_unreconciled': 1,'view_mode':True}"
context="{'view_mode':True}"
id="action_account_manual_reconcile" name="Journal Items"
res_model="account.move.line"
view_id="view_move_line_tree"

View File

@ -9,7 +9,15 @@ openerp.account = function (instance) {
instance.web.account.ReconciliationListView = instance.web.ListView.extend({
init: function() {
this._super.apply(this, arguments);
var self = this;
this.current_partner = null;
this.do_select.add(function() {
if (self.get_selected_ids().length === 0) {
self.$(".oe_account_recon_reconcile").attr("disabled", "");
} else {
self.$(".oe_account_recon_reconcile").removeAttr("disabled");
}
});
},
on_loaded: function() {
var self = this;

View File

@ -15,8 +15,9 @@
<button class="oe_account_recon_next oe_button" href="javascript:void(0)">&gt;</button>
</div>
<div>
<button class="oe_account_recon_reconcile oe_button oe_highlight" href="javascript:void(0)">Reconcile</button>
<button class="oe_account_recom_mark_as_reconciled oe_button oe_highlight" href="javascript:void(0)">Nothing to reconcile</button>
<button class="oe_account_recon_reconcile oe_button oe_highlight" href="javascript:void(0)"
disabled="">Reconcile</button>
<button class="oe_account_recom_mark_as_reconciled oe_button" href="javascript:void(0)">Nothing to reconcile</button>
</div>
</t>
</div>