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] not possible reconcile after odoo/odoo@80c2818 #375

Closed
Mat-moran opened this issue Apr 15, 2021 · 6 comments
Closed

[14.0] not possible reconcile after odoo/odoo@80c2818 #375

Mat-moran opened this issue Apr 15, 2021 · 6 comments
Milestone

Comments

@Mat-moran
Copy link

Hi,

I do not know exactly if this issue should be post here or in odoo repository.

The thing is that after this commit was posted: odoo/odoo@80c2818#diff-1e3bd6be3bfb83a37ec9fb800ce8b1c95afe0be90ff792874ae7299c320a2f6e

I am not able to reconcile any journal item.
The steps to reproduce the error are the next ones:

  1. Create an invoice (to reconcile with)
  2. Create an item in a bank or cash journal
  3. Publish the entry
  4. Try to reconcile the invoice in the step 1 with the journal entry.
  5. You get the error "The entry ... is already posted"

It seem that is due to the next line:
https://github.com/odoo/odoo/blob/1bf2e8805503d9bbebec58df9933abab3db70bd2/addons/account/models/account_move.py#L2436

if move.state == "posted":
raise UserError(_('The entry %s (id %s) is already posted.') % (move.name, move.id))

What so you think? Any ideas of how to solve this?

Please let me know if I should put this issue in the odoo or is ok here.

@Mat-moran Mat-moran changed the title [14.0] not possible reconcile after [14.0] not possible reconcile after odoo/odoo@80c2818 Apr 16, 2021
@bosd
Copy link
Contributor

bosd commented Apr 17, 2021

Experiencing the same problem. Thanks for digging into the commits for possible causes.
The items cannot be reconciled and the " The entry .. is already posted" medsage is shown. But the bank statement for reconcilination has the status "processing"

This one might be interesting for @ozono who did all the hard work on account_reconciliation_widget in #359

(Besides the point, I noticed that the progressbar is no longer there in V14.)

@bosd
Copy link
Contributor

bosd commented Apr 17, 2021

Just checked, it also happens on the runbot

@ozono
Copy link

ozono commented Apr 18, 2021

I take note of that. I'll take a look ASAP.

@ozono
Copy link

ozono commented Apr 19, 2021

Fixed in #377

@pedrobaeza pedrobaeza added this to the 14.0 milestone Apr 19, 2021
@bosd
Copy link
Contributor

bosd commented Apr 19, 2021

Thanks for the very prompt action. However I am unable to update the module:
The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.

Model: Unknown (Unknown), Constraint: account_move_line_account_tax_rel_account_move_line_id_fkey

Any pointers how to solve?

@bosd
Copy link
Contributor

bosd commented Apr 19, 2021

Continued test on a different db.
The Validate button now triggers another error:

Error occured on statement lines imported with the module account_statement_import_camt.
For testing purposes I created a manual statement on the same account. That one was able to reconcile.

Continuation in seperate issue. #378

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

No branches or pull requests

4 participants