[IMP] account: bank statement reconciliation widget: remove a created line by clicking on it

This commit is contained in:
Arthur Maniet 2014-12-05 15:07:01 +01:00
parent 3695886531
commit cc703c736c
4 changed files with 3 additions and 15 deletions

View File

@ -162,10 +162,6 @@
width: 100%; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view tr, .openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .match table tr {
cursor: pointer; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view tr.created_line, .openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .match table tr.created_line {
cursor: default !important; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view tr.created_line .line_remove_button, .openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .match table tr.created_line .line_remove_button {
cursor: pointer; }
.openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .accounting_view td, .openerp .oe_bank_statement_reconciliation .oe_bank_statement_reconciliation_line .match table td {
padding: 1px 8px;
vertical-align: middle; }

View File

@ -264,14 +264,6 @@ $aestetic_animation_speed: 300ms;
tr {
cursor: pointer;
&.created_line {
cursor: default !important;
.line_remove_button {
cursor: pointer;
}
}
}
td {

View File

@ -1177,7 +1177,7 @@ openerp.account = function (instance) {
var self = this;
$.each(self.$(".tbody_matched_lines .bootstrap_popover"), function(){ $(this).popover('destroy') });
self.$(".tbody_matched_lines").empty();
_(self.get("mv_lines_selected")).each(function(line){
var $line = $(QWeb.render("bank_statement_reconciliation_move_line", {line: line, selected: true}));
self.bindPopoverTo($line.find(".line_info_button"));
@ -1194,7 +1194,7 @@ openerp.account = function (instance) {
_(self.getCreatedLines()).each(function(line){
var $line = $(QWeb.render("bank_statement_reconciliation_created_line", {line: line}));
$line.find(".line_remove_button").click(function(){ self.removeLine($(this).closest(".created_line")) });
$line.click(function(){ self.removeLine($(this)) });
self.$(".tbody_created_lines").append($line);
if (line.no_remove_action) {
// Then the previous line's remove button deletes this line too

View File

@ -175,7 +175,7 @@
<t t-name="bank_statement_reconciliation_created_line">
<tr class="created_line" t-att-data-lineid="line.id">
<td class="cell_action"><t t-if="! line.no_remove_action"><span class="line_remove_button glyphicon glyphicon-remove"></span></t></td>
<td class="cell_action"><t t-if="! line.no_remove_action"><span class="glyphicon glyphicon-remove"></span></t></td>
<td class="cell_account_code"><t t-esc="line.account_num"/></td>
<td class="cell_due_date"></td>
<td class="cell_label"><t t-esc="line.label"/></td>