[FIX] account_reconcile_oca: Remove bug when accessing from move view
parent
fd92ead749
commit
3939e5b28c
|
@ -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)]}"
|
||||
|
|
Loading…
Reference in New Issue