TA#83757 [14.0][ADD] delivery_custom_notification : custom delivery notifications to specific contacts#244
Merged
Merged
Conversation
…ons to specific contacts * Add delivery_contact_id field on res.partner * Add notification settings on delivery.carrier * Override _send_confirmation_email() to send custom notifications * Support for custom email templates per carrier * Multi-company support with check_company=True * Intelligent recipient selection (delivery contact or fallback to partner) * Compatible with delivery_2ship and other carrier integrations
* Add is_delivery_contact boolean field on res.partner * Filter delivery contact selection to only tagged contacts * Add Is Delivery Contact checkbox in partner form (visible only for contacts) * Auto-tag new delivery contacts created on-the-fly * Add search filter for delivery contacts * Update manifest version to 14.0.1.1.0 * Update documentation with new configuration steps
…ty for sent emails * Replace send_mail() with message_post_with_template() to ensure emails appear in picking chatter * Add detailed email template configuration section in README * Explain why recipient fields must be left empty in templates * Document email traceability benefit for operations teams * Add inline code comment explaining template configuration requirement
…tandards * Update copyright headers to Numigi standard format in all Python files * Update XML encoding from utf-8 to UTF-8 and remove copyright comments * Update __manifest__.py: add maintainer, update website URL, use double quotes * Convert README.md to README.rst following Numigi documentation format * Remove static/description/index.html (not used in Numigi modules) * Remove unnecessary manifest keys (application, auto_install, description)
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 6 minor |
| ErrorProne | 4 high |
| CodeStyle | 1 minor |
🟢 Metrics 8 complexity · 0 duplication
Metric Results Complexity 8 Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
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.
Summary
This module enables sending custom delivery notification emails to designated contacts when deliveries are validated, with fine-grained control at the carrier level.
Key Features
check_company=Truefor data consistencyConfiguration
Technical Details
Models Extended:
res.partner: Addsis_delivery_contactanddelivery_contact_idfieldsdelivery.carrier: Addssend_delivery_notificationanddelivery_notification_template_idfieldsstock.picking: Overrides_send_confirmation_email()methodBusiness Logic:
message_post_with_template()for Chatter integrationTesting
The module has been developed following Numigi coding standards: