changeset 7929cb00d552 in modules/stock_supply_production:default
details: 
https://hg.tryton.org/modules/stock_supply_production?cmd=changeset;node=7929cb00d552
description:
        Create all production requests in single call

        issue9167
        review259021003
diffstat:

 production.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 94c3b941ecb4 -r 7929cb00d552 production.py
--- a/production.py     Thu Mar 19 19:16:47 2020 +0100
+++ b/production.py     Mon Mar 30 09:47:40 2020 +0200
@@ -115,9 +115,9 @@
                             quantity, date, company)
                         req.planned_start_date = (
                             req.on_change_with_planned_start_date())
-                        req.save()
-                        req.set_moves()
                         requests.append(req)
+        cls.save(requests)
+        cls.set_moves(requests)
         return requests
 
     @classmethod

Reply via email to