[FIX] account: show statement line info popover on reconciliation widget

This popover is the only way to get extra information like the note or the reference of the bank statement line.

Was PR #25543
This commit is contained in:
Xavier Alt
2018-07-02 09:40:45 +02:00
committed by qdp-odoo
parent 2ab3fa86fe
commit 21b2617d6f
3 changed files with 7 additions and 2 deletions
@@ -298,7 +298,9 @@ var LineRenderer = Widget.extend(FieldManagerMixin, {
};
self.fields.partner_id.appendTo(self.$('.accounting_view caption'));
});
this.$('thead .line_info_button').attr("data-content", qweb.render('reconciliation.line.statement_line.details', {'state': this._initialState}));
$('<span class="line_info_button fa fa-info-circle"/>')
.appendTo(this.$('thead .cell_info_popover'))
.attr("data-content", qweb.render('reconciliation.line.statement_line.details', {'state': this._initialState}));
this.$el.popover({
'selector': '.line_info_button',
'placement': 'left',
@@ -159,6 +159,9 @@
}
/* info popover */
.popover {
max-width: none;
}
table.details {
vertical-align: top;
@@ -251,7 +251,7 @@
<tr><td>Description</td><td><t t-esc="state.st_line.name"/></td></tr>
<tr><td>Amount</td><td><t t-raw="state.st_line.amount_str"/><t t-if="state.st_line.amount_currency_str"> (<t t-esc="state.st_line.amount_currency_str"/>)</t></td></tr>
<tr><td>Account</td><td><t t-esc="state.st_line.account_code"/> <t t-esc="state.st_line.account_name"/></td></tr>
<tr t-if="state.st_line.note"><td>Note</td><td><t t-esc="state.st_line.note"/></td></tr>
<tr t-if="state.st_line.note"><td>Note</td><td style="white-space: pre;"><t t-esc="state.st_line.note"/></td></tr>
</table>
</t>