[FIX] account_reconcile_oca: orser of statements on list
parent
04fea1e2c4
commit
38374976fc
|
@ -20,10 +20,11 @@ export class ReconcileRenderer extends KanbanRenderer {
|
|||
const {list} = this.props;
|
||||
const statements = [];
|
||||
for (const record of list.records) {
|
||||
const statementId = record.data.statement_id && record.data.statement_id[0];
|
||||
var statementId = record.data.statement_id && record.data.statement_id[0];
|
||||
if (
|
||||
statementId &&
|
||||
(!statements.length || statements[0].id !== statementId)
|
||||
(!statements.length ||
|
||||
statements[statements.length - 1].id !== statementId)
|
||||
) {
|
||||
statements.push({
|
||||
id: statementId,
|
||||
|
@ -35,6 +36,7 @@ export class ReconcileRenderer extends KanbanRenderer {
|
|||
});
|
||||
}
|
||||
}
|
||||
console.log(statements);
|
||||
return statements;
|
||||
}
|
||||
async onClickStatement(statementId) {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div
|
||||
class="alert alert-warning text-center"
|
||||
role="alert"
|
||||
invisible="is_valid and is_complete"
|
||||
attrs="{'invisible': [('is_valid', '=',True), ('is_complete','=',True)]}"
|
||||
>
|
||||
<field name="problem_description" />
|
||||
<field name="is_valid" invisible="1" />
|
||||
|
|
Loading…
Reference in New Issue