When I want show a one2many computed field in a tree view,I got these message
ValueError: Wrong value for facturation.lot.id_articleouvrage: facturation.articleouvrage(1, 2)
@api.one
def get_article_list(self):
art = self.env["facturation.articleouvrage"].search([])
self.id_articleouvrage = art
print self.id_articleouvrageer`
id_articleouvrage = fields.One2many(compute="get_article_list",relation='facturation.articleouvrage')
xml file:
<field name="id_articleouvrage">
<tree editable="true">
</tree>
</field>