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

[FIX] account: it was possible to change the reconcile flag in not permitted case #17437

Closed
wants to merge 2 commits into from

Conversation

fmdl
Copy link
Contributor

@fmdl fmdl commented Jun 6, 2017

Description of the issue/feature this PR addresses:

  • Create an account with reconcile flag (set True)
  • Add entries and reconcile them
  • Update the account with reconcile flag set at False and change type of account (like current).
    It is wrong because you have entries renconcllied in account where the reconciliation is not allowed. (And after save, Odoo make a long computation, it seems not the behavior because the author write # If user change the reconcile flag, all aml should be recomputed for that account and this is very costly.).

Version impacted : master,10,9

Current behavior before PR:
It was possible to change True to False the reconcile flag, even if there are some entries. Because the test if vals.get('reconcile'): is not correct.

Desired behavior after PR is merged:
It is not possible to set False if there are entries.
It is possible to set False if there are not entries.
It is possible to set True if there are entries or not (after reading of code, it seems not an issue to set False to True if there are some entries.)

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@fmdl
Copy link
Contributor Author

fmdl commented Aug 2, 2017

@qdp-odoo

@qdp-odoo
Copy link
Contributor

qdp-odoo commented Sep 4, 2017

As you noticed Florent, this PR is superseeded by #19204

So for the sake of clarity I'm closing this PR

Thanks

@qdp-odoo qdp-odoo closed this Sep 4, 2017
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

3 participants