Message 63781

Author
2cadz
Date
2021-01-06.10:02:39
Message id
63781

Content

After installing the module and launching the 'Generate Stock Quantity Issue' wizard. Is there something to do before launching the wizard?

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 111, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 47, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 78, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 131, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 181, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/wizard.py", line 314, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 345, in _execute
    result = self._execute(transition())
  File "/trytond/modules/stock_quantity_issue/stock.py", line 352, in transition_generate
    QuantityIssue.generate_issues(warehouses=self.start.warehouses)
  File "/trytond/modules/stock_quantity_issue/stock.py", line 251, in generate_issues
    if product_quantity.quantity < 0:
  File "/trytond/model/fields/function.py", line 129, in __get__
    return super().__get__(inst, cls)
  File "/trytond/model/fields/field.py", line 339, in __get__
    return inst.__getattr__(self.name)
  File "/trytond/model/modelstorage.py", line 1623, in __getattr__
    read_data = self.read(list(index.keys()), list(ffields.keys()))
  File "/trytond/model/modelsql.py", line 859, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 105, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 105, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 98, in call
    return method(records, name)
  File "/trytond/modules/stock/product.py", line 546, in get_quantity
    assert date != date_start
AssertionError

Fault: 
History
Date User Action Args
2021-01-06 10:02:392cadzsetmessageid: <1609923759.6257823.VMVRUXHDIUOFI2MY.issue9944@tryton.org>
2021-01-06 10:02:392cadzsetrecipients: + ced, reviewbot
2021-01-06 10:02:392cadzlinkissue9944 messages
2021-01-06 10:02:392cadzcreate

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