[FIX] account_reconcile_oca: Remove bug when accessing from move view

pull/808/head
Enric Tobella 2024-08-13 23:12:42 +02:00 committed by Jordi Ballester Alomar
parent fedb7b7490
commit 147532400b
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export class ReconcileController extends KanbanController {
}); });
} }
get journalId() { get journalId() {
if (this.props.resModel === "account.bank.statement.line") { if (this.props.context.active_model === "account.journal") {
return this.props.context.active_id; return this.props.context.active_id;
} }
return false; return false;

View File

@ -13,6 +13,7 @@
type="action" type="action"
name="%(account_reconcile_oca.action_bank_statement_line_move_view_reconcile)s" name="%(account_reconcile_oca.action_bank_statement_line_move_view_reconcile)s"
string="Bank reconcile" string="Bank reconcile"
context="{'search_default_move_id': id}"
class="btn btn-primary" class="btn btn-primary"
icon="fa-list" icon="fa-list"
invisible="statement_line_id == False" invisible="statement_line_id == False"