user-select: none;
cursor: default;
height: 100%;
+ overflow: auto;
/* icons */ }
.openerp .oe_bank_statement_reconciliation .oe_form_sheetbg {
- border-bottom: 0;
- padding: 0;
- height: 100%; }
+ padding-top: 0; }
.openerp .oe_bank_statement_reconciliation .oe_form_sheetbg .oe_form_sheet {
position: relative;
- padding: 20px 15px 30px 15px;
+ padding: 20px 15px 20px 15px;
border-top: 0;
- border-bottom: 0;
height: 100%; }
.openerp .oe_bank_statement_reconciliation h1 input, .openerp .oe_bank_statement_reconciliation h2 input {
height: auto !important; }
.openerp .oe_bank_statement_reconciliation .change_statement_name_container td:last-child {
width: 1%;
padding-left: 3px; }
+ .openerp .oe_bank_statement_reconciliation .change_statement_name_container td:last-child button {
+ height: 100%;
+ box-sizing: content-box; }
.openerp .oe_bank_statement_reconciliation h2 {
font-size: 1.8em; }
.openerp .oe_bank_statement_reconciliation .progress {
height: 26px;
margin: 0 15px 4px 15px; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view caption button {
- float: right; }
+ float: right;
+ position: relative;
+ top: -4px; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view caption button:disabled {
opacity: 0.5; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view caption > span, .openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view caption > input {
this.model_bank_statement_line = new instance.web.Model("account.bank.statement.line");
this.reconciliation_menu_id = false; // Used to update the needaction badge
this.formatCurrency; // Method that formats the currency ; loaded from the server
-
+ this.action_manager = this.findAncestor(function(ancestor){ return ancestor instanceof instance.web.ActionManager });
+
// Only for statistical purposes
this.lines_reconciled_with_ctrl_enter = 0;
this.time_widget_loaded = Date.now();
.call("get_object_reference", ['account', 'action_bank_statement_tree'])
.then(function (result) {
var action_id = result[1];
- // Warning : altough I don't see why this widget wouldn't be directly instanciated by the
- // action manager, if it wasn't, this code wouldn't work. You'd have to do something like :
- // var action_manager = self;
- // while (! action_manager instanceof ActionManager)
- // action_manager = action_manager.getParent();
- var action_manager = self.getParent();
- var breadcrumbs = action_manager.breadcrumbs;
- var found = false;
- for (var i=breadcrumbs.length-1; i>=0; i--) {
- if (breadcrumbs[i].action && breadcrumbs[i].action.id === action_id) {
- var title = breadcrumbs[i].get_title();
- action_manager.select_breadcrumb(i, _.isArray(title) ? i : undefined);
- found = true;
- }
+ var breadcrumbs = self.action_manager.get_widgets();
+ var widget = _.find(breadcrumbs, function(widget){
+ return widget.action && widget.action.id === action_id;
+ });
+ if (widget) {
+ self.action_manager.select_widget(widget, 0);
+ } else {
+ self.action_manager.do_action(action_id, {
+ clear_breadcrumbs: true
+ });
}
- if (!found)
- instance.web.Home(self);
});
},
// Special case hack : no identified partner
if (self.st_line.has_no_partner) {
if (Math.abs(balance).toFixed(3) === "0.000") {
- self.$(".button_ok").addClass("oe_highlight");
+ self.$(".button_ok").addClass("btn-primary");
self.$(".button_ok").removeAttr("disabled");
self.$(".button_ok").text("OK");
self.is_valid = true;
} else {
- self.$(".button_ok").removeClass("oe_highlight");
+ self.$(".button_ok").removeClass("btn-primary");
self.$(".button_ok").attr("disabled", "disabled");
self.$(".button_ok").text("OK");
self.is_valid = false;
}
if (Math.abs(balance).toFixed(3) === "0.000") {
- self.$(".button_ok").addClass("oe_highlight");
+ self.$(".button_ok").addClass("btn-primary");
self.$(".button_ok").text("OK");
} else {
- self.$(".button_ok").removeClass("oe_highlight");
+ self.$(".button_ok").removeClass("btn-primary");
self.$(".button_ok").text("Keep open");
var debit = (balance > 0 ? self.formatCurrency(balance, self.st_line.currency_id) : "");
var credit = (balance < 0 ? self.formatCurrency(-1*balance, self.st_line.currency_id) : "");
<span><t t-esc="title"/></span>
<table class="change_statement_name_container oe_form"><tr>
<td><input class="change_statement_name_field" type="text"/></td>
- <td><button class="change_statement_name_button oe_highlight">OK</button></td>
+ <td><button class="change_statement_name_button btn btn-primary btn-sm">OK</button></td>
</tr></table>
</h1>
</t>
</p>
<p class="action_buttons">
<t t-if="single_statement or multiple_statements">
- <button class="button_back_to_statement">Back to statements list</button>
- <button class="button_close_statement">Close the statement<t t-if="multiple_statements">s</t></button>
+ <button class="button_back_to_statement btn btn-default btn-sm">Back to statements list</button>
+ <button class="button_close_statement btn btn-primary btn-sm">Close the statement<t t-if="multiple_statements">s</t></button>
</t>
</p>
</div>
<td>
<table class="accounting_view">
<caption>
- <button class="button_ok"></button>
+ <button class="button_ok btn btn-default btn-sm"></button>
<span t-if="! line.has_no_partner" class="partner_name">
<t t-esc="line.partner_name"/>
<span class="change_partner glyphicon glyphicon-pencil"></span>