Message 65012

Author
deathrake
Date
2021-02-28.08:49:24
Message id
65012

Content

1 139944508585728 [2021-02-28 05:04:36,808] ERROR trytond.ir.cron Running cron 10
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/trytond/ir/cron.py", line 134, in run
    cron.run_once()
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/descriptors.py", line 31, in newfunc
    return self.func(owner, [instance], *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelview.py", line 740, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/company/ir.py", line 99, in run_once
    super(Cron, cls).run_once([cron])
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/descriptors.py", line 33, in newfunc
    return self.func(owner, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelview.py", line 740, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/ir/cron.py", line 114, in run_once
    getattr(Model, method)()
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/sale_subscription/subscription.py", line 377, in generate_invoice
    consumptions, invoice)
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/sale_subscription/subscription.py", line 885, in get_invoice_lines
    line.quantity = sum(c.quantity for c in sub_consumptions)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Steps to reproduce

  1. Create Sale Subscription
  2. Create Line consumption
  3. Create Subscription Invoice Wizard
History
Date User Action Args
2021-02-28 08:49:26deathrakesetmessageid: <1614498566.3369172.Q7GIOMJ5QBEA24KC.issue10138@tryton.org>
2021-02-28 08:49:26deathrakelinkissue10138 messages
2021-02-28 08:49:24deathrakecreate

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