Criptomart/red-supermercados-coop#18 stock_inventory_product_exhausted: allow unlink empty stock.quants for archived products
This commit is contained in:
parent
6b1b032101
commit
9daf707f40
1 changed files with 4 additions and 1 deletions
|
|
@ -110,4 +110,7 @@ class StockQuant(models.Model):
|
||||||
This may need review to ensure it doesn't conflict
|
This may need review to ensure it doesn't conflict
|
||||||
with standard Odoo behavior.
|
with standard Odoo behavior.
|
||||||
"""
|
"""
|
||||||
_logger.debug("Preventing automatic unlinking of zero quants")
|
if self.product_tmpl_id.active:
|
||||||
|
_logger.debug("Preventing automatic unlinking of zero quants")
|
||||||
|
else:
|
||||||
|
super()._unlink_zero_quants()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue