[IMP] account: bank statement reconciliation widget: remove a created line by clicking on it
This commit is contained in:
parent
3695886531
commit
cc703c736c
|
@ -162,10 +162,6 @@
|
||||||
width: 100%; }
|
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 {
|
.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; }
|
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 {
|
.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;
|
padding: 1px 8px;
|
||||||
vertical-align: middle; }
|
vertical-align: middle; }
|
||||||
|
|
|
@ -264,14 +264,6 @@ $aestetic_animation_speed: 300ms;
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&.created_line {
|
|
||||||
cursor: default !important;
|
|
||||||
|
|
||||||
.line_remove_button {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
|
|
@ -1177,7 +1177,7 @@ openerp.account = function (instance) {
|
||||||
var self = this;
|
var self = this;
|
||||||
$.each(self.$(".tbody_matched_lines .bootstrap_popover"), function(){ $(this).popover('destroy') });
|
$.each(self.$(".tbody_matched_lines .bootstrap_popover"), function(){ $(this).popover('destroy') });
|
||||||
self.$(".tbody_matched_lines").empty();
|
self.$(".tbody_matched_lines").empty();
|
||||||
|
|
||||||
_(self.get("mv_lines_selected")).each(function(line){
|
_(self.get("mv_lines_selected")).each(function(line){
|
||||||
var $line = $(QWeb.render("bank_statement_reconciliation_move_line", {line: line, selected: true}));
|
var $line = $(QWeb.render("bank_statement_reconciliation_move_line", {line: line, selected: true}));
|
||||||
self.bindPopoverTo($line.find(".line_info_button"));
|
self.bindPopoverTo($line.find(".line_info_button"));
|
||||||
|
@ -1194,7 +1194,7 @@ openerp.account = function (instance) {
|
||||||
|
|
||||||
_(self.getCreatedLines()).each(function(line){
|
_(self.getCreatedLines()).each(function(line){
|
||||||
var $line = $(QWeb.render("bank_statement_reconciliation_created_line", {line: 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);
|
self.$(".tbody_created_lines").append($line);
|
||||||
if (line.no_remove_action) {
|
if (line.no_remove_action) {
|
||||||
// Then the previous line's remove button deletes this line too
|
// Then the previous line's remove button deletes this line too
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
|
|
||||||
<t t-name="bank_statement_reconciliation_created_line">
|
<t t-name="bank_statement_reconciliation_created_line">
|
||||||
<tr class="created_line" t-att-data-lineid="line.id">
|
<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_account_code"><t t-esc="line.account_num"/></td>
|
||||||
<td class="cell_due_date"></td>
|
<td class="cell_due_date"></td>
|
||||||
<td class="cell_label"><t t-esc="line.label"/></td>
|
<td class="cell_label"><t t-esc="line.label"/></td>
|
||||||
|
|
Loading…
Reference in New Issue