mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_inventory: only set to done adjustment if there is an adjustment
This commit is contained in:
committed by
DavidJForgeFlow
parent
4dc8e6d14a
commit
587d05f7ac
@@ -51,8 +51,8 @@ class StockQuant(models.Model):
|
||||
}
|
||||
)
|
||||
rec.to_do = False
|
||||
if self.env.company.stock_inventory_auto_complete:
|
||||
adjustment.action_auto_state_to_done()
|
||||
if adjustment and self.env.company.stock_inventory_auto_complete:
|
||||
adjustment.action_auto_state_to_done()
|
||||
return res
|
||||
|
||||
def _get_inventory_fields_write(self):
|
||||
|
||||
Reference in New Issue
Block a user