-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
fix: Use get for conditionally available fields while setting missing values #29426
Conversation
… values - Due to custom field "supplier" and missing field "supplier_address", dot operator breaks - Make sure to use "get" instead of just dot operator if field is in some doctypes, not all
Skipping tests here, its a defensive fix |
Codecov Report
@@ Coverage Diff @@
## develop #29426 +/- ##
===========================================
- Coverage 57.99% 57.91% -0.08%
===========================================
Files 1091 1091
Lines 67868 67868
===========================================
- Hits 39357 39303 -54
- Misses 28511 28565 +54
|
Gave it some thought. One way to go about controlling what is triggered where is to have a clear map of fields and documents. |
@Mergifyio backport version-13-hotfix |
✅ Backports have been created
|
…-29426 fix: Use get for conditionally available fields while setting missing values (backport #29426)
To Replicate Issue:
supplier
in Material RequestIssue:
buying_controller > set_missing_values > get_party_details
Fix:
get
instead of just dot operator if field is in some doctypes and not allAmbiguity: