Use shipment company to get shipment_internal_transit
issue10992 review391211002 (grafted from b7a44148ecb1e603de81327d5ae5cafe31b0290c) --HG-- branch : 6.0
This commit is contained in:
1 parent
697af999c3
commit
e841aa6f72
1 file changed
+4
-1
@@ -220,5 +220,8 @@ class ShipmentInternal(metaclass=PoolMeta):
|
||||
Config = pool.get('stock.configuration')
|
||||
location = super().on_change_with_transit_location(name=name)
|
||||
if not location and self.company and self.company.cost_price_warehouse:
|
||||
location = Config(1).get_multivalue('shipment_internal_transit').id
|
||||
location = Config(1).get_multivalue(
|
||||
'shipment_internal_transit', company=self.company)
|
||||
if location:
|
||||
location = location.id
|
||||
return location
|
||||
Reference in new issue
Block a user