Odoo Help


Drop Shipping in multi company

on 3/9/16, 6:41 AM 391 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

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 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


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)


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