Skip to content

[19.0][FIX] mail_template_substitute: Fix tests (use AccountTestInvoicingCommon) - #376

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

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

Conversation

@victoralmau

Copy link
Copy Markdown
Member

FWP from 18.0: #375

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.
@OCA-git-bot OCA-git-bot added series:19.0 mod:mail_template_substitute Module mail_template_substitute labels Dec 2, 2026

@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.

Same as the previous PR

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-376-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 19.0-ocabot-merge-pr-376-by-pedrobaeza-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.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot
OCA-git-bot merged commit 1106419 into OCA:19.0 Dec 2, 2026
10 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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