Fix calcul stock error inventaire
This commit is contained in:
parent
ef7e520b72
commit
6899476868
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ class InventoryArticle(models.Model):
|
|||
def save(self, *args, **kwargs):
|
||||
# S'il s'agit d'un inventaire provenant d'une livraison, il n'y a pas
|
||||
# d'erreur
|
||||
if not hasattr(self.inventory, 'order'):
|
||||
if not self.inventory.order:
|
||||
self.stock_error = self.stock_new - self.stock_old
|
||||
super(InventoryArticle, self).save(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue