Odoo Help

Welcome!

This community 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.

0

Drop Shipping in multi company

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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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