issue12414.diff # [stock_lot_sled] Check expiration lot in case Shelf Life Time State is not none
This commit is contained in:
parent
72ee7aa0ca
commit
2833f73fdd
|
@ -0,0 +1,12 @@
|
|||
diff --git a/tryton/modules/stock_lot_sled/stock.py b/tryton/modules/stock_lot_sled/stock.py
|
||||
index 111b160821..0ca38fbfa8 100644
|
||||
--- a/tryton/modules/stock_lot_sled/stock.py
|
||||
+++ b/tryton/modules/stock_lot_sled/stock.py
|
||||
@@ -183,6 +183,7 @@ class Move(metaclass=PoolMeta):
|
||||
@property
|
||||
def to_check_expiration(self):
|
||||
if (self.lot
|
||||
+ and self.product.shelf_life_state != 'none'
|
||||
and self.lot.shelf_life_expiration_date
|
||||
and self.effective_date > self.lot.shelf_life_expiration_date):
|
||||
return True
|
2
series
2
series
|
@ -79,3 +79,5 @@ issue10650.diff # [account_dunning_email] [marketing_automation] [marketing_emai
|
|||
tools-email.diff # [trytond] tools email
|
||||
|
||||
issue12398.diff # [account_dunning] Missing searc_rec_name in model 'account.dunning.level'
|
||||
|
||||
issue12414.diff # [stock_lot_sled] Check expiration lot in case Shelf Life Time State is not "none"
|
||||
|
|
Loading…
Reference in New Issue