Issue 9174

Title
Clear report path when copying reports
Priority
bug
Status
resolved
Nosy list
reviewbot, roundup-bot, udono
Assigned to
udono
Keywords
review

Created on 2020-03-23.16:55:28 by udono, last changed 7 months ago by roundup-bot.

Messages

New changeset d5beb6b6a442 by Udo Spallek in branch '5.4':
Clear report path when copying reports
https://hg.tryton.org/trytond/rev/d5beb6b6a442

New changeset eab316d655bd by Udo Spallek in branch '5.2':
Clear report path when copying reports
https://hg.tryton.org/trytond/rev/eab316d655bd

New changeset d800ffb2493a by Udo Spallek in branch '5.0':
Clear report path when copying reports
https://hg.tryton.org/trytond/rev/d800ffb2493a
New changeset 2577eb2704db by C├ędric Krier in branch 'default':
Clear report path when copying reports
https://hg.tryton.org/tryton-env/rev/2577eb2704db
New changeset b1fb6c624ae9 by Udo Spallek in branch 'default':
Clear report path when copying reports
https://hg.tryton.org/trytond/rev/b1fb6c624ae9
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_
    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
History
Date User Action Args
2020-04-25 12:56:23roundup-botsetmessages: + msg57472
keyword: - backport
2020-04-19 10:00:13roundup-botsetmessages: + msg57285
2020-04-19 10:00:06roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg57284
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)