Report Webkit
Partner/community days presentation




                Camptocamp / 13. avril 2011 / www.camptocamp.com / info@camptocamp.com
History of Report Webkit

         First we have report workshop in community days 2010
                     Then we have the opportunity...
History of Report Webkit

         Ok, so let me talk about a last
         detail. The printing of invoices.
History of Report Webkit

         First,
         We are going to have resellers.
         They should be able to have unique
         style and header on invoices.
         They should be able to customize
         design easily.
History of Report Webkit

         Second,
         We have to print payment slip.
         With or without background
         or formatted for easy copy paste.
         And some time we do not want
         payment slip.
         Simple isn’t it...
History of Report Webkit

         We may also want to insert
         commercials strips from our server.

         I heard that OpenERP has a DMS.
         It would be nice to have invoices
         in it.
History of Report Webkit

         Oh and more than 100’000 monthly
         invoices have to be printed in one night.
History of Report Webkit

         Is it OKAY for you.

         Can you do it ?
History of Report Webkit


             Of course, no problem!




                        Agrrr
History of Report Webkit




      Thus was born Report Webkit
Overview
Multi header report

HTML/CSS based

Javascript support (if you dare)

Mako template based

Integrated

wkhtml2pdf >= 1.0 (please use stable release)

Render PDF or HTML (for HTML fix pending)
Data structure
                    HeaderHTML                                     Company
                 ir.header_webkit                                res.company
//Implicit relation filed                              //Absolute Path to wkhtmltopdd lib
+company_id                                      0..1 +lib_path
//HTML definition of header                   *
+html
//HTML definition of footer
+footer_html
//Report CSS (Does not apply to header)
+css
+name
+margin_* (top, bottom, left, right)
+orientation [landscape, portrait]
+format [A0..Tabloïd]
                               0..1



                                      *
                                              ReportXML
                                        ir.actions.report.xml
                 //Implicit relation field !! property fields allows global header
                 +webkit_header
                 //HTML raw input
                 +webkit_debug
                 //Embedded HTML if report created in client
                 +report_webkit_data
                 //Report type set to webkit for WebKit
                 +report_type
                 //Path to mako file
                 +report_file
                 //Activate header or not
                 +header
How to Demo

1. Set absoute lib path to wkhtml2pdf
How to Demo

2. Find the correct menu
How to Demo
                         Osv model            Report type
                         (_name)              (webkit)
3. Create a new report




                                     HTML header




                                          Mako syntax
                                          report body
How to Demo

3. Create a new report:
You can deactivate header




3. Create a new report:
You can set a file instead of DB data
How to Demo

4. You can add a print button




OR
You can do it with XML (no need to add button)

<report
   auto="False"
   id="any_text"
   model="any_open_erp_ovs_name"
   name="any_text"
   file="Path to file"
   string="Text of the button"
   report_type="webkit"/>
More complex samples



             report_webkit_sample

              l10n_ch bvr report
TODO
Fix utf8
   OpenERP have a look at : https://code.launchpad.net/~c2c/openobject-
addons/6.0_report_webkit_utf8_support/+merge/56716

   !! wkhtml 1.0 only


Add helpers to acces header

Fix menu and acces rights

Provide a WYSIWYG edit tool based on Komposer or equivalent.
               (Any suggestions are welcome)
Contact
Camptocamp SA
PSE A – Parc Scientifique EPFL
1015 Lausanne, Suisse

Camptocamp France SAS
Savoie Technolac
48 avenue du Lac du Bourget
73372 Le Bourget du Lac, France

www.camptocamp.com


Nicolas Bessi, Technical director

Tél : +41 21 619 10 04 (CH), +33 479 44 44 95 (FR)
E-mail : info@camptocamp.com

   20

More Related Content

PPTX
My 70-480 HTML5 certification learning
PDF
OpenERP Technical Memento
PPT
Presentación DENODO EXPOCONTACT 2011
PPTX
Trabajo de parto
PDF
110727 ii estudio el sector financiero reputacion en el mundo ok copia
PPTX
Hotel Rural El Duende del Chafaril. Cáceres.
PDF
Grupo arlex munoz1
PDF
Estoy desesperado
My 70-480 HTML5 certification learning
OpenERP Technical Memento
Presentación DENODO EXPOCONTACT 2011
Trabajo de parto
110727 ii estudio el sector financiero reputacion en el mundo ok copia
Hotel Rural El Duende del Chafaril. Cáceres.
Grupo arlex munoz1
Estoy desesperado

