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

[IMP][15.0] datev_export_xml: Validation and small issues #156

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

fkantelberg
Copy link
Member

Forward port of #155

…n invoices. Fix some edge cases like fully discounted lines
@fkantelberg
Copy link
Member Author

@tv-openbig This is the forward port of #155

@pedrobaeza pedrobaeza added this to the 15.0 milestone Apr 8, 2024
schema = etree.XMLSchema(etree.parse(schema))
schema.assertValid(root)
except (etree.DocumentInvalid, etree.XMLSyntaxError) as e:
_logger.warning(etree.tostring(root))

if invoice:
invoice.datev_validation = str(e)
Copy link
Member

@pedrobaeza pedrobaeza Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This data is not going to be written as the latter raise rollbacks the transaction.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct for the normal export but not for the validation feature (action_validate)

@tv-openbig
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-156-by-tv-openbig-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Apr 8, 2024
Signed-off-by tv-openbig
@OCA-git-bot
Copy link
Contributor

@tv-openbig your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-156-by-tv-openbig-bump-patch.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@fkantelberg
Copy link
Member Author

FYI our customer found an issue with it. When you have multiple taxes on an invoice it crashes in the qweb and no usable exception is given. Multiple taxes are checked in _check_invoices and I added it to each single invoice check.

@tv-openbig
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-156-by-tv-openbig-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2a977da into OCA:15.0 Apr 10, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

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

@tv-openbig
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 1849feb. 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.

4 participants