Split incoming delivery

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

This is exactly a drop shipment.
In Tryton they must be define when creating the purchase that it will be a drop shipment.

You can not create a move from supplier to customer in a supplier shipment.

But as you are talking about split, I’m wondering if indeed you do not have a kind of warehouse in Hamburg. If it is the case you should receive the product in this warehouse and then make an internal shipment to your other warehouse and a customer shipment.

As I do normally not drop ship these products, setup and handling of a drop shipment would be challenging.

But the idea of a distinguished warehouse at Hamburg port works perfectly for me. It does the moves and creates the invoice for my customer.
Thank you a lot, Sir.

EG

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.