Computed many2many field dependencies in Odoo 10
<p>I am trying to create a new field on the <em>sale.order.line</em> model. This field is called <em>x_all_route_ids</em>, and is meant to contain all of the available <em>stock.location.route</em> for an Order Line.</p>

<p>It should look up the <em>product_id.route_ids</em> and <em>product_id.routes_from_categ_ids</em> for the Order Line, and join them together into a single set of Routes.</p>

<p>I am trying to set this field up through the Odoo UI, but getting error related to my "Dependencies".</p>

<p>I have Dependencies defined as:</p>

<pre><code>product_id, product_id.route_ids, product_id.routes_from_categ_ids
</code></pre>

<p>I have Compute defined as:</p>

<pre><code>for record in self:
    record['x_all_route_ids'] = record.product_id.route_ids
</code></pre>

<p>To start I am just trying to get the field to show the same value as <code>product_id.route_ids</code>, but it's not working. When I save, I get the following error:</p>

<pre><code>Error while validating constraint

Unknown field u'product_id' in dependency u'product_id'
</code></pre>

<p>Any idea what I'm doing wrong here?</p>