mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
chore: Make image field obsolete in Website Item (redundant)
- Delete Image field and set `website_image` as form's image field for uploads - Remove instances of `image` field access via Website Item - Item -> Web Item via Desk: Map Item's `image` to Web Item's `website_image` - Item -> Web Item via patch: `website_image` will be mapped with thumbnail - Remove magic that auto-sets `website_image` from `image` in Website Item
This commit is contained in:
@@ -16,7 +16,7 @@ class Homepage(Document):
|
||||
def setup_items(self):
|
||||
for d in frappe.get_all(
|
||||
"Website Item",
|
||||
fields=["name", "item_name", "description", "image", "route"],
|
||||
fields=["name", "item_name", "description", "website_image", "route"],
|
||||
filters={"published": 1},
|
||||
limit=3,
|
||||
):
|
||||
@@ -31,7 +31,7 @@ class Homepage(Document):
|
||||
item_code=d.name,
|
||||
item_name=d.item_name,
|
||||
description=d.description,
|
||||
image=d.image,
|
||||
image=d.website_image,
|
||||
route=d.route,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user