On Jul 27, 2012, at 8:39 AM, zodman <[email protected]> wrote: > On Thu, Jul 26, 2012 at 9:04 PM, Sharoon Thomas > <[email protected]> wrote: >> On Jul 26, 2012, at 9:23 PM, zodman <[email protected]> wrote: >> >> Hi dudes. >> >> Im very happy because i left a tryton instalation on a small company >> on mexico. A year later the company contact me and said they used >> tryton as main erp process. >> >> Tryton can work on mexico company without problems...yey! >> >> >> This is great news! >> >> >> Except electronic invoice. >> >> The company needs txt file and write some data from invoice. Ok that >> not a problem. >> >> My question and problem is: >> >> if posible generate a txt file from invoice action? >> Or add a new report and export/convert to txt ? >> >> The txt file going to uploaded a 3th party service for generate a >> electronic invoice document. >> >> >> is the TXT file going to be a CSV ? > > It is a txt file. That is upload to other website for generate a > electronic document. > > >> Either way, we have a similar module for EDI to some legacy systems, which >> we wrote >> for a customer and it has a generic API over which we write multiple reports >> in >> different modules. I will try to extract the report generation part alone >> and put that out >> as a module today. >> >> Thanks, >> >> >> Sharoon Thomas >> Openlabs Technologies & Consulting (P) Limited >> >> w: http://www.openlabs.co.in >> m: +1 813.793.6736 (OPEN) Extn. 200 >> t: @sharoonthomas >> >> - We CARE for our customers >> >> -- >> [email protected] mailing list > > Today i can write the small module what only add a new report. > https://bitbucket.org/zodman/account_invoice_ati_report it is in progress > > -- > [email protected] mailing list
I have uploaded the code to github [1] There is no real documentation at the moment, other than this doc string [2]. Also attached is a gist of some sample reports written for a customer [3], from which i have removed sensitive custom information. That also means I havent tested it after removing the info. Consider it like an example. Hope it's useful for someone, [1] https://github.com/openlabs/tryton-csv-report [2] https://github.com/openlabs/tryton-csv-report/blob/master/csv_report_engine.py#L49 [3] https://gist.github.com/3186197 Thanks Sharoon Thomas Openlabs Technologies & Consulting (P) Limited w: http://www.openlabs.co.in m: +1 813.793.6736 (OPEN) Extn. 200 t: @sharoonthomas - We CARE for our customers -- [email protected] mailing list
