On 26/04/10 15:32 -0500, Gustavo Andrés Angulo wrote:
> 
> 
> Hi, I review the analytic_account module and the analytic line is 
> related to account moves (account.move.line), and this movement is 
> related to the account(account.account) , but the analytic line is 
> not related with the account, so if I want generate a report for 
> account with the analytic lines or a char of account by analytic account, 
> I see it is difficult to generate a report like this, because always
> involves the movement of account, My suggestion is to put a field Many2One
> on the analytic lines(analytic_account.line) to account to facilitate 
> this reports. This Field should have the same value in the movement account.

It is never good to duplicate information.
I don't see the difficulty here, you have almost direct access to the account
from analytic lines:

    analytic_line.move_line.account.id

> I would like to help me to find the best way to generate such reports, in [1]
> There are some reports of this kind

You can search for analytic lines that are linked to a specific account
directly with the ORM of Tryton. Tryton can make real join on the fly (not
like OpenERP :-)

    [('move_line.account', '=', <account id>)]

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpRrTPsV3J6h.pgp
Description: PGP signature

Reply via email to