Clear report path when copying reports
When copying a report which is introduced by a module, the module should be re setted. Otherwise it can create at least an error in the translation update, when the original report name changes, like e.g.
ERROR:tryton.common.common:Traceback (most recent call last):
File "trytond/wsgipy", line 73, in dispatch_request
return endpoint(request, **requestview_args)
File "trytond/protocols/dispatcherpy", line 46, in rpc
request, database_name, *requestrpc_params)
File "wrapt/wrapperspy", line 564, in __call__
args, kwargs)
File "trytond/wsgipy", line 44, in auth_required
return wrapped(*args, **kwargs)
File "trytond/protocols/wrapperspy", line 122, in wrapper
return func(request, pool, *args, **kwargs)
File "trytond/protocols/dispatcherpy", line 176, in _dispatch
result = rpcresult(meth(*c_args, **c_kwargs))
File "trytond/wizard/wizardpy", line 288, in execute
return wizard_execute(state_name)
File "trytond/wizard/wizardpy", line 319, in _execute
result = self_execute(transition())
File "trytond/ir/translationpy", line 1187, in transition_set_
selfset_report()
File "trytond/ir/translationpy", line 1024, in set_report
mode='rb') as fp:
File "trytond/tools/miscpy", line 74, in file_open
raise IOError('File not found : %s ' % name)
OSError: File not found : trytond/modules/company/letterodt
File not found : trytond/modules/company/letter.odt