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

feat: create variant with/without image #41317

Merged

Conversation

Nihantra-Patel
Copy link
Contributor

@Nihantra-Patel Nihantra-Patel commented May 3, 2024

Earlier, when creating a variant, it was not created with an image. Yes, I understand we can set fields in the item variant setting, but we can't set images in it. But I have created a flexible feature in which when you create a single variant or multiple variants, add a checkbox. If you tick that checkbox, the variant will be created with the image that is in the template of that variant. The purpose of creating this feature was that, as an example, suppose there is a book but the image is the same in all the editions of that book, then why should we upload all the images one by one by opening all the items. And it's a bit of a headache. So in the feature, you can create multiple variants with the same image. There are many other examples in which this feature is useful, like a sofa or a chair, but the image will be the same. Only the size has to be mentioned.

feat.Variant.Image.mp4

Documentation Link: https://docs.erpnext.com/docs/user/manual/en/item-variants

@github-actions github-actions bot added needs-tests This PR needs automated unit-tests. stock labels May 3, 2024
@stale stale bot added the inactive label May 19, 2024
@frappe frappe deleted a comment from stale bot May 19, 2024
@stale stale bot removed the inactive label May 19, 2024
@stale stale bot added the inactive label Jun 5, 2024
@frappe frappe deleted a comment from stale bot Jun 5, 2024
@stale stale bot added the inactive label Jun 24, 2024
@frappe frappe deleted a comment from stale bot Jun 24, 2024
@stale stale bot removed the inactive label Jun 24, 2024
@rohitwaghchaure rohitwaghchaure merged commit 66b35ec into frappe:develop Jul 15, 2024
17 of 18 checks passed
mergify bot pushed a commit that referenced this pull request Jul 15, 2024
* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* fix: change the variable name use_same_image to use_template_image

(cherry picked from commit 66b35ec)
rohitwaghchaure pushed a commit that referenced this pull request Jul 15, 2024
feat: create variant with/without image (#41317)

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* feat: create variant with/without image

* fix: change the variable name use_same_image to use_template_image

(cherry picked from commit 66b35ec)

Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
frappe-pr-bot pushed a commit that referenced this pull request Jul 17, 2024
# [15.30.0](v15.29.4...v15.30.0) (2024-07-17)

### Bug Fixes

* address and contact filters for SCO and SCR (backport [#42310](#42310)) ([#42312](#42312)) ([cb64c73](cb64c73))
* bin deadlock issue (backport [#42342](#42342)) ([#42357](#42357)) ([29ee2d4](29ee2d4))
* cost center filter by company (backport [#42297](#42297)) ([#42299](#42299)) ([4c9ce1b](4c9ce1b))
* extra qty pick in pick list (backport [#42345](#42345)) ([#42349](#42349)) ([1754adf](1754adf))
* **gross profit:** incorrect valuation rate on different warehouses ([f161e59](f161e59))
* incoming rate zero for supplied items in returned SCR (backport [#42314](#42314)) ([#42315](#42315)) ([076bf17](076bf17))
* items not fetching in End Transit entry (backport [#42358](#42358)) ([#42361](#42361)) ([b5a2e5a](b5a2e5a))
* keep status as In Progress for RIV for Timeout Error (backport [#42274](#42274)) ([#42296](#42296)) ([1de66e5](1de66e5))
* missing discount on POS Credit Notes ([4055ef9](4055ef9))
* not able to cancel the inter transfer DN (backport [#42333](#42333)) ([#42340](#42340)) ([cf2651d](cf2651d))
* not able to submit LCV entry (backport [#42303](#42303)) ([#42304](#42304)) ([6d098b7](6d098b7))
* remove doctype link from serial no ledger report (backport [#42327](#42327)) ([#42348](#42348)) ([b741b2a](b741b2a))
* removed patch from patches.txt ([c45d11c](c45d11c))
* same posting date and time causing incorrect valuation rate (backport [#42351](#42351)) ([#42356](#42356)) ([62fc428](62fc428))
* service item capitalization ([#42188](#42188)) ([2ffe7d5](2ffe7d5))
* show total rows credit row in balance sheet ([0d2ef0d](0d2ef0d))
* slowness in reposting dependent vouchers. (backport [#42282](#42282)) ([#42292](#42292)) ([ef16313](ef16313))
* **Warehouse:** add buttons only if the user can use them ([a2b21c7](a2b21c7))
* While submitting PCV ensure previous FY is closed (backport [#42284](#42284)) ([#42300](#42300)) ([e250dcc](e250dcc))

### Features

* configurable depreciation calculation via accounts settings ([#42276](#42276)) ([ddd1ca7](ddd1ca7))
* create variant with/without image (backport [#41317](#41317)) ([#42343](#42343)) ([5f1d6ed](5f1d6ed))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-15-hotfix needs-tests This PR needs automated unit-tests. stock
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants