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
Carlos Ramos Carreño
erp5
Commits
1cecdc02
Commit
1cecdc02
authored
Mar 24, 2014
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix way to get stopdate from gadget form
parent
eb137c31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
bt5/erp5_crm_knowledge_pad/SkinTemplateItem/portal_skins/erp5_crm_knowledge_pad/ERP5Site_newSaleOpportunity.xml
...ns/erp5_crm_knowledge_pad/ERP5Site_newSaleOpportunity.xml
+6
-2
bt5/erp5_crm_knowledge_pad/bt/revision
bt5/erp5_crm_knowledge_pad/bt/revision
+1
-1
No files found.
bt5/erp5_crm_knowledge_pad/SkinTemplateItem/portal_skins/erp5_crm_knowledge_pad/ERP5Site_newSaleOpportunity.xml
View file @
1cecdc02
...
@@ -50,7 +50,8 @@
...
@@ -50,7 +50,8 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
from DateTime import DateTime\n
portal = context.getPortalObject()\n
form = context.REQUEST.form\n
form = context.REQUEST.form\n
\n
\n
# XXX this form has to be validated !!!!!\n
# XXX this form has to be validated !!!!!\n
...
@@ -65,7 +66,10 @@ if clientname:\n
...
@@ -65,7 +66,10 @@ if clientname:\n
description = context.REQUEST.get(\'field_your_description\')\n
description = context.REQUEST.get(\'field_your_description\')\n
quantity = context.REQUEST.get(\'field_your_quantity\')\n
quantity = context.REQUEST.get(\'field_your_quantity\')\n
price = context.REQUEST.get(\'field_your_price\')\n
price = context.REQUEST.get(\'field_your_price\')\n
stopdate = context.REQUEST.get(\'field_your_stop_date\')\n
stopdate_day = context.REQUEST.get(\'subfield_field_your_stop_date_day\')\n
stopdate_month = context.REQUEST.get(\'subfield_field_your_stop_date_month\')\n
stopdate_year = context.REQUEST.get(\'subfield_field_your_stop_date_year\')\n
stopdate = DateTime("%s/%s/%s" %(stopdate_year, stopdate_month, stopdate_day))\n
\n
\n
sale_opportunity = portal.sale_opportunity_module.newContent(portal_type="Sale Opportunity")\n
sale_opportunity = portal.sale_opportunity_module.newContent(portal_type="Sale Opportunity")\n
sale_opportunity.setTitle(saletitle)\n
sale_opportunity.setTitle(saletitle)\n
...
...
bt5/erp5_crm_knowledge_pad/bt/revision
View file @
1cecdc02
5
6
\ No newline at end of file
\ No newline at end of file
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