Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yoji Takeuchi
erp5
Commits
5438efe8
Commit
5438efe8
authored
Nov 18, 2015
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_short_message: Set start date when send short message like is done with Mail Message
And remove trailing whitespaces
parent
8f660002
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_send.xml
...tem/portal_skins/erp5_short_message/ShortMessage_send.xml
+6
-3
No files found.
bt5/erp5_short_message/SkinTemplateItem/portal_skins/erp5_short_message/ShortMessage_send.xml
View file @
5438efe8
...
@@ -70,15 +70,18 @@ if not from_url:\n
...
@@ -70,15 +70,18 @@ if not from_url:\n
if context.getSourceValue():\n
if context.getSourceValue():\n
sender_phone = context.getSourceValue().getDefaultMobileTelephoneValue()\n
sender_phone = context.getSourceValue().getDefaultMobileTelephoneValue()\n
if not sender_phone:\n
if not sender_phone:\n
raise ValueError("The sender
should have a default mobile phone"
)\n
raise ValueError("The sender
(%s) should have a default mobile phone" % context.getSourceValue()
)\n
#We use title of sender\n
#We use title of sender\n
from_title = sender_phone.getTitle()
\n
from_title = sender_phone.getTitle()\n
from_url = sender_phone.asURL()\n
from_url = sender_phone.asURL()\n
\n
\n
if not body:\n
if not body:\n
body = context.getTextContent()\n
body = context.getTextContent()\n
\n
\n
context.portal_sms.send(text=body,recipient=to_url,sender=from_url,sender_title=from_title,message_type="text", \n
if not context.getStartDate():\n
context.setStartDate(DateTime())\n
\n
context.portal_sms.send(text=body,recipient=to_url,sender=from_url,sender_title=from_title,message_type="text",\n
test=download, document_relative_url=context.getRelativeUrl(), **kw)\n
test=download, document_relative_url=context.getRelativeUrl(), **kw)\n
</string>
</value>
</string>
</value>
</item>
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment