Hi,
I solved that by adding this : "account_ids.sort()" in class
GeneralLegder(Report) after the line "account_ids =
account_id2lines.keys()"
In fact, the function "keys" seems to sort randomly the elements. That
is why we need to sort it again.

Fares

On 2 avr, 20:56, Bram <[email protected]> wrote:
> On 23 mrt, 22:58, Cédric Krier <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > On 22/03/11 09:19 -0700, Bram wrote:
>
> > > Hello,
>
> > > I have two questions about reports.
>
> > > For a start I notice a strange behavior of the trail_balance report.
> > > Selecting a fiscal year with no period specification it report from
> > > period 3 to period 2. It has 13 periods; 12 regular and 1 adjustment.
> > > And more important the debit and credits have an unexpected outcome!
> > > Selecting period 1 to 13 it report from 3 to 13! With different debits
> > > and credits in comparison to the first report (and the numbers
> > > according to the client). I checked the dates of the periods. And
> > > period 1 and 2 are not empty. What is happening?
>
> > This is strange, I suspect issue in the dates of periods but could you fill 
> > an
> > issue inhttps://bugs.tryton.org/withthe values of every periods?
>
> Done
>
>
>
> > > Second I tried the general_ledger report and noticed the accounts are
> > > (probably) ordered by their unique ID. It who'd be nice if the where
> > > ordered by their code. How do I do that?
>
> > They are ordered by: code ASC, id ASC
>
> Well I get a report sorted:
> 1801
> 1802
> 8400
> 1300
> 9200
>
> Where I had expected
> 1801
> 1802
> 1300
> 8400
> 9200
>
> Bram

-- 
[email protected] mailing list

Reply via email to