Closed SantiagoX9713 closed 3 years ago
Can't replicate it, do you have any customization on your site?
same issue on latest version-13 ERPNext: v13.0.1 (version-13)
Frappe Framework: v13.0.2 (version-13)
traceback as below Traceback (most recent call last): File "/home/fisher/erpnext/apps/frappe/frappe/app.py", line 67, in application response = frappe.api.handle() File "/home/fisher/erpnext/apps/frappe/frappe/api.py", line 58, in handle return frappe.handler.handle() File "/home/fisher/erpnext/apps/frappe/frappe/handler.py", line 30, in handle data = execute_cmd(cmd) File "/home/fisher/erpnext/apps/frappe/frappe/handler.py", line 70, in execute_cmd return frappe.call(method, frappe.form_dict) File "/home/fisher/erpnext/apps/frappe/frappe/init.py", line 1145, in call return fn(*args, *newargs) File "/home/fisher/erpnext/apps/erpnext/erpnext/controllers/item_variant.py", line 189, in enqueue_multiple_variant_creation return create_multiple_variants(item, args) File "/home/fisher/erpnext/apps/erpnext/erpnext/controllers/item_variant.py", line 205, in create_multiple_variants variant.save() File "/home/fisher/erpnext/apps/frappe/frappe/model/document.py", line 284, in save return self._save(args, kwargs) File "/home/fisher/erpnext/apps/frappe/frappe/model/document.py", line 306, in _save self.insert() File "/home/fisher/erpnext/apps/frappe/frappe/model/document.py", line 232, in insert self.set_new_name(set_name=set_name, set_child_names=set_child_names) File "/home/fisher/erpnext/apps/frappe/frappe/model/document.py", line 422, in set_new_name set_new_name(self) File "/home/fisher/erpnext/apps/frappe/frappe/model/naming.py", line 55, in set_newname frappe.throw(("{0} is required").format(doc.meta.get_label(fieldname))) File "/home/fisher/erpnext/apps/frappe/frappe/init.py", line 424, in throw msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list) File "/home/fisher/erpnext/apps/frappe/frappe/init.py", line 403, in msgprint _raise_exception() File "/home/fisher/erpnext/apps/frappe/frappe/init.py", line 357, in _raise_exception raise raise_exception(msg) frappe.exceptions.ValidationError: Item Code is required
same issue on latest version-13 ERPNext: v13.0.1 (version-13) Frappe Framework: v13.0.2 (version-13) no custimization
I have the same issue with multiple variants. Clicking on "Make" cause the error.
Error:
That indicate maybe an error with autogenerating the item code.
Also, when i create a Single variant, select colour: black, size: S
fill out the "Item Code" and save
I can not specify any attribute value:
In the template file i can specify:
this is caused by incorrectly added attribute field into the item variant setting fields list. related code is at erpnext.controllers.item_variant.copy_attribute_to_variant allow_fields = [d.field_name for d in frappe.get_all("Variant Field", fields = ['field_name'])]
solution: make sure both attribute and has_variants 2 fields not among the fields list.
seems patch to delete the attribute field is needed.
Hi, Thank you for reply!! It works! Now the issue is gone. I deleted the "attribute" field and want to recreate it. I got a empty selection (when i am on page2 - page 1 is working) page 1:
page 2:
When i want to insert new row field list is empty:
I run the instance on a docker container EDGE version 13.x.x.x develop and Traefik.
not understand what is the current problem, you can not add other fields into the field list in item variant setting screen? the 2 fields: attribute and has_variants should not be added back into this list as they are not needed to be copied from template item to variant item.
Hi,
Thanks for your help. If i have further issues i will open a new thread.
:)
Description of the issue
When trying to create new variants from a template and selecting the attributes of the new variants triggers the following error: Item Code is required
Context information (for bug reports)
erpnext 13.x.x-develop erpnext_telegram_integration 0.0.5 frappe 13.x.x-develop
Steps to reproduce the issue
I'm using Ubuntu 18 & install with easy script