Skip to content

Commit

Permalink
fix: Pre-commit formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marination committed Oct 3, 2021
1 parent 36b519c commit 77d4849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/e_commerce/doctype/website_item/website_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ class WebsiteItem(WebsiteGenerator):

def autoname(self):
# use naming series to accomodate items with same name (different item code)
from erpnext.setup.doctype.naming_series.naming_series import get_default_naming_series
from frappe.model.naming import make_autoname

from erpnext.setup.doctype.naming_series.naming_series import get_default_naming_series

naming_series = get_default_naming_series("Website Item")
if not self.name and naming_series:
self.name = make_autoname(naming_series, doc=self)
Expand Down

0 comments on commit 77d4849

Please sign in to comment.