Tryton - Issues

 

Issue9037

Title scenario_commission fails
Priority bug Status resolved
Superseder Nosy List pokoli, reviewbot, roundup-bot
Type crash Components commission
Assigned To pokoli Keywords review
Reviews 286671003
View: 286671003

Created on 2020-02-04.15:49:38 by pokoli, last changed by roundup-bot.

Messages
New changeset 6ea3538b7dc3 by Sergi Almacellas Abellana in branch 'default':
Add missing values arguments to invoice credit
https://hg.tryton.org/tryton-env/rev/6ea3538b7dc3
New changeset c9d6060ab329 by Sergi Almacellas Abellana in branch 'default':
Add missing values arguments to invoice credit
https://hg.tryton.org/modules/commission/rev/c9d6060ab329
review286671003 updated at https://codereview.tryton.org/286671003/#ps293111002
review286671003 updated at https://codereview.tryton.org/286671003/#ps274911002
review286671003 updated at https://codereview.tryton.org/286671003/#ps268941002
review286671003 updated at https://codereview.tryton.org/286671003/#ps268841003
msg55207 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2020-02-04.15:49:38
Since issue8925 it crashes with:

FAIL: /home/pokoli/projectes/nclone/trytond/trytond/modules/commission/tests/scenario_commission.rst
Doctest: scenario_commission.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/doctest.py", line 2197, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for scenario_commission.rst
  File "/home/pokoli/projectes/nclone/trytond/trytond/modules/commission/tests/scenario_commission.rst", line 0

----------------------------------------------------------------------
File "/home/pokoli/projectes/nclone/trytond/trytond/modules/commission/tests/scenario_commission.rst", line 193, in scenario_commission.rst
Failed example:
    credit.execute('credit')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib64/python3.8/doctest.py", line 1329, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest scenario_commission.rst[106]>", line 1, in <module>
        credit.execute('credit')
      File "/home/pokoli/projectes/nclone/proteus/proteus/__init__.py", line 1224, in execute
        result = self._proxy.execute(self.session_id, data, self.state,
      File "/home/pokoli/projectes/nclone/proteus/proteus/config.py", line 188, in __call__
        result = rpc.result(meth(*args, **kwargs))
      File "/home/pokoli/projectes/nclone/trytond/trytond/wizard/wizard.py", line 290, in execute
        return wizard._execute(state_name)
      File "/home/pokoli/projectes/nclone/trytond/trytond/wizard/wizard.py", line 316, in _execute
        do_result = do(action)
      File "/home/pokoli/projectes/nclone/trytond/trytond/modules/account_invoice/invoice.py", line 2882, in do_credit
        credit_invoices = Invoice.credit(
      File "/home/pokoli/projectes/nclone/trytond/trytond/modules/account_invoice/invoice.py", line 1358, in credit
        new_invoices = [i._credit(**values) for i in invoices]
      File "/home/pokoli/projectes/nclone/trytond/trytond/modules/account_invoice/invoice.py", line 1358, in <listcomp>
        new_invoices = [i._credit(**values) for i in invoices]
    TypeError: _credit() got an unexpected keyword argument 'invoice_date'
History
Date User Action Args
2020-02-24 18:35:38roundup-botsetmessages: + msg55565
2020-02-24 18:35:31roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg55564
2020-02-24 09:43:16reviewbotsetmessages: + msg55554
2020-02-22 15:16:26reviewbotsetmessages: + msg55518
2020-02-17 11:13:34reviewbotsetmessages: + msg55426
2020-02-04 16:15:30reviewbotsetnosy: + reviewbot
messages: + msg55211
2020-02-04 15:56:28pokolisetstatus: in-progress -> testing
reviews: 286671003
keyword: + review
2020-02-04 15:49:38pokolicreate

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