Issue 11595

Title
Crash when deactivating multiple products
Priority
bug
Status
testing
Nosy list
pokoli, reviewbot
Assigned to
pokoli
Keywords
backport, review

Created on 2022-07-14.15:31:32 by pokoli, last changed yesterday by reviewbot.

Messages

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-07-14.15:33:17

Introduced by rev de6f02fc67b1

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-07-14.15:31:32

The inactive products check produces the following crash when multiple products are updated:

----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokoli/projectes/nclone/trytond/trytond/tests/test_tryton.py", line 209, in wrapper
    result = func(*args, **kwargs)
  File "/home/pokoli/projectes/nclone/modules/stock/tests/test_module.py", line 1517, in test_inactive_product_with_stock
    Product.write(products, {'active': False})
  File "/home/pokoli/projectes/nclone/trytond/trytond/modules/stock/product.py", line 79, in decorator
    func(cls, *args)
  File "/home/pokoli/projectes/nclone/trytond/trytond/modules/stock/product.py", line 141, in decorator
    product2locations = get_product_locations(
  File "/home/pokoli/projectes/nclone/trytond/trytond/modules/stock/product.py", line 92, in get_product_locations
    quantities = Product.products_by_location(
  File "/home/pokoli/projectes/nclone/trytond/trytond/modules/stock/product.py", line 279, in products_by_location
    query = Move.compute_quantities_query(location_ids, with_childs,
  File "/home/pokoli/projectes/nclone/trytond/trytond/modules/stock/move.py", line 1174, in compute_quantities_query
    assert grouping_filter is None or len(grouping_filter) <= len(grouping)
AssertionError
History
Date User Action Args
2022-08-11 14:45:36reviewbotsetmessages: + msg77676
2022-07-14 16:13:05reviewbotsetmessages: + msg77321
2022-07-14 15:53:49reviewbotsetmessages: + msg77320
nosy: + reviewbot
2022-07-14 15:33:17pokolisetkeyword: + backport, review
messages: + msg77319
reviews: 445141003
status: in-progress -> testing
2022-07-14 15:31:32pokolicreate

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