-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Variant]: Copy fields from Template at the time of Saving a Variant as well #4253
Comments
@adityaduggal I feel a better design would be to not allow values to be changed on the variant form. Let me know your inputs on this. |
Sure that would be much better since then the user knows that those values which he/she is trying to change needs to be changed in the Template or if they want the values to be different across variants then would make that field as I think this is much better rather than just copying from template and keeping the user perplexed as what does he needs to do to change the field in the variant. |
@neilLasrado Any update on this issue? |
I think this is already done. Can someone check? |
I don't think this is implemented, I just checked. Checked as below:
Now the problem is that when I open Item A again and change the standard selling rate to 50 and since this field is NOT set to no copy ideally the template should enforce that the standard selling rate should be 100 instead of 50 which we have changed later. I hope I have clearly stated the problem. Basically what I am saying that if a field is not set to NO COPY then it should be enforced on the variants and not just COPY. |
This is done. If we make any changes in the Template then the Variants are updated on saving the Template. |
@adityaduggal @rmehta I can replicate the issue in my test account as well. |
… not editable. fixes frappe#4253
@adityaduggal reverting this. Most users it seems want variant attributes copy-able! |
I am unable to understand what it means that users want the variant attributes as copy-able...can you explain a bit more. What I see fro the code changes that if a field is not marked as NO COPY then the field in the variant would be un-editable The only problem I see that there is no way a user can control which fields are NO COPY and which fields are NOT NO COPY since that option is not in the customize form view. If the customize form view has the option to change the fields from COPY to NO COPY or vice-versa then it would be a easier for users to customize the things at their end. |
Allowing no-copy is a bad option. It causes lots of problems when reference fields are copied over. Maybe there needs to be another option. For now leaving it as it is. |
Currently only fields are copied from the template when a new Variant is created but when we are making changes to the variant then the fields are not getting copied over to the variant.
This has been discussed at https://discuss.erpnext.com/t/how-to-copy-values-from-template-to-variant/8093/
The text was updated successfully, but these errors were encountered: