Tryton - Issues



Title Clear report path when copying reports
Priority bug Status testing
Superseder Nosy List reviewbot, udono
Type crash Components
Assigned To udono Keywords backport, review
Reviews 299191002
View: 299191002

Created on 2020-03-23.16:55:28 by udono, last changed by udono.

review299191002 updated at
msg56605 (view) Author: [hidden] (udono) (Tryton translator) Date: 2020-03-23.16:55:27
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_
  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
Date User Action Args
2020-03-23 20:27:15udonosettitle: On copy reports re-set report path -> Clear report path when copying reports
2020-03-23 18:41:31pokolisetkeyword: + backport
2020-03-23 17:53:46udonosetstatus: unread -> testing
2020-03-23 17:47:31udonosetstatus: chatting -> unread
title: On copy reports set default['report'] = None -> On copy reports re-set report path
2020-03-23 17:30:04reviewbotsetstatus: unread -> chatting
nosy: + reviewbot
messages: + msg56606
2020-03-23 17:26:36udonosetreviews: 299191002
keyword: + review
2020-03-23 16:55:28udonocreate

Showing 10 items. Show all history (warning: this could be VERY long)