Merge pull request #24825 from rohitwaghchaure/allow-to-set-item-in-batch-naming-pre

fix: allow to select item code in batch naming
This commit is contained in:
rohitwaghchaure 2021-03-12 11:52:43 +05:30 committed by GitHub
commit 90ea17fbd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ class Batch(Document):
if create_new_batch:
if batch_number_series:
self.batch_id = make_autoname(batch_number_series)
self.batch_id = make_autoname(batch_number_series, doc=self)
elif batch_uses_naming_series():
self.batch_id = self.get_name_from_naming_series()
else: