TypeError: can only concatenate list (not "tuple") to list

And another thing occurred - after “quote” now I have to “process” a sale. When doing so, this error happens:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 109, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 43, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 75, in wrapper
    return func(request, *args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 197, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 204, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelview.py", line 720, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/trytond/modules/sale_shipment_cost/sale.py", line 243, in process
  File "/trytond/model/modelview.py", line 720, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/trytond/modules/sale/sale.py", line 1039, in process
  File "/trytond/modules/sale_supply/sale.py", line 48, in _process_shipment
  File "/trytond/modules/sale_shipment_grouping/sale.py", line 72, in _process_shipment
  File "/trytond/modules/sale/sale.py", line 1067, in _process_shipment
    shipments = sale.create_shipment('out')
  File "/trytond/modules/sale/sale.py", line 948, in create_shipment
    shipment = self._get_shipment_sale(Shipment, key)
  File "/trytond/modules/sale_shipment_cost/sale.py", line 334, in _get_shipment_sale
    shipment = super()._get_shipment_sale(Shipment, key)
  File "/trytond/modules/sale_shipment_grouping/sale.py", line 59, in _get_shipment_sale
    domain = self._get_grouped_shipment_domain(shipment)
  File "/trytond/modules/sale_shipment_grouping/sale.py", line 44, in _get_grouped_shipment_domain
    fields = self._get_shipment_grouping_fields(shipment)
  File "/trytond/modules/sale_shipment_cost/sale.py", line 320, in _get_shipment_grouping_fields
    return super()._get_shipment_grouping_fields(shipment) + (
TypeError: can only concatenate list (not "tuple") to list

Fault: can only concatenate list (not "tuple") to list

This may be related to the fact, that I could no longer launch my Tryton after upgrade to trytond 6.8.6. A downgrade to 6.8.5 fixed this problem, but may have caused other harm. Should I go back to last week’s database backup, or is there an easy fix?

Seems a bug in one of the modules, probably the sale_shipment_grouping. And I think https://discuss.tryton.org/t/the-value-order-for-field-shipment-cost-method-is-not-valid is also related.

No idea, this is still on 6.8 and 6.8.5 works, but 6.8.6 not? You have to downgrade also the different modules. I would start with downgrading the sale_shipment_cost to 6.8.1 because the sale_shipment_grouping hasn’t been upgraded. If it still doesn’t work, check for the version on http://downloads.tryton.org/6.8/ and downgrade based on the date a new version was released.

Please let us know which module made it working again, so we can check what has changed in that module.

Luckily, my update script by accident is smart enough to take records of all changes. So I found, on Nov 6th it upgraded these modules:


Downgrading all these seems to have solved the problem; certainly not all of these were faulty. Thanks for your support !


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.