[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() {
|
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;
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue