IRC logs of #tryton for Friday, 2013-05-24

chat.freenode.net #tryton log beginning Fri May 24 00:00:01 CEST 2013
2013-05-24 03:24 -!- heg(~heg@dyn.144-85-177-195.dsl.vtx.ch) has left #tryton
2013-05-24 04:36 -!- iamnoob(~iamnoob@124.107.150.122) has left #tryton
2013-05-24 10:56 <iamnoob> hi, is it possible to create a report of 2 modules inside another module? im trying to do a summary report. is there a official module that is similar to this please?
2013-05-24 11:09 <cedk> iamnoob: what do you call a "module" ?
2013-05-24 11:13 <iamnoob> cedk: cant really get what you mean.. sorry i have this bad english..
2013-05-24 11:15 <cedk> iamnoob: you speak about module but for me it sounds strange because you want to make report on modules
2013-05-24 11:18 <iamnoob> cedk: ill try again to express myself.. --> in example..i got 2 modules 'named Breads' and 'Cakes' and there are records saved inside them, in the 3rd module .. i somehow need a many2many field which can contain records coming from those 2 modules.. soo when i create a report . i can get all the records i need.. my goal really is to be able to make a report that contains records from 2
2013-05-24 11:18 <iamnoob> modules... really sorry for my bad explaination..
2013-05-24 11:22 <iamnoob> to be more specific.. i need to create a report that will show all records saved from '1st module' and '2nd module' in a single report (or .odt file)
2013-05-24 11:23 <iamnoob> and the one creating it is the '3rd module' . this is what i got now. maybe i made a wrong approach on doing the job. but i was still hoping theres still a way.
2013-05-24 11:23 <udono> iamnoob: We usually use the term "module" to describe a container which includes Models, Views, Reports, Wizards, Workflows...
2013-05-24 11:24 <iamnoob> udone: thanks.. for the clear up. but what do i call the ones on the 'Modules Folder' inside trytond?
2013-05-24 11:24 <udono> iamnoob: so when you write 'Module' you meant 'Model' like account.invoice, product.product?
2013-05-24 11:25 <iamnoob> udono: yes.. that seems to be what i really ment.. the records stored on a Model..
2013-05-24 11:26 <iamnoob> udono: thanks for the clarification.. soo to revised my problem..
2013-05-24 11:27 <udono> iamnoob: so I understand you want to write a _Module_ which includes a _Report_ over many _Models_. Are the Models linked together by a relation field?
2013-05-24 11:28 <iamnoob> i got records from 2 models (i.e 'bakery.bread' and 'bakery.cakes' ) i need to create a report that can show records from both model.. and the one doing this will be the 3rd model 'bakery.cashier'
2013-05-24 11:28 <iamnoob> udono: yes thats what i really wanted to do
2013-05-24 11:29 <udono> iamnoob: are the different models linked together by one2one, one2many, many2one, many2many?
2013-05-24 11:31 <iamnoob> udono: umm actually from what i have now.. i got a one2many field.. and it return a value = (i.e ingridients) thats only what i got.. now from that one2many field.. i need to return all records that have that value..
2013-05-24 11:32 <iamnoob> udono: i made a python method to get the records needed from different models.. but the problem now for me is.. how to i show it in report.
2013-05-24 11:33 <udono> iamnoob: just look in the other reports, it is just a for-loop over the object.
2013-05-24 11:34 <udono> iamnoob: Take the invoice report for example. There you have a report over all invoices, each with their own party, lines, ...
2013-05-24 11:35 <udono> iamnoob: and do not forget to read http://doc.tryton.org/2.8/trytond/doc/topics/reports/index.html#topics-reports
2013-05-24 11:36 <iamnoob> udono: is it possible to create the report i needed if i dont have a models link together? lets say i have the records in a python-dictionary.. only needed to be put on the reports(.odt file) when i click print-reports
2013-05-24 11:38 <iamnoob> udono: thanks alot.. ill do the stuying. hopefully i can make what i needed
2013-05-24 11:39 <udono> iamnoob: Iam sure it should work.
2013-05-24 11:45 <iamnoob> udono: in lines_to_pay = fields.Function(fields.One2Many('account.move.line', None,
2013-05-24 11:45 <iamnoob> 'Lines to Pay'), 'get_lines_to_pay') does get_lines_to_pay auto populate the field? or just filter the records that will be avaible for selection? because i see its 'return res'
2013-05-24 11:47 <udono> iamnoob: it's a function field without setter method, so the result is read only.
2013-05-24 11:51 <iamnoob> udono: even w/o the states={'readonly':True} it will be read only?
2013-05-24 11:57 <udono> iamnoob: I think so.
2013-05-24 16:10 <oscar_> It is possible generate a just message user in a window similar raise_user_error, but for information user in any Tryton module
2013-05-24 16:14 <cedk> oscar_: what is "information" ?
2013-05-24 16:21 <oscar_> for example when a model to create some records (automatic) after to press button action, and model show this message "15 records or invoices was created!"
2013-05-24 16:26 <oscar_> cedk: because I am working in a new module/model that create many sales and invoices of one shoot from sale template.
2013-05-24 16:28 <oscar_> cedk_: Would be nice show te user the success of transaction and how many records was created, similar to "import and export data..."
2013-05-24 16:29 <cedk> oscar_: write a wizard
2013-05-24 16:29 <cedk> oscar_: or better just show the created records
2013-05-24 16:31 <oscar_> cedk: thanks.
2013-05-24 23:56 <sixela> 'lo
2013-05-24 23:56 <sixela> are there some demo data in tryton ?

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!