Skip to content

[18.0][FIX] mail_template_substitute: Fix tests (use AccountTestInvoicingCommon) - #375

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-mail_template_substitute-tests
Dec 2, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-mail_template_substitute-tests

Conversation

@victoralmau

@victoralmau victoralmau commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Fix tests (use AccountTestInvoicingCommon)

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.

Please @pedrobaeza can you review it?

@Tecnativa

…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
victoralmau marked this pull request as draft December 2, 2026 13:17
@OCA-git-bot OCA-git-bot added series:18.0 mod:mail_template_substitute Module mail_template_substitute labels Dec 2, 2026
@victoralmau
victoralmau marked this pull request as ready for review December 2, 2026 13:50

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fast-tracking, as this solves integration tests problems, as it's equivalent, reduce code to maintain, and the overhead is negilible.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-375-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 82a7b15 into OCA:18.0 Dec 2, 2026
10 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

3 participants