Commit 333a0fc7 authored by Jérome Perrin's avatar Jérome Perrin

do not validate period when plan or confirm


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5068 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e1ba728
......@@ -75,6 +75,9 @@ error_message = \'\'\n
# Purchase Invoice Transaction or Sale Invoice Transaction.\n
transaction = state_change[\'object\']\n
skip_period_validation = state_change[\'kwargs\'].get(\'skip_period_validation\', 0)\n
transition = state_change[\'transition\']\n
if transition.id in (\'plan_action\', \'confirm_action\') :\n
skip_period_validation = 0\n
\n
if transaction.getStopDate() in (None, \'\') : \n
error_message = \'date is not defined\'\n
......@@ -117,46 +120,9 @@ if error_message != \'\':\n
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAABIAAAAPAAAAQwAA
AHN7AgAAZAEAawAAbAEAfQIAAWQCAH0DAHQDAHwAAGQDAIMCAH0FAHQGAHQDAHwAAGQEAIMCAGQF
AIMCAGQGAGQHAIMCAH0HAHQGAHwFAGQIAIMCAIMAAHQIAGQCAGYCAGoGAG8KAAFkCQB9AwBuAAEB
fAcADG/3AAFkBwB9CQB0CgB0BgB0BgB8BQBkCACDAgCDAABkCgCDAgCDAAB0BgB0BgB8BQBkCACD
AgCDAABkCwCDAgCDAAB0BgB0BgB8BQBkCACDAgCDAABkDACDAgCDAACDAwB9CwB4fgB0DAB0BgB0
DQBkDQCDAgBkDgBkDwBkEABkEQCDAAKDAQBEXVgAfQ4AdAYAfA4AZBIAgwIAgwAAfQ4AdAYAfA4A
ZBMAgwIAgwAAfAsABANqAQBvFgABdAYAfA4AZAgAgwIAgwAAagEAbgIAAgFvCgABZBQAfQkAcfkA
AXH5AFd8CQAMbwoAAWQVAH0DAHFrAQFuAQABdAYAfAUAZBYAgwIAZA4AZBcAZwEAgwABfQ8AdAYA
fAUAZBgAgwIAZA4AZBcAZBkAZwIAg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pcxMAAAB2YWxp
ZGF0ZVRyYW5zYWN0aW9uAQAAAHM+AAAADQIGAw8BIQIfAQoCCAEGAiQBGwEbASUABgMSATYBDgEI
AQ4DGwEeARICEwEKAR8BEwEGAR8BDgETAQ4CDQEoAQAAAHMTAAAAdmFsaWRhdGVUcmFuc2FjdGlv
bigBAAAAcxMAAAB2YWxpZGF0ZVRyYW5zYWN0aW9uKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRo
b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
......@@ -222,6 +188,7 @@ b24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<string>transaction</string>
<string>_getattr_</string>
<string>skip_period_validation</string>
<string>transition</string>
<string>None</string>
<string>valid_date</string>
<string>DateTime</string>
......
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