Viewers also liked (20)

PDF
Allenamento mensile dicembre
ODP
Monarquia
DOCX
Diversidad cultural de tijuana1
PPTX
PraxisPlus - fogorvos marketing, praxismenedzsment
PDF
Neue BILD der FRAU-Studie: Der Mann 2013 – Arbeits- und Lebenswelten – Wunsch...
PDF
LogMeIn Boston HQs
PPT
Internet: Desarrollo De Una Presentacion
PPT
Internet
PDF
Memoria 2011
PDF
Lista de Precios Mayak'ab Enero 2014
PPTX
Nordic Sugcon xdb crash course
PPTX
Expo pára exponer
PDF
Keynote: "Prozessmanagement im Spannungsfeld von Kontinuität und disruptivem ...
PDF
COMERCIO ELECTRONICO MODALIDADES Y `PRINCIPIOS
PPTX
Flipped Classroom ed EAS
PDF
Triptico identidad
ODP
Tema 8: La medida de longitud
PDF
Das iPad sicher im Unternehmen einsetzen
PPT
2015 16 ap french language and culture workshop ppt
 
DOCX
Cattell y eysenck
Allenamento mensile dicembre
Monarquia
Diversidad cultural de tijuana1
PraxisPlus - fogorvos marketing, praxismenedzsment
Neue BILD der FRAU-Studie: Der Mann 2013 – Arbeits- und Lebenswelten – Wunsch...
LogMeIn Boston HQs
Internet: Desarrollo De Una Presentacion
Internet
Memoria 2011
Lista de Precios Mayak'ab Enero 2014
Nordic Sugcon xdb crash course
Expo pára exponer
Keynote: "Prozessmanagement im Spannungsfeld von Kontinuität und disruptivem ...
COMERCIO ELECTRONICO MODALIDADES Y `PRINCIPIOS
Flipped Classroom ed EAS
Triptico identidad
Tema 8: La medida de longitud
Das iPad sicher im Unternehmen einsetzen
2015 16 ap french language and culture workshop ppt
 
Cattell y eysenck
Ad

Similar to Camptocamp webkit (20)

DOCX
QWeb Report in odoo
PDF
DirectToWeb 2.0
PPTX
Week 2 HTML lists, hyperlinks, tables, and images
KEY
Master UX from design to prototype
PDF
Unit 06: The Web Application Extension for UML
DOC
Supporting Handout - The Mobile Web: keep up if you can!
PPTX
Making your site printable: WordCamp Buffalo 2013
PPTX
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
PDF
Frontend for developers
PPT
Hypertext presentation
PPTX
pracc III for presentation.pptx
PPTX
HTML 101
PPTX
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
PPT
TID Chapter 8 Web Page Development
PPT
Developing a Web Page
PDF
HTML_CSS02.pdf
PDF
Pm shandilya-s-wcodew-web-methodology
PDF
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
PPSX
Introduction to Html5
PPTX
Html5 Basic Structure
QWeb Report in odoo
DirectToWeb 2.0
Week 2 HTML lists, hyperlinks, tables, and images
Master UX from design to prototype
Unit 06: The Web Application Extension for UML
Supporting Handout - The Mobile Web: keep up if you can!
Making your site printable: WordCamp Buffalo 2013
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Frontend for developers
Hypertext presentation
pracc III for presentation.pptx
HTML 101
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
TID Chapter 8 Web Page Development
Developing a Web Page
HTML_CSS02.pdf
Pm shandilya-s-wcodew-web-methodology
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
Introduction to Html5
Html5 Basic Structure
Ad

More from Nico Tristan (18)

