changeset 02e8b1c7accf in modules/product:default
details: https://hg.tryton.org/modules/product?cmd=changeset;node=02e8b1c7accf
description:
Add missing enumerate when looping on non modifiable field
It is missing since changeset 8c885973a93f.
issue8984
review274691002
diffstat:
uom.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fce3ebecae49 -r 02e8b1c7accf uom.py
--- a/uom.py Mon Jan 20 10:59:30 2020 +0100
+++ b/uom.py Mon Jan 20 11:12:47 2020 +0100
@@ -166,7 +166,7 @@
super(Uom, cls).write(*args)
for uom in all_uoms:
- for i, field in ['factor', 'rate', 'category']:
+ for i, field in enumerate(['factor', 'rate', 'category']):
if getattr(uom, field) != old_uom[uom.id][i]:
raise AccessError(
gettext('product.msg_uom_modify_%s' % field,