Created on 2021-02-28.08:49:26 by deathrake, last changed 2 days ago by reviewbot.
Here is review341981002 which should solve the problem.
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
History | |||
---|---|---|---|
Date | User | Action | Args |
2021-04-08 10:50:18 | reviewbot | set | messages: + msg66173 |
2021-04-08 00:12:00 | reviewbot | set | messages:
+ msg66166 nosy: + reviewbot |
2021-04-07 23:54:10 | ced | set | keyword:
+ review messages: + msg66165 reviews: 341981002 status: in-progress -> testing |
2021-04-07 23:53:14 | ced | set | assignedto: ced nosy: + ced status: unread -> in-progress |
2021-02-28 10:51:05 | ced | set | component:
+ sale_subscription title: bug in subscription invoice consumpution wizard -> unsupported operand type(s) for +: 'int' and 'NoneType' type: crash |
2021-02-28 08:49:26 | deathrake | create |
Showing 10 items. Show all history (warning: this could be VERY long)