From f000dcd1f8a460ff27341a35d63146e1bf6d2ffe Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 21 Sep 2023 10:55:21 +0200 Subject: [PATCH] check_deposit: allow account.group_account_invoice to make checks deposits Add confirm pop-up when clicking on "Back to draft" --- account_check_deposit/readme/USAGE.rst | 2 +- account_check_deposit/security/ir.model.access.csv | 2 +- account_check_deposit/views/account_check_deposit_view.xml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/account_check_deposit/readme/USAGE.rst b/account_check_deposit/readme/USAGE.rst index 302f20474..7ee62b9b4 100644 --- a/account_check_deposit/readme/USAGE.rst +++ b/account_check_deposit/readme/USAGE.rst @@ -3,7 +3,7 @@ invoice and click on the button *Register Payment* and select the *Checks Received* journal as *Journal*. When you want to deposit checks to the bank, go to the menu -*Invoicing > Accounting > Miscellaneous > Check Deposit*, create a new check deposit and set the +*Invoicing > Customers > Checks Deposits*, create a new check deposit and set the journal *Checks Received* and select the bank account on which you want to credit the checks. diff --git a/account_check_deposit/security/ir.model.access.csv b/account_check_deposit/security/ir.model.access.csv index 3e679366f..751a5e26d 100644 --- a/account_check_deposit/security/ir.model.access.csv +++ b/account_check_deposit/security/ir.model.access.csv @@ -1,2 +1,2 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_account_check_deposit_account_check_deposit_group_manager","account_check_deposit_account_check_deposit_group_manager","model_account_check_deposit","account.group_account_user",1,1,1,1 +"access_account_check_deposit_account_check_deposit_group_manager","account_check_deposit_account_check_deposit_group_manager","model_account_check_deposit","account.group_account_invoice",1,1,1,1 diff --git a/account_check_deposit/views/account_check_deposit_view.xml b/account_check_deposit/views/account_check_deposit_view.xml index e7d8a2be3..0c85e4c2a 100644 --- a/account_check_deposit/views/account_check_deposit_view.xml +++ b/account_check_deposit/views/account_check_deposit_view.xml @@ -31,6 +31,7 @@ states="done" string="Back to Draft" type="object" + confirm="Are you sure you want to go back to draft?" />