Odoo Help

0

Drop Shipping in multi company

By
Vigneshwaran
on 3/9/16, 6:41 AM 530 views

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 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/9/16, 6:41 AM
Seen: 530 times
Last updated: 3/9/16, 7:53 AM