account_check_deposit: Add chatter on check deposit

Add chatter message when you click on the button to get all checks
Add unicity SQL constraint

[UPD] Update account_check_deposit.pot

[UPD] README.rst
This commit is contained in:
Alexis de Lattre
2021-04-22 19:50:36 +02:00
committed by Víctor Martínez
parent 75f2279b45
commit bddf40bed5
5 changed files with 265 additions and 116 deletions

View File

@@ -14,18 +14,18 @@ Account Check Deposit
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/13.0/account_check_deposit
:target: https://github.com/OCA/account-financial-tools/tree/14.0/account_check_deposit
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_check_deposit
:target: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_check_deposit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/92/13.0
:target: https://runbot.odoo-community.org/runbot/92/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows you to easily manage check deposits : you can select all
This module allows you to easily manage check deposits: you can select all
the checks you received and create a global deposit for the selected checks.
This module supports multi-currency ; each deposit has a currency and all the
checks of the deposit must have the same currency (so, if you have checks in
@@ -45,36 +45,32 @@ journal:
* Name: Checks Received
* Type: Bank
* Short Code: CHK (or any code you want)
* Default Debit Account: select an account for checks received
* Default Credit Account: idem
* Outstanding Receipts Account: select an account for checks received
Note that, on this *Checks Received* journal, the bank account and suspense account will not be used, so don't worry about these parameters.
This bank journal will be available as a payment method in Odoo. The account
you configured as *Default Debit Account* and *Defaut Credit Account* is the
you configured as *Outstanding Receipts Account* is the
account via which the amounts of checks will transit between the reception of a
check from a customer and the validation of the check deposit in Odoo.
On the Settings page of the Accounting, you should configure the
*Check Deposit Offsetting Account*:
* if you select *Bank Account*, the counter-part of the account move related to
the check deposit will be the default debit account of the bank account
selected on the check deposit.
* if you select *Transfer Account*, you will have to select a specific account
that will be used as transfer account for check deposits.
When you validate the check deposit in Odoo, it will generate a new journal entry that will move the amounts from the *Outstanding Receipts Account* of the checks received journal to the *Outstanding Receipts Account* of the bank journal related to the check deposit. It will also reconcile in the *Outstanding Receipts Account* of the checks received journal.
Usage
=====
When you receive a check that pays a customer invoice, you can go to that
invoice and click on the button *Register Payment* and select the
*Check Received* journal as *Payment Journal*.
*Checks Received* journal as *Journal*.
When you want to deposit checks to the bank, go to the menu
*Invoicing > Accounting > Check Deposit*, create a new check deposit and set the
*Invoicing > Accounting > Miscellaneous > Check Deposit*, create a new check deposit and set the
journal *Checks Received* and select the bank account on which you want to
credit the checks. Then click on *Add a line* to select the checks you want to
deposit at the bank. Eventually, validate the deposit and print the report
(you probably want to customize this report).
credit the checks.
Then click on the button *Get All Received Checks* if you want to deposit all the waiting received checks, or select the checks one by one by clicking on *Add a line*.
Eventually, validate the deposit and print the report (you probably want to customize this report).
Bug Tracker
===========
@@ -82,7 +78,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_check_deposit%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_check_deposit%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@@ -126,6 +122,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/13.0/account_check_deposit>`_ project on GitHub.
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/14.0/account_check_deposit>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -45,16 +45,51 @@ msgstr ""
msgid "<b>Transfer Date:</b>"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.constraint,message:account_check_deposit.constraint_account_check_deposit_name_company_unique
msgid "A check deposit with this reference already exists in this company."
msgstr ""
#. module: account_check_deposit
#: model:ir.model,name:account_check_deposit.model_account_check_deposit
msgid "Account Check Deposit"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_needaction
msgid "Action Needed"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_ids
msgid "Activities"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_exception_decoration
msgid "Activity Exception Decoration"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_state
msgid "Activity State"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_type_icon
msgid "Activity Type Icon"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.report_checkdeposit
msgid "Amount"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_attachment_count
msgid "Attachment Count"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.account_check_deposit_view_form
msgid "Back to Draft"
@@ -62,7 +97,6 @@ msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__bank_journal_id
#: model:ir.model.fields.selection,name:account_check_deposit.selection__res_company__check_deposit_offsetting_account__bank_account
#: model_terms:ir.ui.view,arch_db:account_check_deposit.view_check_deposit_search
msgid "Bank Account"
msgstr ""
@@ -85,40 +119,28 @@ msgid "Check Deposit"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#: code:addons/account_check_deposit/models/account_deposit.py:0
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#, python-format
msgid "Check Deposit %s"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#, python-format
msgid "Check Deposit - Ref. Check %s"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_res_company__check_deposit_offsetting_account
#: model:ir.model.fields,field_description:account_check_deposit.field_res_config_settings__check_deposit_offsetting_account
msgid "Check Deposit Offsetting Account"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.report_checkdeposit
msgid "Check Deposit n°"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.res_config_settings_view_form
msgid "Check Deposits"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__check_payment_ids
#: model_terms:ir.ui.view,arch_db:account_check_deposit.account_check_deposit_view_form
msgid "Check Payments"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#, python-format
msgid "Check Ref. %s"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.view_check_deposit_search
msgid "Checks Deposit"
@@ -130,21 +152,11 @@ msgstr ""
msgid "Checks Deposits"
msgstr ""
#. module: account_check_deposit
#: model:ir.model,name:account_check_deposit.model_res_company
msgid "Companies"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__company_id
msgid "Company"
msgstr ""
#. module: account_check_deposit
#: model:ir.model,name:account_check_deposit.model_res_config_settings
msgid "Config Settings"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__create_uid
msgid "Created by"
@@ -161,11 +173,6 @@ msgstr ""
msgid "Currency"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__currency_none_same_company_id
msgid "Currency (False if same as company)"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.report_checkdeposit
msgid "Date"
@@ -176,11 +183,6 @@ msgstr ""
msgid "Debtor"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__journal_default_account_id
msgid "Default Debit Account of the Journal"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__deposit_date
#: model_terms:ir.ui.view,arch_db:account_check_deposit.view_check_deposit_search
@@ -189,6 +191,7 @@ msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__display_name
#: model:ir.model.fields,field_description:account_check_deposit.field_account_move_line__display_name
msgid "Display Name"
msgstr ""
@@ -204,6 +207,33 @@ msgstr ""
msgid "Draft"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_follower_ids
msgid "Followers"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_channel_ids
msgid "Followers (Channels)"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_partner_ids
msgid "Followers (Partners)"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__activity_type_icon
msgid "Font awesome icon e.g. fa-tasks"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#: model_terms:ir.ui.view,arch_db:account_check_deposit.account_check_deposit_view_form
#, python-format
msgid "Get All Received Checks"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.view_check_deposit_search
msgid "Group By"
@@ -211,12 +241,45 @@ msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__id
#: model:ir.model.fields,field_description:account_check_deposit.field_account_move_line__id
msgid "ID"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_exception_icon
msgid "Icon"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__activity_exception_icon
msgid "Icon to indicate an exception activity."
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_needaction
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_unread
msgid "If checked, new messages require your attention."
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_has_error
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__journal_default_account_id
msgid "It acts as a default account for debit amount"
msgid ""
"Incoming payments entries triggered by invoices/refunds will be posted on "
"the Outstanding Receipts Account and displayed as blue lines in the bank "
"reconciliation widget. During the reconciliation process, concerned "
"transactions will be reconciled with entries on the Outstanding Receipts "
"Account instead of the receivable account."
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_is_follower
msgid "Is Follower"
msgstr ""
#. module: account_check_deposit
@@ -237,6 +300,7 @@ msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit____last_update
#: model:ir.model.fields,field_description:account_check_deposit.field_account_move_line____last_update
msgid "Last Modified on"
msgstr ""
@@ -261,15 +325,24 @@ msgid "List of checks:"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#, python-format
msgid "Missing 'Check Deposit Offsetting Account' on the company '%s'."
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_main_attachment_id
msgid "Main Attachment"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_has_error
msgid "Message Delivery error"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_ids
msgid "Messages"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#, python-format
msgid "Missing 'Default Debit Account' on bank journal '%s'"
msgid "Missing 'Outstanding Receipts Account' on the bank journal '%s'."
msgstr ""
#. module: account_check_deposit
@@ -277,15 +350,54 @@ msgstr ""
msgid "Name"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_date_deadline
msgid "Next Activity Deadline"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_summary
msgid "Next Activity Summary"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_type_id
msgid "Next Activity Type"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_needaction_counter
msgid "Number of Actions"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__check_count
msgid "Number of Checks"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_res_company__check_deposit_post_move
#: model:ir.model.fields,field_description:account_check_deposit.field_res_config_settings__check_deposit_post_move
msgid "Post Move for Check Deposits"
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_has_error_counter
msgid "Number of errors"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_needaction_counter
msgid "Number of messages which requires an action"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_has_error_counter
msgid "Number of messages with delivery error"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__message_unread_counter
msgid "Number of unread messages"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__journal_default_account_id
msgid "Outstanding Receipts Account"
msgstr ""
#. module: account_check_deposit
@@ -303,14 +415,32 @@ msgstr ""
msgid "Reference"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__activity_user_id
msgid "Responsible User"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_has_sms_error
msgid "SMS Delivery error"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__state
msgid "Status"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#: code:addons/account_check_deposit/models/account_deposit.py:0
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__activity_state
msgid ""
"Status based on activities\n"
"Overdue: Due date is already passed\n"
"Today: Activity date is today\n"
"Planned: Future activities."
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#, python-format
msgid ""
"The check with amount %s and reference '%s' is in currency %s but the "
@@ -318,37 +448,39 @@ msgid ""
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#, python-format
msgid ""
"The deposit '%s' is in valid state, so you must cancel it before deleting "
"it."
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_check_deposit.py:0
#, python-format
msgid ""
"There are no received checks in account '%s' in currency '%s' that are not "
"already in this check deposit."
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__total_amount
msgid "Total Amount"
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.account_check_deposit_view_form
msgid "Total Credit"
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__activity_exception_decoration
msgid "Type of the exception activity on record."
msgstr ""
#. module: account_check_deposit
#: model_terms:ir.ui.view,arch_db:account_check_deposit.account_check_deposit_view_form
msgid "Total Debit"
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_unread
msgid "Unread Messages"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields.selection,name:account_check_deposit.selection__res_company__check_deposit_offsetting_account__transfer_account
msgid "Transfer Account"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,field_description:account_check_deposit.field_res_company__check_deposit_transfer_account_id
#: model:ir.model.fields,field_description:account_check_deposit.field_res_config_settings__check_deposit_transfer_account_id
msgid "Transfer Account for Check Deposits"
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__message_unread_counter
msgid "Unread Messages Counter"
msgstr ""
#. module: account_check_deposit
@@ -357,9 +489,11 @@ msgid "Validate"
msgstr ""
#. module: account_check_deposit
#: code:addons/account_check_deposit/models/account_deposit.py:0
#, python-format
msgid ""
"You must configure the 'Check Deposit Offsetting Account' on the Accounting "
"Settings page"
#: model:ir.model.fields,field_description:account_check_deposit.field_account_check_deposit__website_message_ids
msgid "Website Messages"
msgstr ""
#. module: account_check_deposit
#: model:ir.model.fields,help:account_check_deposit.field_account_check_deposit__website_message_ids
msgid "Website communication history"
msgstr ""

View File

@@ -13,6 +13,7 @@ from odoo.exceptions import UserError, ValidationError
class AccountCheckDeposit(models.Model):
_name = "account.check.deposit"
_description = "Account Check Deposit"
_inherit = ["mail.thread", "mail.activity.mixin"]
_order = "deposit_date desc"
_check_company_auto = True
@@ -56,7 +57,7 @@ class AccountCheckDeposit(models.Model):
deposit.is_reconcile = reconcile
deposit.check_count = count
name = fields.Char(string="Name", size=64, readonly=True, default="/")
name = fields.Char(string="Name", size=64, readonly=True, default="/", copy=False)
check_payment_ids = fields.One2many(
comodel_name="account.move.line",
inverse_name="check_deposit_id",
@@ -68,6 +69,8 @@ class AccountCheckDeposit(models.Model):
required=True,
states={"done": [("readonly", "=", True)]},
default=fields.Date.context_today,
tracking=True,
copy=False,
)
journal_id = fields.Many2one(
comodel_name="account.journal",
@@ -77,6 +80,7 @@ class AccountCheckDeposit(models.Model):
required=True,
check_company=True,
states={"done": [("readonly", "=", True)]},
tracking=True,
)
journal_default_account_id = fields.Many2one(
comodel_name="account.account",
@@ -88,12 +92,14 @@ class AccountCheckDeposit(models.Model):
string="Currency",
required=True,
states={"done": [("readonly", "=", True)]},
tracking=True,
)
state = fields.Selection(
selection=[("draft", "Draft"), ("done", "Done")],
string="Status",
default="draft",
readonly=True,
tracking=True,
)
move_id = fields.Many2one(
comodel_name="account.move",
@@ -109,6 +115,7 @@ class AccountCheckDeposit(models.Model):
"('bank_account_id', '!=', False)]",
check_company=True,
states={"done": [("readonly", "=", True)]},
tracking=True,
)
line_ids = fields.One2many(
comodel_name="account.move.line",
@@ -121,22 +128,33 @@ class AccountCheckDeposit(models.Model):
required=True,
states={"done": [("readonly", "=", True)]},
default=lambda self: self.env.company,
tracking=True,
)
total_amount = fields.Monetary(
compute="_compute_check_deposit",
string="Total Amount",
store=True,
currency_field="currency_id",
tracking=True,
)
check_count = fields.Integer(
compute="_compute_check_deposit",
store=True,
string="Number of Checks",
tracking=True,
)
is_reconcile = fields.Boolean(
compute="_compute_check_deposit", store=True, string="Reconcile"
)
_sql_constraints = [
(
"name_company_unique",
"unique(company_id, name)",
"A check deposit with this reference already exists in this company.",
)
]
@api.model
def default_get(self, fields_list):
res = super().default_get(fields_list)
@@ -320,6 +338,7 @@ class AccountCheckDeposit(models.Model):
]
)
if all_pending_checks:
self.message_post(body=_("Get All Received Checks"))
all_pending_checks.write({"check_deposit_id": self.id})
else:
raise UserError(

View File

@@ -367,8 +367,8 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_check_deposit"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_check_deposit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to easily manage check deposits : you can select all
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/14.0/account_check_deposit"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_check_deposit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to easily manage check deposits: you can select all
the checks you received and create a global deposit for the selected checks.
This module supports multi-currency ; each deposit has a currency and all the
checks of the deposit must have the same currency (so, if you have checks in
@@ -395,41 +395,33 @@ journal:</p>
<li>Name: Checks Received</li>
<li>Type: Bank</li>
<li>Short Code: CHK (or any code you want)</li>
<li>Default Debit Account: select an account for checks received</li>
<li>Default Credit Account: idem</li>
<li>Outstanding Receipts Account: select an account for checks received</li>
</ul>
<p>Note that, on this <em>Checks Received</em> journal, the bank account and suspense account will not be used, so dont worry about these parameters.</p>
<p>This bank journal will be available as a payment method in Odoo. The account
you configured as <em>Default Debit Account</em> and <em>Defaut Credit Account</em> is the
you configured as <em>Outstanding Receipts Account</em> is the
account via which the amounts of checks will transit between the reception of a
check from a customer and the validation of the check deposit in Odoo.</p>
<p>On the Settings page of the Accounting, you should configure the
<em>Check Deposit Offsetting Account</em>:</p>
<ul class="simple">
<li>if you select <em>Bank Account</em>, the counter-part of the account move related to
the check deposit will be the default debit account of the bank account
selected on the check deposit.</li>
<li>if you select <em>Transfer Account</em>, you will have to select a specific account
that will be used as transfer account for check deposits.</li>
</ul>
<p>When you validate the check deposit in Odoo, it will generate a new journal entry that will move the amounts from the <em>Outstanding Receipts Account</em> of the checks received journal to the <em>Outstanding Receipts Account</em> of the bank journal related to the check deposit. It will also reconcile in the <em>Outstanding Receipts Account</em> of the checks received journal.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<p>When you receive a check that pays a customer invoice, you can go to that
invoice and click on the button <em>Register Payment</em> and select the
<em>Check Received</em> journal as <em>Payment Journal</em>.</p>
<em>Checks Received</em> journal as <em>Journal</em>.</p>
<p>When you want to deposit checks to the bank, go to the menu
<em>Invoicing &gt; Accounting &gt; Check Deposit</em>, create a new check deposit and set the
<em>Invoicing &gt; Accounting &gt; Miscellaneous &gt; Check Deposit</em>, create a new check deposit and set the
journal <em>Checks Received</em> and select the bank account on which you want to
credit the checks. Then click on <em>Add a line</em> to select the checks you want to
deposit at the bank. Eventually, validate the deposit and print the report
(you probably want to customize this report).</p>
credit the checks.</p>
<p>Then click on the button <em>Get All Received Checks</em> if you want to deposit all the waiting received checks, or select the checks one by one by clicking on <em>Add a line</em>.</p>
<p>Eventually, validate the deposit and print the report (you probably want to customize this report).</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_check_deposit%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_check_deposit%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@@ -468,7 +460,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_check_deposit">OCA/account-financial-tools</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/14.0/account_check_deposit">OCA/account-financial-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

View File

@@ -48,7 +48,10 @@
</div>
<group name="main">
<group name="left">
<field name="deposit_date" />
<field
name="deposit_date"
options="{'datepicker': {'warn_future': true}}"
/>
<field name="journal_id" widget="selection" />
<field
name="currency_id"
@@ -103,7 +106,12 @@
</tree>
</field>
</group>
</sheet>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="activity_ids" widget="mail_activity" />
<field name="message_ids" widget="mail_thread" />
</div>
</form>
</field>
</record>