pandiyan
99bdef6baf
fix: rename variant item_code/item_name when attribute abbreviation changes
...
Item Attribute abbreviations only got baked into a variant's item_code
and item_name at creation time (make_variant_item_code returns early
once item_code is set). Renaming an abbreviation afterwards left every
existing variant stuck with the stale code, silently out of sync with
its own attribute.
Detect abbreviation renames on Item Attribute save, find every variant
using the affected value, and rebuild+rename its item_code via
frappe.rename_doc so linked records follow along. item_name is rebuilt
in lockstep from the template's item_name, even if it had since been
customized, since both fields are meant to be derived from the same
abbreviation.
(cherry picked from commit c0cfe5f363 )
2026-07-09 15:03:28 +00:00
barredterra
c7acd88742
fix(stock): update variant attributes on value rename
2026-06-17 17:55:27 +02:00
barredterra
27d574dad5
fix(stock): propagate renamed attribute values to variant items
2026-06-17 17:04:58 +02:00
mergify[bot]
937eb87932
fix: single variant creation error (backport #55286 ) ( #55288 )
...
* fix: single variant creation error
(cherry picked from commit bda75135c3 )
* feat: allow creation of any number of variants in multiple item variant creation dialog
(cherry picked from commit 090c25d848 )
# Conflicts:
# erpnext/controllers/item_variant.py
* chore: resolve conflicts
---------
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
2026-05-26 08:25:21 +00:00
mergify[bot]
0612f1c941
fix: NoneType error when template description is to be copied to variant (backport #53358 ) ( #53365 )
...
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com >
fix: NoneType error when template description is to be copied to variant (#53358 )
2026-03-12 06:49:53 +00:00
barredterra
4914481105
fix: translatability of boldened text
...
(cherry picked from commit af0ae930ca )
# Conflicts:
# erpnext/controllers/accounts_controller.py
2024-08-17 00:21:05 +00:00
mergify[bot]
5f1d6ede31
feat: create variant with/without image (backport #41317 ) ( #42343 )
...
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 66b35ec9fb )
Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com >
2024-07-15 22:58:30 +05:30
Akhil Narang
960ef14b7a
refactor(treewide): formatting and ruff fixes, + manually enabled F401
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev >
2024-04-10 14:15:58 +05:30
Rohit Waghchaure
b649c50ecc
fix: duplicate name error while making variant
...
(cherry picked from commit d7e6b83e64 )
2024-01-18 01:21:52 +00:00
mergify[bot]
7320440b61
fix: item variant with manufacturer (backport #38845 ) (backport #38847 ) ( #38851 )
...
fix: item variant with manufacturer (backport #38845 ) (#38847 )
* fix: item variant with manufacturer (#38845 )
(cherry picked from commit e0c8ff10da )
* chore: fix test case
---------
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com >
(cherry picked from commit 4aa960b744 )
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-12-19 15:17:54 +05:30
Sabu Siyad
f900a78995
refactor!: drop ecommerce in favor of webshop ( #33265 )
...
* refactor!: remove ecommerce item group field check
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove `e_commerce` directory
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove `get_context` from `item_group`
https://frappeframework.com/docs/v14/user/en/guides/portal-development/context
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove related `./templates`
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(navbar): remove wishlist (ecommerce)
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(js): remove js from scripts
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove `www/all-products`
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove pages and js
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove js/customer_reviews
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(portal utils): remove shopping cart debtor account
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove e_commerce events from hooks
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(web): remove e_commerce js from bundle
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(setup): remove shopping cart setup
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove pages
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor(item): remove website item button
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(payment request): remove `on_payment_authorized`
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: @staticmethod `get_gateway_details`
to avoid monkey patching, in custom apps
https://discuss.erpnext.com/t/how-to-override-method-in-frappe/28786/36
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(pages): remove product page
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(homepage): do not setup website items
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor(workspace): remove link to ecommerce settings
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(www): remove shop-by-category
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(homepage): remove featured product
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor: remove products in homepage
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor(homepage): remove explore button
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor: remove products fields from homepage
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* Revert "refactor!: @staticmethod `get_gateway_details`"
This reverts commit 561bcd96680a930bb92627869502d9346b10611b.
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: remove payment gateway e_commerce import
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* chore: pre-commit
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!: pass `party` into `get_price`
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor: move `get_item_codes_by_attributes` to `utilities/product`
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* refactor!(quotation): input customer group
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
* chore: pre-commit
* refactor: remove custom `navbar_items.html`
* refactor!(item): remove `published_in_website`
* refactor: move `validate_duplicate_website_item` before rename
* test: remove `test_shopping_cart_without_website_item`
* chore: add doctype drop patch
* refactor: removed website item related code
* refactor: removed shopping_cart code
* refactor: removed e-commerce related patches
* refactor: removed website related fields from item group
* fix: patch create_asset_depreciation_schedules_from_assets, KeyError: '0K BU64 AUY'
---------
Signed-off-by: Sabu Siyad <hello@ssiyad.com >
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com >
2023-10-17 17:05:44 +05:30
Ankush Menat
494bd9ef78
style: format code with black
2022-03-28 18:52:46 +05:30
marination
80fbe16be8
test: Product Query & Filter Engine, Item Group Page
...
- Test for ProductQuery engine and ProductFilters engine
- Test for engine for Item Group too
- Renamed ‘product_configurator’ to ‘variant_selector’
- Cleaned up filters.py
- Modal freeze backdrop lighter only in cart, since there’s nothing over it
- Fixed unusual spacing in variant selector dialog
- Made `get_child_groups_for_website` more readable
- Replaced ‘Configure’ with ‘Select’ for variant selection
2021-11-16 17:21:17 +05:30
marination
f9929ed8a6
Merge branch 'develop' of https://github.com/frappe/erpnext into e-commerce-refactor-develop
2021-11-16 16:06:07 +05:30
Ankush Menat
8fe5feb6a4
chore: remove all six compat code
2021-11-05 11:16:29 +05:30
Ankush Menat
6098e92ba9
chore: remove utf-8 compat code
2021-11-05 11:16:29 +05:30
marination
22f41a17b7
chore: Removed Shopping Cart Module
...
- Moved all files and web templates from Shopping Cart to E-commerce module
- Made Shopping Cart module obsolete
- Moved select E-commerce related files from Portal to E-commerce module
- Minor cleanups
- Fixed Shopping Cart and Product Configurator tests
2021-10-12 16:54:11 +05:30
marination
025574d9b5
chore: Removing Item's Website section & references
...
- Removed old onboarding slide json and `create_onboarding_docs` methods
- Removed website sections from Item master
- Removed references to item website fields
- Shifted Item doctype website methods to Website Item
- Removed WebsiteGenerator from Item doctype
- Website Items in Homepage Products section
- Removed redundant code from item_group.py
- Fix: Item field filters won’t appear in website
2021-10-12 16:03:19 +05:30
Chillar Anand
915b34391c
chore: Clean up imports ( #27302 )
...
* chore: Added isort to pre-commit config
* chore: Sort imports with isort
* chore: Clean up imports with pycln
* chore: Sort imports with isort
* chore: Fix import issues
* chore: Clean up sider issues
* chore: Remove import errors from flake8 ignore list
* chore: Clean up lint issues
2021-09-02 16:44:59 +05:30
Ankush Menat
4551d7d602
chore: mass trailing whitespace and EOF fixes
2021-08-19 13:43:28 +05:30
Ankush Menat
9178d95cca
fix: can not create item variants ( #25433 )
...
* fix: item_code assigned to function returning None
* fix: ignore has_variants and attributes in variant
* fix: patch to remove has_variants and attributes
* chore: fix whitespace in translation
2021-04-26 15:37:17 +05:30
marination
91dfd000ed
fix: Typo
2020-06-17 19:05:40 +05:30
marination
0df7f0fe9d
fix: Misleading Error message for Item Attribute.
2020-06-01 11:56:33 +05:30
Rucha Mahabal
c6b548b5b2
fix(Stock): item variant description ( #19134 )
2019-09-24 19:17:13 +05:30
Shivam Mishra
7dedd9a8cd
refactor: better error message when changing variant value ( #18144 )
2019-07-03 17:29:29 +05:30
Anurag Mishra
841d852f41
refactor: added missing translation functions ( #18143 )
...
* fix: Translating Error and Messages
* Update erpnext/controllers/item_variant.py
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com >
* Update erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com >
2019-07-03 15:15:08 +05:30
Nabin Hait
34c551d9a5
fix: Missing commits from hotfix branch ( #17997 )
...
* fix: merge conflict
* fix: restored missing set_gst_state_and_state_number function
* fix: style linting as per codacy
* fix: Fixes related to customer/lead merging
* fix: merge conflict
* fix: Fixes related to customer/lead merging
* fix: Assign isue/opportunity to user
* fix: Assign isue/opportunity to user
* fix: Replaced Invoice type by GST Category
* fix: merge conflict
* fix: merge conflict
* fix: test cases
* fix: test cases
2019-07-03 10:34:31 +05:30
Anurag Mishra
62d58acea9
fix: Added description if item variants does not have description in map(v12) ( #17796 )
...
* fix: variant item description based on attribute
* style: removed unwanted changes
2019-05-30 14:04:08 +05:30
Faris Ansari
ab14892fc5
fix: Variant naming if optional attributes
2019-05-03 13:57:20 +05:30
Faris Ansari
cb03bb1c00
fix: Allow variant attributes to be optional
2019-05-03 13:41:50 +05:30
Frappe Bot
e415cce1a9
Merge branch 'staging' into develop
2019-01-23 08:19:00 +00:00
Aditya Hase
f79937d64b
style: Remove unused imports
2019-01-23 00:28:37 +05:30
Suraj Shetty
bfc195dd8b
Changes to support refactor in frappe pg-poc branch ( #15287 )
...
* Remove quotes from sql to make it compatible with postgres as well
* Fix queries
- Replace mysql specifc queries with standard ones
* Make repo URL chages to test pg-poc
* Add root passowrd to test site config
* Fix quotes issue
* Remove debug flag from a pricing rule query
* Remove python 3.6 version from travis.yml
* Fix improper query issue
* Fix incorrect query
* Fix a query
- This fix need to be changed when we will start supporting postgres
since date_format is not supported by postgres
* Get price list map as dict
* Convert price_list_currency_map to dict
2018-09-21 10:20:52 +05:30
Charles-Henri Decultot
bd06a5b0ee
Small python 3 compatibility correction ( #15151 )
2018-08-16 10:32:49 +05:30
Rushabh Mehta
8705371ef0
fix(product-listing): fix variant selection in website
2018-08-16 09:22:45 +05:30
Saurabh
1cfcf70905
Resolved merge conflicts
2018-07-06 13:18:44 +05:30
Ameya Shenoy
935f4a474b
Prevent creation of more than 500 item variants ( #14790 )
2018-07-03 10:48:59 +05:30
Rohit Waghchaure
0eef3f665d
[Fix] Travis for stock entry
2018-06-13 13:06:25 +05:30
hiousi
38de994788
do not copy template description to variant if not in allow fields ( #13726 )
2018-04-24 12:10:45 +05:30
Nabin Hait
5e63c265db
Fixed merge conflict
2018-03-09 17:34:39 +05:30
Vishal Dhayagude
668ec25d19
Allow Item variant Rename ( #13161 )
...
* [WIP] Item varient rename
* [wip] Item Variant
* [fix] Item Varient Rename
* [fix] Item Attribution Rename
* removed unwanted code
2018-03-07 15:31:08 +05:30
Achilles Rasquinha
1697a7aa81
replaced string_types with basestring
2018-02-15 11:39:45 +05:30
Achilles Rasquinha
56b2e12af8
Python 3 fixes [merge asap] ( #12884 )
...
* Python 3 fixes
* fixed compare
2018-02-13 14:42:40 +05:30
Nabin Hait
9771b9376d
Merge branch 'master' into develop
2017-12-15 12:53:56 +05:30
Nabin Hait
aaf378e340
Validate numeric attribute value based on range defined in template ( #11981 )
2017-12-13 18:40:52 +05:30
Prateeksha Singh
8f43d2514c
Multiple variant creation dialog ( #11608 )
...
* Multiple variant creation dialog
* variant dialog codacy fixes
* [multiple variants] show_alert, and other minors
2017-11-16 18:06:26 +05:30
Rushabh Mehta
d5c6416d91
[new feature] Product Configurator (via Item Quick Entry) ( #11535 )
...
* [Feature] Item Variant Creation from Quick Entry
* [minor] formatted js
* [minor] set 3 attribute per page instead of 5 in template
* [fix] fixed codecy issue
* [fix] label translation
* [minor] changed trigger event of item template
* [fix] moved item ui tests under stock
* [UI test] added test for item attribute
* [UI test] added test for creation of item variant from quick entry
* [fix] item variant ui test fixes
* [wip]
* [cleanup] item quick entry
* [remove] tests, fixtures were missing
* [refactor] use set_only_once in item
2017-11-14 15:27:28 +05:30
Nabin Hait
82c9352d53
Update variant description based on attribute if not already there ( #11302 )
2017-10-25 11:46:20 +05:30
Saurabh
a7d5f94d4a
[fix] Do not append description to variant if description already exists ( #11204 )
2017-10-18 16:02:08 +05:30
Rushabh Mehta
912ae24ca2
Merge branch 'master' into develop
2017-09-29 16:22:02 +05:30