Cast number_next to int on renew fiscalyear scenario

number_next is stored as long on Postgresql so it must be casted to compare

issue6283
review37721002
This commit is contained in:
Sergi Almacellas Abellana
2017-09-28 13:33:49 +02:00
parent f70ae462de
commit c4dcad1a8e
+2 -2
View File
@@ -49,7 +49,7 @@ Renew fiscalyear using the wizard::
>>> new_fiscalyear, = renew_fiscalyear.actions[0]
>>> len(new_fiscalyear.periods)
12
>>> new_fiscalyear.post_move_sequence.number_next
>>> int(new_fiscalyear.post_move_sequence.number_next)
10
Renew fiscalyear resetting sequences::
@@ -58,5 +58,5 @@ Renew fiscalyear resetting sequences::
>>> renew_fiscalyear.form.reset_sequences = True
>>> renew_fiscalyear.execute('create_')
>>> new_fiscalyear, = renew_fiscalyear.actions[0]
>>> new_fiscalyear.post_move_sequence.number_next
>>> int(new_fiscalyear.post_move_sequence.number_next)
1