The balance returned by model account.account is an aggregation of child accounts balances. It is not correct to use it to write fiscal year opening entries. For each account we need to get the real move lines that are directly associated to the account. Please see the patch attached
** Attachment added: "Fix fiscal year closing duplicate entries" https://bugs.launchpad.net/openobject-addons/+bug/588776/+attachment/1766211/+files/wizard_fiscalyear_close.py -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/588776 Title: Error when closing fiscal year Status in OpenObject Addons Modules: Confirmed Bug description: using 5.0.9 When closing a fiscal year (with the wizard_fisclayear_close.py module) onaccounts with balance deferal method , the balance can be taken in account two times if account are not set in a very specific way. example taken from the french account_plan 10 Type= View 101000 TYpe=Other Deferal=Balance 101300 type=Other Deferal=Balance The closing balance if 101300 shows 1000 and the closing balance of 101000 shows also 1000 (since it is the sum of what is into 101000 (0) and what is in 101300 (1000) WIth this configuration when closing the fiscal year an entry for both 101300 AND 101000 are created in the opening journal After the closing 101300 has a balance of 1000 but 101000 has a balance of 2000. To solve this beahviour just define 101000 as view type but the underlying problem is that you cannot pout entries in a parent account and children account with balance deferal modes. Maurice _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

