mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_reconcile_oca: Remove bug when accessing from move view
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)]}"
|
||||
|
||||
Reference in New Issue
Block a user