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

pull/682/head
Enric Tobella 2024-08-13 23:12:42 +02:00
parent fd92ead749
commit 3939e5b28c
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class ReconcileController extends KanbanController {
});
}
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 false;

View File

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