[FIX] account_reconcile_oca: Remove bug when accessing from move view
parent
fedb7b7490
commit
147532400b
|
@ -33,7 +33,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"
|
||||
invisible="statement_line_id == False"
|
||||
|
|
Loading…
Reference in New Issue