PDF
Nhomar Hernandez on Partnership
PDF
OpenERP Xavier Pansaers Sales Strategy
PDF
OpenERP Achievements 2010
PDF
OpenERP Vision Fabien Pinckaers
PDF
Framework workshop
PDF
Usability - Fabien Pinckaers
PDF
ADN generic payroll-france
PDF
Bhc asterisk
PDF
Akretion magento erp_connect
PDF
Bhc mobile
PDF
Bhc ocs inventory
PDF
Camptocamp maps open_e_rp.key
PDF
Sales wrokshop
PDF
Open net the eagle project
PDF
Payroll workshop
PDF
Syleam warehouse
PDF
Usability workshop
PDF
Akretion fleet maintenance
Nhomar Hernandez on Partnership
OpenERP Xavier Pansaers Sales Strategy
OpenERP Achievements 2010
OpenERP Vision Fabien Pinckaers
Framework workshop
Usability - Fabien Pinckaers
ADN generic payroll-france
Bhc asterisk
Akretion magento erp_connect
Bhc mobile
Bhc ocs inventory
Camptocamp maps open_e_rp.key
Sales wrokshop
Open net the eagle project
Payroll workshop
Syleam warehouse
Usability workshop
Akretion fleet maintenance

Camptocamp webkit

  • 1. Report Webkit Partner/community days presentation Camptocamp / 13. avril 2011 / www.camptocamp.com / info@camptocamp.com
  • 2. History of Report Webkit First we have report workshop in community days 2010 Then we have the opportunity...
  • 3. History of Report Webkit Ok, so let me talk about a last detail. The printing of invoices.
  • 4. History of Report Webkit First, We are going to have resellers. They should be able to have unique style and header on invoices. They should be able to customize design easily.
  • 5. History of Report Webkit Second, We have to print payment slip. With or without background or formatted for easy copy paste. And some time we do not want payment slip. Simple isn’t it...
  • 6. History of Report Webkit We may also want to insert commercials strips from our server. I heard that OpenERP has a DMS. It would be nice to have invoices in it.
  • 7. History of Report Webkit Oh and more than 100’000 monthly invoices have to be printed in one night.
  • 8. History of Report Webkit Is it OKAY for you. Can you do it ?
  • 9. History of Report Webkit Of course, no problem! Agrrr
  • 10. History of Report Webkit Thus was born Report Webkit
  • 11. Overview Multi header report HTML/CSS based Javascript support (if you dare) Mako template based Integrated wkhtml2pdf >= 1.0 (please use stable release) Render PDF or HTML (for HTML fix pending)
  • 12. Data structure HeaderHTML Company ir.header_webkit res.company //Implicit relation filed //Absolute Path to wkhtmltopdd lib +company_id 0..1 +lib_path //HTML definition of header * +html //HTML definition of footer +footer_html //Report CSS (Does not apply to header) +css +name +margin_* (top, bottom, left, right) +orientation [landscape, portrait] +format [A0..Tabloïd] 0..1 * ReportXML ir.actions.report.xml //Implicit relation field !! property fields allows global header +webkit_header //HTML raw input +webkit_debug //Embedded HTML if report created in client +report_webkit_data //Report type set to webkit for WebKit +report_type //Path to mako file +report_file //Activate header or not +header
  • 13. How to Demo 1. Set absoute lib path to wkhtml2pdf
  • 14. How to Demo 2. Find the correct menu
  • 15. How to Demo Osv model Report type (_name) (webkit) 3. Create a new report HTML header Mako syntax report body
  • 16. How to Demo 3. Create a new report: You can deactivate header 3. Create a new report: You can set a file instead of DB data
  • 17. How to Demo 4. You can add a print button OR You can do it with XML (no need to add button) <report auto="False" id="any_text" model="any_open_erp_ovs_name" name="any_text" file="Path to file" string="Text of the button" report_type="webkit"/>
  • 18. More complex samples report_webkit_sample l10n_ch bvr report
  • 19. TODO Fix utf8 OpenERP have a look at : https://code.launchpad.net/~c2c/openobject- addons/6.0_report_webkit_utf8_support/+merge/56716 !! wkhtml 1.0 only Add helpers to acces header Fix menu and acces rights Provide a WYSIWYG edit tool based on Komposer or equivalent. (Any suggestions are welcome)
  • 20. Contact Camptocamp SA PSE A – Parc Scientifique EPFL 1015 Lausanne, Suisse Camptocamp France SAS Savoie Technolac 48 avenue du Lac du Bourget 73372 Le Bourget du Lac, France www.camptocamp.com Nicolas Bessi, Technical director Tél : +41 21 619 10 04 (CH), +33 479 44 44 95 (FR) E-mail : info@camptocamp.com 20