Skip to content

[19.0][MIG] mail_attach_existing_attachment_account: Migration to 19.0 #211

Merged
OCA-git-bot merged 16 commits into
OCA:19.0from
moduon:19.0-mig-mail_attach_existing_attachment_account
Jul 2, 2026
Merged

[19.0][MIG] mail_attach_existing_attachment_account: Migration to 19.0 #211
OCA-git-bot merged 16 commits into
OCA:19.0from
moduon:19.0-mig-mail_attach_existing_attachment_account

Conversation

@chienandalu

@chienandalu chienandalu commented Jun 17, 2026

Copy link
Copy Markdown
Member

please review @fcvalgar

superseds #174

cc @moduon

tbaden and others added 15 commits June 17, 2026 16:18
[UPD] README.rst

[ADD] icon.png

[UPD] Update mail_attach_existing_attachment_account.pot

[UPD] README.rst
TT28899

[UPD] Update mail_attach_existing_attachment_account.pot

[UPD] README.rst
…ti-company

Doing a bulk search on accounts without company filter can lead to
selecting an account of other company, and thus, making the test to
fail.

We restrict the account search to the current company.
We show the field with the same technique as in the base module, which
improves the display, showing the label.
Added test cases

Revert changes made for tests

Updated tests

Updated tests

Updated tests
@OCA-git-bot OCA-git-bot added series:19.0 mod:mail_attach_existing_attachment_account Module mail_attach_existing_attachment_account labels Jun 17, 2026
@chienandalu chienandalu force-pushed the 19.0-mig-mail_attach_existing_attachment_account branch from 6f66e0b to 87b1ac6 Compare June 18, 2026 13:48

@fcvalgar fcvalgar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work, thank you for the migration @chienandalu .

I reviewed the module in 19.0 and tested the attachment selection flow from the invoice sending wizard. The following tests were performed:

Test 1: OK - Automatic installation. The module was correctly installed when its dependencies were present.
Test 2: OK - Existing attachment on an invoice. A PDF attached to a customer invoice was available for selection in the invoice sending wizard.
Test 3: OK - Sending an invoice with an existing attachment selected. The invoice email was sent correctly and included the selected existing attachment.
Test 4: OK - Invoice without existing attachments. The sending wizard opened correctly and the standard invoice sending flow was not affected.
Test 5: OK - Multiple attachments on the same invoice. Several supported attachments could be selected and included in the invoice email.
Test 6: OK - Attachment type handling. Supported attachment types were available for selection, while unsupported or non-eligible attachments were not incorrectly included.
Test 7: OK - Standard sending without selecting existing attachments. The invoice was sent correctly without adding extra attachments when none were selected.

Everything worked as expected, so I approve this PR.

Image

@chienandalu

Copy link
Copy Markdown
Member Author

please review @yajo

Comment thread mail_attach_existing_attachment_account/__manifest__.py
@chienandalu chienandalu force-pushed the 19.0-mig-mail_attach_existing_attachment_account branch from 87b1ac6 to a5233de Compare July 2, 2026 10:19

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

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-211-by-yajo-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bb846b2 into OCA:19.0 Jul 2, 2026
6 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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