Hello fellow colleagues,
I’m facing a situation as follows:
I’m expecting a delivery to land at Hamburg port, there it will be split into two parts: One goes to our own warehouse, a second directly to a customer. So it’s a kind of drop shipment, but not exactly the same.
I tried to manually create a move at inventory&stock, “from supplier” “to customer” and as origin of this move used fitting “purchase line”. But when trying to carry out the move, this error appears:
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 200, in wrapper
return func(request, pool, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/protocols/dispatcher.py", line 196, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/model/modelview.py", line 753, in wrapper
return func(cls, records, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/model/workflow.py", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/modules/purchase/stock.py", line 126, in wrapper
func(cls, moves)
File "/trytond/modules/purchase/stock.py", line 222, in do
super().do(moves)
File "/trytond/model/modelview.py", line 753, in wrapper
return func(cls, records, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/model/workflow.py", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/modules/account_invoice_stock/stock.py", line 81, in do
super().do(moves)
File "/trytond/model/modelview.py", line 753, in wrapper
return func(cls, records, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/model/workflow.py", line 37, in wrapper
result = func(cls, filtered, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/modules/account_stock_continental/stock.py", line 174, in do
account_move = move._get_account_stock_move()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/modules/account_stock_continental/stock.py", line 132, in _get_account_stock_move
account_move_lines = self._get_account_stock_move_lines(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/modules/account_rule/stock.py", line 34, in _get_account_stock_move_lines
return super()._get_account_stock_move_lines(type_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/modules/account_stock_continental/stock.py", line 37, in _get_account_stock_move_lines
Decimal(str(self.quantity)) * unit_price)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
TypeError: unsupported operand type(s) for *: 'decimal.Decimal' and 'NoneType'
Fault: unsupported operand type(s) for *: 'decimal.Decimal' and 'NoneType'
Does my approach make sense? - What can I do about it? - Tryton v7.0.
EG