changeset 49b558494120 in modules/stock:default details: https://hg.tryton.org/modules/stock?cmd=changeset&node=49b558494120 description: Manage multiple arguments on inventory write
issue10894 review362981002 diffstat: inventory.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diffs (15 lines): diff -r cba100c1c8ab -r 49b558494120 inventory.py --- a/inventory.py Thu Oct 21 00:07:14 2021 +0200 +++ b/inventory.py Fri Oct 22 15:47:33 2021 +0200 @@ -214,8 +214,9 @@ return inventories @classmethod - def write(cls, inventories, values): - super(Inventory, cls).write(inventories, values) + def write(cls, *args): + super().write(*args) + inventories = cls.browse(set(sum(args[::2], []))) cls.complete_lines(inventories, fill=False) @classmethod