[FIX] account_reconcile_oca: Refresh view when adding information
parent
8ebeadcc43
commit
fedb7b7490
|
@ -69,6 +69,7 @@ export class ReconcileController extends KanbanController {
|
||||||
this.action.doAction(action, {
|
this.action.doAction(action, {
|
||||||
onClose: async () => {
|
onClose: async () => {
|
||||||
await this.model.root.load();
|
await this.model.root.load();
|
||||||
|
await this.updateJournalInfo();
|
||||||
this.render(true);
|
this.render(true);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,10 +23,12 @@ export class ReconcileFormController extends FormController {
|
||||||
async reloadFormController() {
|
async reloadFormController() {
|
||||||
var is_reconciled = this.model.root.data.is_reconciled;
|
var is_reconciled = this.model.root.data.is_reconciled;
|
||||||
await this.model.root.load();
|
await this.model.root.load();
|
||||||
if (!is_reconciled && this.model.root.data.is_reconciled) {
|
if (this.env.parentController) {
|
||||||
// This only happens when we press the reconcile button
|
// We will update the parent controller every time we reload the form.
|
||||||
if (this.env.parentController) {
|
await this.env.parentController.model.root.load();
|
||||||
// Showing rainbow man
|
await this.env.parentController.render(true);
|
||||||
|
if (!is_reconciled && this.model.root.data.is_reconciled) {
|
||||||
|
// This only happens when we press the reconcile button for showing rainbow man
|
||||||
const message = await this.orm.call(
|
const message = await this.orm.call(
|
||||||
"account.journal",
|
"account.journal",
|
||||||
"get_rainbowman_message",
|
"get_rainbowman_message",
|
||||||
|
@ -36,8 +38,6 @@ export class ReconcileFormController extends FormController {
|
||||||
this.env.parentController.setRainbowMan(message);
|
this.env.parentController.setRainbowMan(message);
|
||||||
}
|
}
|
||||||
// Refreshing
|
// Refreshing
|
||||||
await this.env.parentController.model.root.load();
|
|
||||||
await this.env.parentController.render(true);
|
|
||||||
this.env.parentController.selectRecord();
|
this.env.parentController.selectRecord();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue