Commit 7ff1bdab authored by Aurel's avatar Aurel

forms and workflow fix for monetary survey

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a1d1e834
......@@ -123,7 +123,9 @@
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -160,7 +162,7 @@
<item>
<key> <string>input_style</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
......@@ -259,11 +261,24 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<none/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getTotalPrice(fast=0)</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -75,6 +75,10 @@ date = transaction.getStartDate()\n
vault = transaction.getSource()\n
destination = transaction.getDestination()\n
\n
if vault is None or destination is None:\n
msg = Message(domain="ui", message="You must define source and destination.")\n
raise ValidationFailed, (msg,)\n
\n
\n
# check we are in an opened accounting day\n
transaction.Baobab_checkCounterDateOpen(site=vault, date=date)\n
......@@ -170,6 +174,7 @@ elif resource <> 0 :\n
<string>date</string>
<string>vault</string>
<string>destination</string>
<string>None</string>
<string>msg</string>
<string>resource</string>
<string>amount</string>
......
492
\ No newline at end of file
493
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment