[minor] duplicate row id from same prevdoc

This commit is contained in:
Nabin Hait
2013-07-29 15:29:51 +05:30
parent 90d74d4bfa
commit 5e200e43a6
4 changed files with 7 additions and 6 deletions

View File

@@ -308,7 +308,7 @@ class TransactionBase(StatusUpdater):
self.compare_values({key: [ref_dn]}, val["compare_fields"], d)
if ref_dn not in item_ref_dn:
item_ref_dn.append(ref_dn)
else:
elif not val.get("allow_duplicate_prev_row_id"):
webnotes.msgprint(_("Row ") + cstr(d.idx + 1) +
_(": Duplicate row from same ") + key, raise_exception=1)
elif ref_dn: