Impacted versions: 13.0
Steps to reproduce: Create new object and change the categories_id before saving
Current behavior: get NewID in all onchange and cannot resolve it
Expected behavior: the same error at api.depends (compute or constraints)
An exemple:
`
@api.onchange('categorie_ids') def change_categ_ids(self): company_id = self.company_id and self.company_id.id domain = [('type', '=', 'product'), '|', ('company_id', '=', False), ('company_id', '=', company_id)] if self.categorie_ids: domain = ['&','&',('categ_id', 'in', [c.id for c in self.categorie_ids]),('type', '=', 'product'),'|', ('company_id', '=', False), ('company_id', '=', company_id)] print("domain:", self.categorie_ids) return { 'domain':{ 'product_ids': domain, } }`
Self.categorie_ids return NewID.
EDITED:
When I used self.categorie_ids.ids, it's works.
But why ?