Skip to content

Commit 759349d

Browse files
committed
[IMP] account, account_batch_payment: Improve UI on payment and batch payment views
The changes are : - spelling correction - button rearrangement - autofill of journal_id field on batch payment creation - remove the order drag & drop button on batch payment journal list view task-4276813 closes odoo#185227 Related: odoo/enterprise#72753 Signed-off-by: Habib Ayob (ayh) <[email protected]>
1 parent c483ff5 commit 759349d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addons/account/views/account_payment_view.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,11 @@
143143
invisible="state != 'draft'" data-hotkey="q"/>
144144
<button name="action_validate" string="Validate" type="object" class="oe_highlight"
145145
invisible="state != 'in_process'" data-hotkey="q"/>
146-
<button name="action_reject" string="Reject" type="object" class="oe_highlight"
146+
<button name="action_reject" string="Reject" type="object"
147147
invisible="state != 'in_process' or not is_sent" data-hotkey="q"/>
148-
<button name="action_draft" string="Reset To Draft" type="object" class="btn btn-secondary"
148+
<button name="action_draft" string="Reset to Draft" type="object" class="btn btn-secondary"
149149
invisible="state in ('draft')"
150150
groups="account.group_account_invoice" data-hotkey="w"/>
151-
<button name="action_cancel" string="Cancel" type="object"
152-
invisible="not id or not (state == 'draft' or (state == 'in_process' and is_sent))" data-hotkey="x"/>
153151
<button string="Request Cancel"
154152
name="button_request_cancel"
155153
type="object"
@@ -160,6 +158,8 @@
160158
invisible="state != 'in_process' or is_sent or payment_method_code != 'manual'"/>
161159
<button name="unmark_as_sent" string="Unmark as Sent" type="object" data-hotkey="k"
162160
invisible="state != 'in_process' or not is_sent or payment_method_code != 'manual'"/>
161+
<button name="action_cancel" string="Cancel" type="object"
162+
invisible="not id or not (state == 'draft' or (state == 'in_process' and is_sent))" data-hotkey="x"/>
163163
<field name="state" widget="statusbar" statusbar_visible="draft,in_process,paid"/>
164164
</header>
165165
<div class="alert alert-warning mb-0" role="alert" invisible="not duplicate_payment_ids or state!='draft'">

0 commit comments

Comments
 (0)