Bug 400866

Summary: Unable to create new investment: "Stock account cannot be parent account"
Product: [Applications] kmymoney Reporter: lwilpan
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description lwilpan 2018-11-09 02:54:38 UTC
SUMMARY

When creating a new investment, regardless of options chosen, I receive the error "Unable to create all objects for the investment."  The Details are as follows:

Stock account cannot be parent account caugt in /var/tmp/portage/app-office/kmymoney-5.0.1-r2/work/kmymoney-5.0.1/kmymoney/mymoney/mymoneyfile.cpp:1059

STEPS TO REPRODUCE
1. Create a new institution, filling in all required values
2. Create a new investment account associated to the institution, filling in all required values
3. Create a new investment within the investment account, filling in all required values

OBSERVED RESULT

Once the "Finish" button is pressed on the investment account wizard, the above error appears.

EXPECTED RESULT

The investment should be created without an error.

SOFTWARE VERSIONS
KDE Plasma Version: 5.10.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION

I thought I had seen another bug filed on this that had already been resolved, but now I can't find it.
Comment 1 Thomas Baumgart 2019-07-03 16:35:57 UTC

*** This bug has been marked as a duplicate of bug 392477 ***