-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
[13.0][IMP] account_payment_order - move date should be bank line date when offsetting_account is bank_account #805
[13.0][IMP] account_payment_order - move date should be bank line date when offsetting_account is bank_account #805
Conversation
…e when offsetting_account is bank_account
4f12eeb
to
e5b1b1a
Compare
Please specify steps to reproduce the problem. |
Steps to test :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional testing OK
I think the problem is that you are not putting on "Move Option", "One move per payment date", and that's the problem. This PR is not correct, assigning randomly the date of the first line. |
I tested also with "One move per payment date" and the issue is the same. The accounting entry takes the today's date instead of payment date. Tests done on runbot OCA V13. If you choose "One move per payment line", there is one accounting entry per payment line. So, one payment date. |
@carlosdauden didn't you add such option of propagating the date? |
I have commented this problem sometime, but since our clients did not open any issue (most of our clients use offsetting_account == "transfer_account" or they have a fix date of payment) I have not found the time to do it. |
Thanks for the confirmation and the contribution: /ocabot merge patch Can you fw-port it to v14? |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 0ed4b8e. Thanks a lot for contributing to OCA. ❤️ |
Between Odoo v10.0 and Odoo v13.0, date fields on account.move and account.move.line became readonly. In both versions, date field on account.move.line is a related of the account.move one. This means that when creating our move in v10.0, date from account.move would take value of account.move.line. This is not true anymore with the readonly attributes. This is a way to return to that behavior.