remove issue10467.diff

issue10671 allow to request lot when assigning moves
This commit is contained in:
Raimon Esteve 2022-12-27 08:42:38 +01:00
parent 95be3d5454
commit ddafa8ae4a
2 changed files with 0 additions and 26 deletions

View File

@ -1,24 +0,0 @@
diff -r 8a6a82c717d6 stock.py
--- a/trytond/trytond/modules/stock_lot/stock.py Tue Jul 10 12:57:12 2018 +0200
+++ b/trytond/trytond/modules/stock_lot/stock.py Tue Jul 10 12:58:45 2018 +0200
@@ -159,6 +159,20 @@
'lot_required': 'Lot is required for move of product "%s".',
})
+ @classmethod
+ def assign_try(cls, moves, with_childs=True, grouping=('product',)):
+ lot_moves = []
+ product_moves = []
+ for move in moves:
+ if move.lot:
+ lot_moves.append(move)
+ else:
+ product_moves.append(move)
+ return (super(Move, cls).assign_try(lot_moves,
+ with_childs=with_childs, grouping=('product', 'lot'))
+ & super(Move, cls).assign_try(product_moves,
+ with_childs=with_childs, grouping=grouping))
+
def check_lot(self):
"Check if lot is required"
if (self.state == 'done'

2
series
View File

@ -13,8 +13,6 @@ sale_supply_supply_on_sale_multivalue.diff # [sale_supply] supply_on_sale field
issue4482.diff # [stock] stock inventory misses company access rule
search_warehouse.diff # [stock] search function for warehouse
issue10467.diff # [stock_lot] add lot to grouping when assign try if lot it's required on product
model.diff # [trytond] Allows dynamic fields in Model as required by the wizard in sale_pos_template_quantities
issue9802.diff # [stock] Improve performance when partially assigning moves