Repository navigation
[18.0][FIX] mail_template_substitute: Fix tests (use AccountTestInvoicingCommon) - #375
Merged
OCA-git-bot merged 1 commit intoDec 2, 2026
Conversation
…mmon)
ERROR devel odoo.addons.mail_template_substitute.tests.test_mail_template_substitute: ERROR: TestMailTemplateSubstitute.test_compute_mail_template_id
Traceback (most recent call last):
File "/opt/odoo/auto/addons/mail_template_substitute/tests/test_mail_template_substitute.py", line 186, in test_compute_mail_template_id
move.action_post()
File "/opt/odoo/auto/addons/account/models/account_move.py", line 5600, in action_post
self._post(soft=False)
File "/opt/odoo/auto/addons/account/models/account_move.py", line 5240, in _post
raise UserError(msg)
odoo.exceptions.UserError: You need to add a line before posting.
victoralmau
marked this pull request as draft
December 2, 2026 13:17
victoralmau
marked this pull request as ready for review
December 2, 2026 13:50
pedrobaeza
approved these changes
Dec 2, 2026
pedrobaeza
left a comment
Member
There was a problem hiding this comment.
Fast-tracking, as this solves integration tests problems, as it's equivalent, reduce code to maintain, and the overhead is negilible.
/ocabot merge patch
Contributor
|
Hey, thanks for contributing! Proceeding to merge this for you. |
Contributor
|
Congratulations, your PR was merged at 5149009. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix tests (use
AccountTestInvoicingCommon)Please @pedrobaeza can you review it?
@Tecnativa