Skip to content

Conversation

@matiasperalta1
Copy link

No description provided.

Pablo Paez and others added 21 commits November 6, 2025 10:33
Currently translated at 100.0% (6 of 6 strings)

Translation: social-17.0/social-17.0-mail_partner_forwarding
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_partner_forwarding/it/
Currently translated at 100.0% (6 of 6 strings)

Translation: social-17.0/social-17.0-mail_partner_forwarding
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_partner_forwarding/es/
Currently translated at 66.6% (4 of 6 strings)

Translation: mail-18.0/mail-18.0-mail_partner_forwarding
Translate-URL: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_partner_forwarding/de/
@matiasperalta1 matiasperalta1 force-pushed the 19.0-mig-mail_partner_forwarding branch from f3fecb6 to 8a056fc Compare November 6, 2025 14:12
@matiasperalta1 matiasperalta1 mentioned this pull request Nov 6, 2025
32 tasks
@matiasperalta1 matiasperalta1 force-pushed the 19.0-mig-mail_partner_forwarding branch 2 times, most recently from 67815e3 to d4050bf Compare November 6, 2025 14:19
Copy link
Contributor

@lef-adhoc lef-adhoc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@lav-adhoc lav-adhoc left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@matiasperalta1
Copy link
Author

@pedrobaeza Hello! Could you merge it?

@pedrobaeza
Copy link
Member

/ocabot migration mail_partner_forwarding

A PSC / maintainer should review it

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Nov 28, 2025
Copilot AI review requested due to automatic review settings January 22, 2026 14:52
@matiasperalta1 matiasperalta1 force-pushed the 19.0-mig-mail_partner_forwarding branch from d4050bf to 0488524 Compare January 22, 2026 14:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the mail_partner_forwarding module from a previous version to Odoo 19.0. The module enables partner mail forwarding functionality, allowing partners to designate a "forwarding partner" who will receive notifications intended for them.

Changes:

  • Migration of module manifest to version 19.0.1.0.0
  • Addition of models for partner and user mail forwarding with related field definitions
  • Implementation of notification logic to forward messages to designated partners
  • Inclusion of test coverage for the forwarding functionality

Reviewed changes

Copilot reviewed 23 out of 24 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
__manifest__.py Updated module version to 19.0.1.0.0 with proper metadata
models/res_partner.py Added forwarding_partner_id field to partner model
models/res_user.py Extended user model with forwarding_partner_id related field and self-access properties
models/mail_thread.py Implemented notification recipient logic to include forwarding partners
views/res_user_views.xml Added UI fields for forwarding partner in user forms
views/res_partner_views.xml Added UI field for forwarding partner in partner form
tests/test_mail_forwarding.py Added test case for message forwarding functionality
tests/models/fake_order.py Created test model for testing mail functionality
Documentation files Added README, usage instructions, and translation files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- Install it.
- Set a Forwarding partner in your partner.
- Your Forwarding partner also will be notify of your notifications
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

Grammatical error in this sentence. The verb "notify" should be in the past participle form "notified" to match the passive voice construction with "will be".

Suggested change
- Your Forwarding partner also will be notify of your notifications
- Your Forwarding partner also will be notified of your notifications

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +12
help="Messages will be forwarded only for partners that are followers but no"
" partners being notify because they belong to channel that is following"
" the thread",
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

The help text contains grammatical errors. The phrase "but no partners being notify" should be "but not partners being notified". The entire sentence is also unclear and could be improved for better understanding.

Suggested change
help="Messages will be forwarded only for partners that are followers but no"
" partners being notify because they belong to channel that is following"
" the thread",
help="Messages are forwarded only for partners who are direct followers, not"
" for partners who are notified because they belong to a channel following"
" the thread.",

Copilot uses AI. Check for mistakes.
data.update(
{
"id": partner.forwarding_partner_id.id,
"share": partner.partner_share,
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

The 'share' field is being set using 'partner.partner_share' (the original partner), but it should be using 'partner.forwarding_partner_id.partner_share' (the forwarding partner's share status). This could cause incorrect permission handling when the forwarding partner has a different share status than the original partner.

Suggested change
"share": partner.partner_share,
"share": partner.forwarding_partner_id.partner_share,

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

The pyproject.toml declares whool as the build backend without pinning it to an immutable version, so every build will execute whatever code is served by the latest whool release from the registry, which is a classic software supply-chain risk. If an attacker compromises the whool package or its distribution channel, they could run arbitrary code during your build and tamper with produced artifacts. Consider pinning whool to a specific version or other immutable identifier, and updating it explicitly after review.

Copilot uses AI. Check for mistakes.
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.

9 participants