# Split incoming delivery

**URL:** https://discuss.tryton.org/t/split-incoming-delivery/8857
**Category:** User
**Tags:** stock
**Created:** [September 26, 2025, 9:37am UTC](https://discuss.tryton.org/t/split-incoming-delivery/8857 "2025-09-26T09:37:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)
#### Post date: [September 26, 2025, 9:37am UTC](https://discuss.tryton.org/t/split-incoming-delivery/8857/1 "2025-09-26T09:37:56Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 26, 2025, 1:45pm UTC](https://discuss.tryton.org/t/split-incoming-delivery/8857/2 "2025-09-26T13:45:03Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)
#### Post date: [September 26, 2025, 5:22pm UTC](https://discuss.tryton.org/t/split-incoming-delivery/8857/3 "2025-09-26T17:22:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [September 27, 2025, 5:22pm UTC](https://discuss.tryton.org/t/split-incoming-delivery/8857/4 "2025-09-27T17:22:06Z")

</div>

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