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 @@ ...@@ -123,7 +123,9 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -160,7 +162,7 @@ ...@@ -160,7 +162,7 @@
<item> <item>
<key> <string>input_style</string> </key> <key> <string>input_style</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -259,11 +261,24 @@ ...@@ -259,11 +261,24 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<string>Products.Formulator.TALESField</string> <tuple/>
<string>TALESMethod</string>
</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> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -75,6 +75,10 @@ date = transaction.getStartDate()\n ...@@ -75,6 +75,10 @@ date = transaction.getStartDate()\n
vault = transaction.getSource()\n vault = transaction.getSource()\n
destination = transaction.getDestination()\n destination = transaction.getDestination()\n
\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 \n
# check we are in an opened accounting day\n # check we are in an opened accounting day\n
transaction.Baobab_checkCounterDateOpen(site=vault, date=date)\n transaction.Baobab_checkCounterDateOpen(site=vault, date=date)\n
...@@ -170,6 +174,7 @@ elif resource <> 0 :\n ...@@ -170,6 +174,7 @@ elif resource <> 0 :\n
<string>date</string> <string>date</string>
<string>vault</string> <string>vault</string>
<string>destination</string> <string>destination</string>
<string>None</string>
<string>msg</string> <string>msg</string>
<string>resource</string> <string>resource</string>
<string>amount</string> <string>amount</string>
......
492 493
\ No newline at end of file \ 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