Hello,
I noticed that some sales remain in the «processing» state, even when everything is done. It’s a service sale, so no shipment, but the invoice is paid.
I tried to manually process one of them, and got the backtrace:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 117, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 84, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 159, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 774, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond/modules/sale/sale.py", line 960, in process
cls._process_invoice_shipment_states(sales)
File "/trytond/modules/sale/sale.py", line 1022, in _process_invoice_shipment_states
line.set_actual_quantity()
File "/trytond/modules/sale/sale.py", line 1701, in set_actual_quantity
invoiced_quantity += Uom.compute_qty(
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
Fault: unsupported operand type(s) for +=: 'int' and 'NoneType'
The only notable thing is that I have a comment line in the sale, and another one in the invoice (the comment from the sale is not automatically transfered to the invoice)
Tell-me if I can give more info