Re: [tryton-dev] Generate General Balance Report and Income Statement

2018-06-27 Thread Josias Pérez
I want to create General Balance Reports like this [1]. 

Like I said, I have already created the report but I need ideas how to order 
the records. 

The logic is like this: 
1. Create a wizard to select fiscalyear and root account (similar when create a 
plan from template). 
2. Select the childs of these root account and display it in the correct order 
because the records are ordered by id or sequence or name, but not with the 
correct tree order (parent / child). 

I think this could be made recursive but I still working on that, any 
suggestion is welcome. 

You can see the module here [2]

[1] 
http://1.bp.blogspot.com/-ENe5ICLa_DM/Tcp42FzmpNI/AKM/LhRp0RUukbM/s1600/BALANCE+SHEET.png

[2] https://github.com/iehoshia/training_iesa/tree/master/account_report

El miércoles, 27 de junio de 2018, 8:03:04 (UTC-6), Sergi Almacellas Abellana 
escribió:
> El 27/06/18 a les 01:34, Josias Pérez ha escrit:
> > I have already created a report for account.account.type but I have doubts 
> > on how to order the data to print, I was thinking something like tree view 
> > but in a printed report, I will be perfect. 
> > 
> 
> Normally a report work with the selected records. So the user selects
> the records she wants to print and then the template is rendered for
> each one of.
> 
> In your case, you can include the type childs if interested.
> 
> BTW, Could you explain which report are you going to develop? Maybe it's
> interesting for other and can be included on account module.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/9e897912-c67c-435e-b7bb-e5b00e5d1943%40googlegroups.com.


Re: [tryton-dev] Generate General Balance Report and Income Statement

2018-06-27 Thread Sergi Almacellas Abellana
El 27/06/18 a les 01:34, Josias Pérez ha escrit:
> I have already created a report for account.account.type but I have doubts on 
> how to order the data to print, I was thinking something like tree view but 
> in a printed report, I will be perfect. 
> 

Normally a report work with the selected records. So the user selects
the records she wants to print and then the template is rendered for
each one of.

In your case, you can include the type childs if interested.

BTW, Could you explain which report are you going to develop? Maybe it's
interesting for other and can be included on account module.



-- 
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/41f61123-ab09-f158-84f5-661c0ebae687%40koolpi.com.


Re: [tryton-dev] Print from custom button

2018-06-27 Thread Cédric Krier
Hi,

On 2018-06-26 10:42, Josias Pérez wrote:
> I have a custom module with transitions controlled by buttons. In the last 
> transition I need that the active record is printed. I have already created a 
> report and it appear in the actions menu, but I want to print it with the 
> button. 

You must use the decorator button_action:
http://doc.tryton.org/4.8/trytond/doc/ref/models/models.html#trytond.model.ModelView.button_action
This will make the client launch the referenced action.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20180627064209.GH30646%40kei.


Re: [tryton-dev] Generate General Balance Report and Income Statement

2018-06-27 Thread Josias Pérez
I have already created a report for account.account.type but I have doubts on 
how to order the data to print, I was thinking something like tree view but in 
a printed report, I will be perfect. 

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/fa77cde9-3acd-4fe5-ab3a-c07845039402%40googlegroups.com.