fixup! account_reconcile_oca: Fix opening
parent
c8f85a2775
commit
b24ca9a834
|
@ -1,5 +1,5 @@
|
|||
/** @odoo-module */
|
||||
const {useState, useSubEnv} = owl;
|
||||
const {useState, useSubEnv, onMounted} = owl;
|
||||
import {useBus, useService} from "@web/core/utils/hooks";
|
||||
import {KanbanController} from "@web/views/kanban/kanban_controller";
|
||||
import {View} from "@web/views/view";
|
||||
|
@ -22,6 +22,7 @@ export class ReconcileController extends KanbanController {
|
|||
useBus(this.model.bus, "update", () => {
|
||||
this.selectRecord();
|
||||
});
|
||||
onMounted(() => this.selectRecord());
|
||||
}
|
||||
exposeController(controller) {
|
||||
this.form_controller = controller;
|
||||
|
|
|
@ -26,23 +26,8 @@
|
|||
height: 100%;
|
||||
}
|
||||
.o_form_view {
|
||||
.btn-info:not(.dropdown-toggle):not(.dropdown-item) {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.o_form_statusbar.o_account_reconcile_oca_statusbar {
|
||||
.btn:not(.dropdown-toggle):not(.dropdown-item) {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
height: 40px;
|
||||
> .o_statusbar_buttons {
|
||||
height: 100%;
|
||||
> .btn {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.o_field_account_reconcile_oca_data {
|
||||
.o_field_account_reconcile_oca_balance_float {
|
||||
|
|
|
@ -21,14 +21,14 @@
|
|||
name="reconcile"
|
||||
type="object"
|
||||
string="Reconcile"
|
||||
class="btn btn-primary"
|
||||
class="btn btn-primary mx-1"
|
||||
invisible="is_reconciled == True"
|
||||
/>
|
||||
<button
|
||||
name="clean_reconcile"
|
||||
type="object"
|
||||
string="Clean"
|
||||
class="btn btn-secondary"
|
||||
class="btn btn-secondary mx-1"
|
||||
invisible="is_reconciled == True"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -117,6 +117,19 @@
|
|||
</field>
|
||||
</record>
|
||||
|
||||
<record id="account_bank_statement_line_search" model="ir.ui.view">
|
||||
<field name="name">account.bank.statement.line.search</field>
|
||||
<field name="model">account.bank.statement.line</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="account_statement_base.account_bank_statement_line_search"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="journal_id" position="after">
|
||||
<field name="move_id" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="bank_statement_line_form_reconcile_view" model="ir.ui.view">
|
||||
<field name="name">account.bank.statement.line.reconcile</field>
|
||||
<field name="model">account.bank.statement.line</field>
|
||||
|
@ -130,14 +143,14 @@
|
|||
type="object"
|
||||
string="Validate"
|
||||
accesskey="v"
|
||||
class="btn btn-primary"
|
||||
class="btn btn-primary mx-1"
|
||||
invisible="is_reconciled == True or can_reconcile == False"
|
||||
/>
|
||||
<button
|
||||
name="reconcile_bank_line"
|
||||
type="object"
|
||||
string="Reconcile"
|
||||
class="btn btn-primary disabled"
|
||||
class="btn btn-primary disabled mx-1"
|
||||
invisible="is_reconciled == True or can_reconcile == True"
|
||||
/>
|
||||
<button
|
||||
|
@ -145,7 +158,7 @@
|
|||
type="object"
|
||||
string="Unreconcile"
|
||||
accesskey="r"
|
||||
class="btn btn-warning"
|
||||
class="btn btn-warning mx-1"
|
||||
invisible="is_reconciled == False"
|
||||
confirm="Are you sure that the move should be unreconciled?"
|
||||
/>
|
||||
|
@ -153,20 +166,21 @@
|
|||
name="clean_reconcile"
|
||||
type="object"
|
||||
string="Reset reconciliation"
|
||||
class="btn btn-secondary"
|
||||
class="btn btn-secondary mx-1"
|
||||
invisible="is_reconciled == True"
|
||||
/>
|
||||
<button
|
||||
name="action_to_check"
|
||||
string="To Check"
|
||||
class="btn btn-secondary"
|
||||
class="btn btn-secondary mx-1"
|
||||
accesskey="c"
|
||||
type="object"
|
||||
invisible="to_check == True"
|
||||
/>
|
||||
<button
|
||||
<button
|
||||
name="action_checked"
|
||||
string="Set as Checked"
|
||||
class="btn btn-secondary mx-1"
|
||||
accesskey="c"
|
||||
type="object"
|
||||
invisible="to_check == False"
|
||||
|
@ -176,7 +190,7 @@
|
|||
type="object"
|
||||
accesskey="m"
|
||||
string="View move"
|
||||
class="btn btn-info"
|
||||
class="btn btn-info mx-1"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -367,7 +381,7 @@
|
|||
>
|
||||
<field name="name">Reconcile bank statement lines</field>
|
||||
<field name="res_model">account.bank.statement.line</field>
|
||||
<field name="context">{'search_default_move_id': id}</field>
|
||||
<field name="context">{'search_default_move_id': active_id}</field>
|
||||
<field name="view_mode">kanban</field>
|
||||
<field
|
||||
name="view_ids"
|
||||
|
|
Loading…
Reference in New Issue