we want to list all related stock_moves directly in the partner-view as tree.
we added in res_partner:
all_pickings = fields.One2many('stock.move', 'partner_id', string="Pickings" , domain=[])
and in the view we added:
<page string="Pickings" attrs="{'invisible': [('customer','=', False)]}">
<field name="all_pickings">
<tree create="false" delete="false">
<field name="product_id" />
<field name="name" />
</tree>
</field>
</page>
But when i open the res.partner now i get the following runetime error:
Error: Unknown field state in domain
Any Ideas?