changeset 77e1f646fdf9 in modules/stock:5.8 details: https://hg.tryton.org/modules/stock?cmd=changeset&node=77e1f646fdf9 description: Manage multiple arguments on inventory write
issue10894 review362981002 (grafted from 49b5584941203954a801791234de83a3090ce6cb) diffstat: inventory.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diffs (15 lines): diff -r f71af880465b -r 77e1f646fdf9 inventory.py --- a/inventory.py Thu Oct 21 00:07:14 2021 +0200 +++ b/inventory.py Fri Oct 22 15:47:33 2021 +0200 @@ -217,8 +217,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