hi i get this error
ValueError |
there is my code :
@api.depends('projet.projetbc_ligne_ids')
def _total(self):
for variant in self.projet.projetbc_ids:
variant.quantite_encoure = sum(line.quantite for line in self.projet.projetbc_ligne_ids)
it works if i have one record in my table but it show the error if i have more .. any idea??