wizard_journal.py question

Asked by Joel Cabral

I have a question with the code in account/wizard/wizard_journal.py lines 59 to 63.

Why is it that the condition is "if not len(ids)". AFAIK this condition means if there is no ids then the condition is met. meaning if i dont have any entries in my journal a UserError will prompt saying that my period is already closed but if i have an entry on my journal on the period specified in the wizard it will open all my entries of the period I closed. Is this a bug or what?

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

If you closes the particular period of fiscal year then the wizard will not allow you to open the entries with the close period and prompt a warning message. So this is normal behavior not a bug. If you want to see the close period entries you can see by opening account move object form.

Thanks.

Revision history for this message
Joel Cabral (hephaestus) said :
#2

Thanks vra (openerp), that solved my question.