From ac5dd582257bd68718e32199808679cb7e090e38 Mon Sep 17 00:00:00 2001 From: Jared Esparza Date: Tue, 21 Feb 2023 14:48:22 +0100 Subject: [PATCH] Remove issue9802 patch | #156791 --- issue9802.diff | 35 ----------------------------------- series | 2 -- 2 files changed, 37 deletions(-) delete mode 100644 issue9802.diff diff --git a/issue9802.diff b/issue9802.diff deleted file mode 100644 index 0ac7d57..0000000 --- a/issue9802.diff +++ /dev/null @@ -1,35 +0,0 @@ ---- a/tryton/modules/stock/move.py -+++ b/tryton/modules/stock/move.py -@@ -949,6 +949,8 @@ - child_locations = {} - to_write = [] - to_assign = [] -+ to_copy = [] -+ to_copy_values = {} - success = True - for move in moves: - if move.state != 'draft': -@@ -1012,13 +1014,21 @@ - to_assign.append(move) - first = False - else: -- with Transaction().set_context(_stock_move_split=True): -- to_assign.extend(cls.copy([move], default=values)) -+ to_copy.append(move) -+ to_copy_values[move.id] = values - - qty_default_uom = Uom.compute_qty(move.uom, qty, - move.product.default_uom, round=False) - - pbl[key] = pbl.get(key, 0.0) - qty_default_uom -+ if to_copy: -+ with Transaction().set_context(_stock_move_split=True): -+ to_assign.extend(cls.copy(to_copy, default={ -+ 'from_location': lambda d: ( -+ to_copy_values[d['id']]['from_location']), -+ 'quantity': lambda d: ( -+ to_copy_values[d['id']]['quantity']), -+ })) - if to_write: - cls.write(*to_write) - if to_assign: diff --git a/series b/series index 9a852ad..a5670d3 100644 --- a/series +++ b/series @@ -15,8 +15,6 @@ search_warehouse.diff # [stock] search function for warehouse 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 - sao_colors.diff # [sao] Use the same colors as 5.4 version sao_remove_email.diff # [sao] Removes the email button from the toolbar