check_deposit: allow account.group_account_invoice to make checks deposits

Add confirm pop-up when clicking on "Back to draft"
This commit is contained in:
Alexis de Lattre
2023-09-21 10:55:21 +02:00
parent 097a8fa1c0
commit f000dcd1f8
3 changed files with 5 additions and 4 deletions

View File

@@ -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.

View File

@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 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 account.group_account_invoice 1 1 1 1

View File

@@ -31,6 +31,7 @@
states="done"
string="Back to Draft"
type="object"
confirm="Are you sure you want to go back to draft?"
/>
<button name="get_report" string="Print" type="object" />
<field
@@ -213,7 +214,7 @@
<menuitem
action="action_check_deposit_tree"
id="menu_check_deposit_tree"
parent="account.menu_finance_entries_accounting_miscellaneous"
sequence="30"
parent="account.menu_finance_receivables"
sequence="20"
/>
</odoo>