drop shipment: cannot send
https://discuss.tryton.org/t/can-not-sent-drop-shipment/5462
Procedure:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 119, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 86, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 161, 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/model/modelview.py", line 707, 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/sale/stock.py", line 25, in wrapper
func(cls, shipments)
File "/trytond/modules/purchase/stock.py", line 28, in wrapper
func(cls, shipments)
File "/trytond/modules/sale_supply_drop_shipment/stock.py", line 600, in ship
Move.do([m for s in shipments for m in s.supplier_moves])
File "/trytond/model/modelview.py", line 707, 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/stock_consignment/stock.py", line 82, in wrapper
return func(cls, moves)
File "/trytond/modules/stock_consignment/stock.py", line 279, in do
super(Move, cls).do(moves)
File "/trytond/model/modelview.py", line 707, 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 153, in wrapper
func(cls, moves)
File "/trytond/modules/purchase/stock.py", line 249, in do
super().do(moves)
File "/trytond/model/modelview.py", line 707, 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 707, 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 171, in do
account_move = move._get_account_stock_move()
File "/trytond/modules/account_stock_continental/stock.py", line 139, in _get_account_stock_move
account_move_lines = self._get_account_stock_move_lines(type_)
File "/trytond/modules/account_stock_continental/stock.py", line 34, 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'
The product in question does have a cost price associated:
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
screen1.png | @herrdeh | 2022-08-19 06:47:47.136000 UTC | image/png |
screen2.png | @herrdeh | 2022-08-19 06:47:57.298000 UTC | image/png |
screen3.png | @herrdeh | 2022-08-19 06:48:08.424000 UTC | image/png |