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