wip
bzr revid: nicolas.vanhoren@openerp.com-20120921101122-0jnxba0u5qtogcmm
This commit is contained in:
parent
4dfc435b09
commit
c63ac8ca5a
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
<button class="oe_account_recon_next oe_button" href="javascript:void(0)">></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>
|
||||
|
|
Loading…
Reference in New Issue