Account period find method

Registered by Pedro Tarrafeta (Acysos)

The account period object has a find method which returns the current period for any specific date (defaults to current date). The method returns a list of ids (return ids) and this should be of lenght = 1 unless we have overlapping periods and thus a difficult beheviour to predict...
In fiscalyear find, the returned value is limited to the first element of the list (retun ids[0]).

Since the method is widely used change it to do the same things as fiscalyear find method could break things, but I think this should be fixed to return only 1 period when called.

Regards,
Pedro

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Fabien (Open ERP)

Related branches

Sprints

Whiteboard

Ok, but we may have multiple periods and fiscalyear that overlaps !
Example in multi-company environment. The main company may see the
periods of all others companies.

I checked fiscalyear find, and it's only used in default values of fiscal year report.
So I think it's better to not change this.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.