Daily updates from Odoo
Tuesday, August 7, 2018
1 change
Resolved issues and error corrections
This fix ensures each company can only have one account marked for current year earnings. It prevents duplicate lines in accounting reports, making year-end results clearer and less confusing for users.
Original PR description
Description of the issue/feature this PR addresses: The account.type of 'data_unaffected_earnings' / Current Year Earnings is use to compute the result of the year in General Ledger. To compute this Odoo need only one account with type == 'data_unaffected_earnings'. Step to reproduce : - Create a company account char, by default you have the 999999 account - Create a second account with type : Current Year Earnings, code 999998 - Create your final entrie of the year with: ``` - account : 999998, debit = 1234 € - account : 120000, credit = 1234 € ``` - generate the report of the last year and you see : ``` - one line with 999999 account, because Odoo select one acccount (with limit = 1) - one line with 999998 account ``` In fact 999999 and 999998 are the same account, but the user see two. @fclementic2c Impact Version: 9.0/10/Master -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr