Skip to content
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

copy_specification_from_item_group is not whitelisted #224

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion webshop/webshop/doctype/website_item/website_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def set_shopping_cart_data(self, context):
self.item_code, skip_quotation_creation=True
)

@frappe.whitelist()
def copy_specification_from_item_group(self):
self.set("website_specifications", [])
if self.item_group:
Expand Down Expand Up @@ -573,4 +574,4 @@ def has_website_permission_for_item_group(doc, ptype, user, verbose=False):
if not frappe.db.get_single_value("Webshop Settings", "login_required_to_view_products"):
return True

return False
return False
Loading