Move.assing_try should succeed when no moves
When assigning a production with no inputs I get the following exception:
ProgrammingError: syntax error at or near ")"
LINE 1: ...stock_move" AS "a" WHERE ((("a"."to_location" IN ()) OR ("a"...
^
File "trytond/protocols/dispatcher.py", line 162, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "trytond/wizard/wizard.py", line 287, in execute
return wizard._execute(state_name)
File "trytond/wizard/wizard.py", line 318, in _execute
result = self._execute(transition())
File "trytond/modules/production/production.py", line 666, in transition_start
[Production(Transaction().context['active_id'])]):
File "trytond/model/modelview.py", line 621, in wrapper
return func(cls, records, *args, **kwargs)
File "trytond/modules/production/production.py", line 612, in assign_try
for m in p.inputs]):
File "trytond/modules/stock/move.py", line 819, in assign_try
cursor.execute(*query)
File "trytond/backend/postgresql/database.py", line 60, in execute
cursor.execute(self, sql, args)
This only happens on postgresql backend and since changeset8c04ea1b8b10