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

[16.0][FIX] l10n_es_aeat_sii_oca: Avoid invoice copy with type change in tests #3230

Merged

Conversation

pedrobaeza
Copy link
Member

There's a new integrity check for avoiding inconsistent states. We were using a trick on tests for quickly copying a customer invoice, and converting the copy to vendor bill, but data got inconsistent doing it.

For what we were testing, that was not a problem, but with the new check, the operation is aborted.

Thus, we create the vendor bill from scratch, refactoring a method for doing it easily.

We also take the occasion to improve a bit the number of invoice copies done.

@Tecnativa

There's a new integrity check for avoiding inconsistent states. We were
using a trick on tests for quickly copying a customer invoice,
and converting the copy to vendor bill, but data got inconsistent doing
it.

For what we were testing, that was not a problem, but with the new
check, the operation is aborted.

Thus, we create the vendor bill from scratch, refactoring a method for
doing it easily.

We also take the occasion to improve a bit the number of invoice copies
done.
@pedrobaeza pedrobaeza added this to the 16.0 milestone Sep 19, 2023
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-3230-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ea6e66a into OCA:16.0 Sep 19, 2023
@OCA-git-bot
Copy link
Contributor

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

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.

2 participants