Help

0

Drop Shipping in multi company

Avatar
Vigneshwaran

Create a MultiCompany Environment,

enable the product sharing option

login as sub company

create a sale order for a zero quantity product

In sale_stock/onchange_product_id/

the following line 

if not is_available: 
for pull_rule in product_routes.mapped('pull_ids'):
if pull_rule.picking_type_id.default_location_src_id.usage == 'supplier' and\
 pull_rule.picking_type_id.default_location_dest_id.usage == 'customer':
 is_available = True
 break


The above if condition fails whilst checking the pull_rule.picking_type_id.default_location_src_id, it always return empty,
due to this is_avialable is not set in the product onchange
Which leads to access error while picking the product in the SOL
stock.picking.type, no read access 
アバター
破棄