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: allow import with reconcile:False #29458

Closed

Conversation

william-andre
Copy link
Contributor

#29326

Description of the issue/feature this PR addresses:
If an existing account is imported with reconcile=False and the field is already False, then the method _toggle_reconcile_to_false is called with an empty recordset.

Current behavior before PR:

Desired behavior after PR is merged:

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

@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Dec 12, 2018
@C3POdoo C3POdoo added the RD research & development, internal work label Dec 12, 2018
@qdp-odoo
Copy link
Contributor

patch is good but commit message could be improved: allow importing accounts with reconcile=True is only one of the use case that is solved.

I'd rather see something like:

[FIX] account: fix _toggle_reconcile_to_false() on empty recordset

When the method _toggle_reconcile_to_false was called on an empty recordset (e.g existing account is imported with reconcile=False and the field was already False), an SQL error was raised.

Fixes #29326 

When the method _toggle_reconcile_to_false was called on an empty recordset (e.g existing account is imported with reconcile=False and the field was already False), an SQL error was raised.

Fixes odoo#29326
@william-andre william-andre force-pushed the 12.0-import-csv-reconcile-fix-wan branch from 1f361ef to a190152 Compare December 12, 2018 13:31
@robodoo robodoo added CI 🤖 Robodoo has seen passing statuses and removed CI 🤖 Robodoo has seen passing statuses labels Dec 12, 2018
@qdp-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Dec 12, 2018
When the method _toggle_reconcile_to_false was called on an empty recordset (e.g existing account is imported with reconcile=False and the field was already False), an SQL error was raised.

Fixes #29326

closes #29458
@robodoo
Copy link
Contributor

robodoo commented Dec 12, 2018

Merged, thanks!

@robodoo robodoo closed this Dec 12, 2018
@fw-bot fw-bot deleted the 12.0-import-csv-reconcile-fix-wan branch October 20, 2019 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants