Tryton - Issues



Title can't validate an invoice in fiscal year N-1 in N if account_tax_cash
Priority bug Status chatting
Superseder Nosy List risto3
Type Components account_tax_cash
Assigned To Keywords

Created on 2019-02-05.15:31:40 by risto3, last changed by risto3.

msg46735 (view) Author: [hidden] (risto3) Date: 2019-02-05.16:00:34
same error with cancel
msg46734 (view) Author: [hidden] (risto3) Date: 2019-02-05.15:31:39
With nothing yet created for 2019, I try to validate an supplier invoice in 2018 after
activating account_tax_cash, I get the following:

Traceback (most recent call last):
  File "/opt/trytond/trytond/protocols/", line 176, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/opt/trytond/trytond/model/", line 665, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/opt/trytond/trytond/model/", line 36, in wrapper
    result = func(cls, filtered, *args, **kwargs)
  File "/opt/trytond/trytond/modules/account_invoice/", line 1353, in validate_invoice
  File "/opt/trytond/trytond/model/", line 33, in newfunc
    return self.func(owner, *args, **kwargs)
  File "/opt/trytond/trytond/model/", line 1539, in save
    (([r], save_values[r]) for r in to_write), ()))
  File "/opt/trytond/trytond/modules/account_tax_cash/", line 288, in write, date=date)
  File "/opt/trytond/trytond/modules/account/", line 201, in find
    cls.raise_user_error('no_period_date', lang.strftime(date))
  File "/opt/trytond/trytond/", line 74, in raise_user_error
    raise UserError(error)
trytond.exceptions.UserError: ('UserError', ('Pas de période de définie pour la date «\xa005.02.2019\xa0».', ''))
Date User Action Args
2019-02-05 16:00:34risto3setstatus: unread -> chatting
messages: + msg46735
2019-02-05 15:31:40risto3create

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