Skip to Content
Menu
This question has been flagged
2392 Views

def create_wh_routes(): 
logging.info('Creating warehouse routes ...')
odoo = get_session()
wh_route_obj = odoo.env['stock.location.route'] 
config = {}
config['name'] = 'Manufacture'
config['sequence'] = 1 wh_route_obj.create(config)

After I create a route, how to create push rules in route? Are there any alternate way like pull rules that can create in procurement rules?

In developer mode, push rules attribute 
Field: push_id
object: stock.location.route
type: one2many
Relation: stock.location.path

Sorry for my poor programming skill, just cant find any similar example in Google. 

Avatar
Discard
Author

It is like an object inside that field need to add value in that field by opening another object, not really sure how to open the object and open the object's object then write data inside...

Related Posts Replies Views Activity
1
Mar 15
3562
1
Nov 20
4211
6
Apr 20
10051
2
Jan 18
3190
2
May 22
10804