[19.0][ADD] subscription_oca_sms#1455
Open
alvaro-domatix wants to merge 1 commit into
Open
Conversation
27c92ea to
1d253b2
Compare
New bridge module between `subscription_oca` and the community `sms` addon. Ships two ready-to-use SMS templates (payment reminder, payment failure) and two corresponding actions on the subscription form so a salesman can fire an SMS notification to the customer in one click. * Two `sms.template` records loaded as data, both targeting `sale.subscription` and rendered with the partner's name and the subscription's next invoice date. * `_send_sms_template(xmlid)` resolves the template, refuses to send if the partner has no phone number, then drives an `sms.composer` in comment mode via its public `action_send_sms()`. * Form view: two header buttons reusing `_send_sms_template` under the hood. Lives in its own addon directory because `sms` is LGPL-3 and not acceptable in the core module dependencies (§0.3 of the project guidelines).
1d253b2 to
5b0ed1c
Compare
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.
New bridge module between
subscription_ocaand thesmsaddon.It ships two SMS templates (payment reminder and payment failure) and two buttons on the subscription form so a salesman can send them to the customer in one click. Sending goes through the standard
sms.composer, and the buttons only show when the partner has a phone number that can be formatted.Shipped as a separate addon to keep the
smsdependency out of the core module.