I wonder how can access sale order tags from stock.picking model. I tried to search for sale order and add it with compute field but, I'm getting `You are not allowed to access 'Unknown' (_unknown) records.`
in sale model:
inherited_tag_ids = fields.Many2many(compute="get_sale_order_tags")def get_sale_order_tags(self):
"""Sends carrier data"""
self.ensure_one()
return self.env['sale.order'].search(
[('state', '!=', 'cancel'), ('name', '=', self.origin)]).tag_ids
How can I access sale order tags from stock.picking model, maybe there is easy way, to do this?