El 06/01/18 a les 12:59, Roei Erez ha escrit: > Hi Sergi, > > Appreciate your response and help. > I have a few more questions on this: > 1. Computing the ids: since this is a custom model for analytics and the > records don't really exist, so do I have to create some "fake" ids? Yes you have to generate the ids. Since you are grouping data, you can generate the id by combining the ids of the grouped records. Here you have some examples:
http://hg.tryton.org/modules/sale_opportunity/file/e18efbf79a26/opportunity.py#l678 > 2. I was looking here: http://demo4.4.tryton.org/ and what I need is the > Financial/Reporting/Balance Sheet report. To get like a grouped time per test > split by users. > > I looked at the source for this but it looks like they have actual records in > the database and I am looking to do it with table query without the need to > insert a record per test per user just for analytics. > Deeper looking I saw that the way to tell the client that it is an expanded > table is to use the field_childs on the treeview and then returns the child > ids in that field. The problem is that I don't have real records with ids, so > I wonder if there is and sample that I can look at. Tryton is based on ids, so you you have to generate the records with ids. -- 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/c09adfbf-025e-7675-58ff-30b2985ccc46%40koolpi.com.