Tryton - Issues

 

Message40402

Author resteve
Recipients
Date 2018-04-25.16:56:57
Content
1. Create an account asset:

- Purchase date: 11/04/2018
- First date: 11/04/2018
- End date: 10/02/2019

- Date Lines:

30/04/18
31/05/18
30/06/18
31/07/18
31/08/18
30/09/18
31/10/18
30/11/18
31/12/18
31/01/19
10/02/19

2- Execute Deprecation Table report.

- Start date: 20/02/2018
- End date: 20/04/2018

3- Traceback:

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 170, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 206, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 185, in dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/report/report.py", line 143, in execute
    cls.render(action_report, report_context))
  File "/trytond/report/report.py", line 227, in render
    data = rel_report(**report_context).render()
  File "/relatorio/templates/base.py", line 34, in render
    return self.serializer(self.events)
  File "/relatorio/templates/opendocument.py", line 894, in __call__
    for kind, data, pos in stream:
  File "/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "/genshi/filters/i18n.py", line 690, in __call__
    for kind, data, pos in stream:
  File "/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/genshi/template/markup.py", line 326, in _match
    for event in stream:
  File "/genshi/template/base.py", line 558, in _flatten
    for kind, data, pos in stream:
  File "/genshi/template/directives.py", line 169, in _generate
    attrs = _eval_expr(self.expr, ctxt, vars)
  File "/genshi/template/base.py", line 289, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/genshi/template/eval.py", line 177, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "<string>", line 1, in <Expression u"{'{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value': __relatorio_store_cache(140123515685632, format_currency(depreciation.value_increase, user.language, currency=company.currency)), '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value-type': __relatorio_guess_type(__relatorio_get_cache(140123515685632))}">
  File "/genshi/template/eval.py", line 317, in lookup_attr
    val = getattr(obj, key)
  File "/cached_property.py", line 32, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/trytond/modules/account_asset/asset.py", line 915, in value_increase
    value += self.asset_lines[0].acquired_value
IndexError: tuple index out of range

4- Debug:

There are not lines in this rang date:

False
2018-02-20 2018-04-30 2018-04-20
False
2018-02-20 2018-05-31 2018-04-20
False
2018-02-20 2018-06-30 2018-04-20
False
2018-02-20 2018-07-31 2018-04-20
False
2018-02-20 2018-08-31 2018-04-20
False
2018-02-20 2018-09-30 2018-04-20
False
2018-02-20 2018-10-31 2018-04-20
False
2018-02-20 2018-11-30 2018-04-20
False
2018-02-20 2018-12-31 2018-04-20
False
2018-02-20 2019-01-31 2018-04-20
False
2018-02-20 2019-02-10 2018-04-20
History
Date User Action Args
2018-04-25 16:56:58restevesetmessageid: <1524668218.05.0.363829162554.issue7395@tryton.org>
2018-04-25 16:56:57restevelinkissue7395 messages
2018-04-25 16:56:57restevecreate

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