Tryton - Issues

 

Issue7883

Title Traceback executing supply stock with Shelf Life Delay set diferent to 0 or null
Priority bug Status chatting
Superseder Nosy List angel, reviewbot
Type Components stock_lot_sled
Assigned To Keywords review
Reviews 45841002
View: 45841002

Created on 2018-11-25.08:48:23 by angel, last changed by ced.

Messages
New review45841002 at https://codereview.tryton.org/45841002/#ps1
msg44997 (view) Author: [hidden] (angel) Date: 2018-11-25.08:48:22
Traceback (most recent call last):
  File "/trytond/wsgi.py", line 71, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 42, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 178, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/wizard.py", line 287, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/modules/stock_supply_production/stock.py", line 99, in transition_create_
    return super(StockSupply, self).transition_create_()
  File "/trytond/modules/stock_supply/stock.py", line 73, in transition_create_
    created |= bool(getattr(self, 'generate_%s' % type_)(first))
  File "/trytond/modules/stock_supply/stock.py", line 106, in generate_purchase
    PurchaseRequest.generate_requests(**self._purchase_parameters)
  File "/trytond/modules/stock_supply/purchase_request.py", line 120, in generate_requests
    with_childs=True, grouping_filter=(product_ids,))
  File "/trytond/modules/stock/product.py", line 198, in products_by_location
    grouping=grouping, grouping_filter=grouping_filter)
  File "/trytond/modules/stock_lot_sled/stock.py", line 255, in compute_quantities_query
    expiration_date = stock_date_end + shelf_life_delay
OverflowError: date value out of range
History
Date User Action Args
2018-11-29 00:46:18cedsettitle: Traceback executing sypply stock with Shelf Life Delay set diferent to 0 or null -> Traceback executing supply stock with Shelf Life Delay set diferent to 0 or null
2018-11-26 14:10:30reviewbotsetstatus: unread -> chatting
nosy: + reviewbot
messages: + msg45031
2018-11-26 14:10:29reviewbotsetreviews: 45841002
keyword: + review
2018-11-26 12:39:55angelsetcomponent: + stock_lot_sled
2018-11-25 08:48:23angelcreate