diff --git a/addons/stock_account/models/stock.py b/addons/stock_account/models/stock.py index f7ccabb3089..f8d6655a21d 100644 --- a/addons/stock_account/models/stock.py +++ b/addons/stock_account/models/stock.py @@ -24,11 +24,10 @@ class StockInventory(models.Model): def post_inventory(self): acc_inventories = self.filtered(lambda inventory: inventory.accounting_date) for inventory in acc_inventories: - res = super(StockInventory, inventory.with_context(force_period_date=inventory.accounting_date)).post_inventory() + super(StockInventory, inventory.with_context(force_period_date=inventory.accounting_date)).post_inventory() other_inventories = self - acc_inventories if other_inventories: - res = super(StockInventory, other_inventories).post_inventory() - return res + super(StockInventory, other_inventories).post_inventory() class StockLocation(models.Model):