Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG] account_check_deposit #1088

Merged
merged 48 commits into from
Jun 5, 2021
Merged

Conversation

alexis-via
Copy link
Contributor

For the moment, still in beta. I still have to clarify a few things on:

  • the new datamodel of account.journal (the new M2O fields on account.account)
  • cancellation of move
    Tests have not been ported yet.

But I tested the module and it works well.

@Saran440
Copy link
Member

@alexis-via
Hi, this module is migrated on PR #1082
Could you review this PR?

@kittiu
Copy link
Member

kittiu commented Dec 24, 2020

@alexis-via can we close this as it is duplicated? Or anything you want to add to #1082 ?

@alexis-via
Copy link
Contributor Author

No, this PR should not be closed. It contains several improvements that are not present in your PR. We'd better merge the best PR.

@kittiu
Copy link
Member

kittiu commented Dec 24, 2020

@Saran440 you can help review this? I agree we go with the best one.

@kittiu
Copy link
Member

kittiu commented Jan 23, 2021

Test failing.

    from . import test_check_deposit
  File "/home/travis/build/OCA/account-financial-tools/setup/account_check_deposit/odoo/addons/account_check_deposit/tests/test_check_deposit.py", line 7, in <module>
    from odoo.addons.account.tests.account_test_classes import AccountingTestCase
ModuleNotFoundError: No module named 'odoo.addons.account.tests.account_test_classes'

bguillot and others added 24 commits April 21, 2021 13:39
* Clean code
* Add access rules for account_check_deposit
* Change print button name
* [FIX] fix datamodel structure, indeed check_payment_ids should be a m2o. In the view we still keep the widget
* [REF] remove useless state cancel, only draft/done is sufficent for now, forbid to delete a done deposit, fix move_line name need to be the equal to the line.ref for the reconciliation
* [IMP] improve reconciliation between the check and the check deposit
* [FIX] set correctly the date on the move line generated
* [FIX] fix reconciliation of check
* [IMP] check deposit improve view and add tab for move line generated
* [IMP] add total amount and flag to know if the deposit have been reconcile, the best will be to add a workflow
* [FIX] fix error when replaying commit
* [REF] remove dependency on sale_quick_payment as check can be registred in various way like native voucher
* [CLEAN] pep8 cleanup no code change
* [REF] clean remove useless code, default value are called during the create
* [FIX] fix wrong spelling
* [REF] V7 clean up
Works with a single account journal
Usability and many other enhancements
… for the payment, one for the deposit), hide unreconcile entry which a link to a deposit
Convert webkit report to qweb
* Move description from __openerp__.py to README.rst
* Move files in sub-directories
* FIX access rights issue when user was not accounting manager
* create move and move line at the same time
* add tests
* Add option to have the counter-part of the deposit move directly to the bank account
  Use account.config.settings page
* Remove data that create a bank journal because it blocks the loading of the chart of accounts when
  the module is installed at the same time as the chart of account (via dependencies)
…rnal if the offsetting account is the bank account
oca-travis and others added 5 commits April 21, 2021 13:39
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_check_deposit
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_check_deposit/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_check_deposit
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_check_deposit/
@alexis-via
Copy link
Contributor Author

FYI, I plan to do the following change : remove the fields "check_deposit_offsetting_account" and "check_deposit_transfer_account_id" on res.company. The transfer account will be the bank account of the check journal. Please refer to my recent post in OCA/bank-payment#740 to understand the reasons of this change.

@alexis-via
Copy link
Contributor Author

alexis-via commented Apr 22, 2021

I have a better idea: the transfer account will be the outstanding receipts account of the bank journal on which you do the check deposit. That way, if you have an outstanding receipts account different for each bank journal, the amounts for confirmed check deposits will be in an account which is specific to the bank on which you made the deposit. The bank account of the check journal will not be used (the suspense account of the check journal will not be used either).

Update documentation
Don't duplicate labels between name of account.move.line and ref of
account.move, now that name of account.move.line is not required any
more.
@alexis-via
Copy link
Contributor Author

I implemented what I described in my previous comment.

Add button "Get All Received Checks"
Add default value for journal_id and bank_journal_id when there is only 1 possible value
Add hide/show options on lines
Improve multi-company handling
@alexis-via
Copy link
Contributor Author

If nobody is against it, I think I'll add a chatter on account.check.deposit.

Add chatter message when you click on the button to get all checks
Add unicity SQL constraint
@alexis-via
Copy link
Contributor Author

I don't plan to make other changes. Ready to merge.

@newtratip
Copy link
Member

@Saran440, @kittiu Could you review/approve this PR ? I will change PR Url in our project from #1082 to #1088 if it's OK.

Copy link
Member

@kittiu kittiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me.

@kittiu
Copy link
Member

kittiu commented Jun 5, 2021

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-1088-by-kittiu-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ce4e04d into OCA:14.0 Jun 5, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 413f65c. Thanks a lot for contributing to OCA. ❤️

@alexis-via
Copy link
Contributor Author

Thanks @kittiu for the review and merge !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet