Change diff issue10467 for 4.0 series

This commit is contained in:
Raimon Esteve 2016-05-30 14:25:48 +02:00
parent bbe8ec997c
commit aa7db3a08c
1 changed files with 8 additions and 7 deletions

View File

@ -1,12 +1,10 @@
Index: stock.py
===================================================================
--- .a/trytond/trytond/modules/stock_lot/stock.py
+++ .b/trytond/trytond/modules/stock_lot/stock.py
@@ -80,6 +80,20 @@
diff -r 463332839c4e trytond/trytond/modules/stock_lot/stock.py
--- a/trytond/trytond/modules/stock_lot/lstock.py Wed May 11 11:26:49 2016 +0200
+++ b/trytond/trytond/modules/stock_lot/stock.py Mon May 30 14:23:41 2016 +0200
@@ -78,6 +78,20 @@
for move in moves:
move.check_lot()
+ @classmethod
+ def assign_try(cls, moves, with_childs=True, grouping=('product',)):
+ lot_moves = []
@ -21,3 +19,6 @@ Index: stock.py
+ & super(Move, cls).assign_try(product_moves,
+ with_childs=with_childs, grouping=grouping))
+
class ShipmentIn:
__metaclass__ = PoolMeta