Message 77318

Author
pokoli
Date
2022-07-14.15:31:32
Message id
77318

Content

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-07-14 15:31:32pokolisetmessageid: <1657805492.8608778.YAIHREHBX3BXHTXS.issue11595@tryton.org>
2022-07-14 15:31:32pokolilinkissue11595 messages
2022-07-14 15:31:32pokolicreate

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