118.19

v 9.0 v 10.0 v 11.0 v 12.0 Third Party 180
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 858
Technical Name report_extend_bf
LicenseAGPL-3
Websitehttp://www.buildfish.com/
Versions 15.0 17.0 14.0 9.0 12.0 11.0 10.0 16.0 13.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 858
Technical Name report_extend_bf
LicenseAGPL-3
Websitehttp://www.buildfish.com/
Versions 15.0 17.0 14.0 9.0 12.0 11.0 10.0 16.0 13.0

Module support python 3.x

Is Easy an elegant and scalable solution to design reports using LibreOffice.

Export data all objects odoo to LibreOffice output files odt, pdf, doc, docx, ods, rtf.

File in.
File out [odt, pdf, doc, docx, ods, rtf]
Other example file in.
File out.

Ideal for creating contracts and other documents.

Report templates can be created directly in of following format:

*.odt Using the word processor LibreOffice

Example templates in module report_extend_bf_examples.

Note: LibreOffice (Version: 4.4.6.3 or better). tested with LibreOffice write version: 4.4.6.3 or 6.0 (Optional for create templates).

Example create report

Settings/Technical/Reporting/Reporting

Output formats:

  • ODF Text Document [.odt]
  • Portable Document Format [.pdf]
  • Microsoft Word 97/2000/XP [.doc]
  • Microsoft Office Open XML [.docx]
  • ODF Spreadsheet [.ods]
  • Microsoft Word Text Rich [.rtf]
If there are several records return an file compress.
Return file *.zip.

Now with preview of the document PDF

Template report

Preview report

http://localhost:8069/report/odt_to_x/template_name/id

Print format fields

To print the fields with their respective format put the prefix bf_ followed by the name of the field.

Show documentation technical

Documentation

Global Values & Icons

Value Name in report Description Out (Example)
user py3o.user.* Record res.users Defined by the user
company_id py3o.company_id.* Record res.company Defined by the user
lang py3o.lang Lang user login es
time py3o.time Function time
company_vat_label py3o.company_vat_label Company vat label TIN (Default TIN)
company_vat_label_full py3o.company_vat_label_full Concatenate Vat label + vat TIN: 32412423423
company_display_address py3o.company_display_address Field company.partner_id.display_address
with format LibreOffice
YourCompany
1725 Slough Ave.
Scranton PA 18540
United States
company_name py3o.company_name Company name YourCompany
company_footer_line py3o.company_footer_line Initials line dates & separate per tab. P. +1 555 123 8069 E. info@example.com W. http://www.example.com TIN: 32412423423
company_footer_line_break py3o.company_footer_line_break Initials dates & line break P. +1 555 123 8069
E. info@example.com
W. http://www.example.com
TIN: 32412423423
company_footer_line_icon py3o.company_footer_line_icon Line dates icons & separate per tab 📞 +1 555 123 8069 ✉ info@example.com 🌐 http://www.example.com TIN: 32412423423
company_footer_line_break_icon py3o.company_footer_line_break_icon Icons dates & line break 📞 +1 555 123 8069
✉ info@example.com
🌐 http://www.example.com
TIN: 32412423423
company_header py3o.company_header Company Tagline with format LibreOffice line break Header Company
company_footer py3o.company_footer Report Footer with format LibreOffice line break Footer Company
iphone py3o.iphone Icon phone 📞
imobile py3o.imobile Icon mobile 📱
iemail py3o.iemail Icon email
iwebsite py3o.iwebsite Icon website 🌐
imoney py3o.imoney Icon money 💰
idolar py3o.idolar Icon dolar 💵
ilabel py3o.ilabel Icon label 🏷
inote py3o.inote Icon note 🗈
iimg py3o.iimg Icon image 🖵
ilist py3o.ilist Icon list
iqty py3o.iqty Icon qty
ipushpin py3o.ipushpin Icon pushpin 📌
ioffice py3o.ioffice Icon office 🏢

Extra fields in res.partner

Field name Type field Description Out example Out example prefix bf_
(Out format report)
display_address Text Call function _display_address() China Export ChinaShanghai52 Chop Suey street 200000 China Export
ChinaShanghai52 Chop Suey street 200000
display_address_without_company Text Without company ChinaShanghai52 Chop Suey street 200000 ChinaShanghai52 Chop Suey street 200000
display_address_without_company_line Text Without company inline separate per | ChinaShanghai52 Chop Suey street 200000 ChinaShanghai52 Chop Suey street 200000
vat_label Char Vat label (Default TIN label) TIN TIN
vat_label_full Char Concatenate vat label + vat number TIN: 32412423423 =
data_line Text Line data initials P. +86 21 6484 5671 E. chinaexport@exm.com W. http://www.chinaexport.com/ =
data_line_break Text Line break data initials P. +86 21 6484 5671 E. chinaexport@exm.com W. http://www.chinaexport.com/ P. +86 21 6484 5671
E. chinaexport@exm.com
W. http://www.chinaexport.com/
data_line_icon Text Line data icons 📞 +86 21 6484 5671 ✉ chinaexport@exm.com 🌐 http://www.chinaexport.com/ =
data_line_break_icon Text Line break data icons 📞 +86 21 6484 5671 ✉ chinaexport@exm.com 🌐 http://www.chinaexport.com/ 📞 +86 21 6484 5671
✉ chinaexport@exm.com
🌐 http://www.chinaexport.com/
data_line_abbr Text Line data abbreviation Tel: +86 21 6484 5671 Mail: chinaexport@exm.com Web: http://www.chinaexport.com/ =
data_line_break_abbr Text Line break data abbreviation Tel: +86 21 6484 5671 Mail: chinaexport@exm.com Web: http://www.chinaexport.com/ Tel: +86 21 6484 5671
Mail: chinaexport@exm.com
Web: http://www.chinaexport.com/

Extra fields in res.company

Field name Type field Description Out example Out example prefix bf_
(Out format report)
display_address Text Call function _display_address() China Export ChinaShanghai52 Chop Suey street 200000 China Export
ChinaShanghai52 Chop Suey street 200000
display_address_without_company Text Without company ChinaShanghai52 Chop Suey street 200000 ChinaShanghai52 Chop Suey street 200000
display_address_without_company_line Text Without company inline separate per | ChinaShanghai52 Chop Suey street 200000 ChinaShanghai52 Chop Suey street 200000
vat_label Char Vat label (Default TIN label) TIN TIN
vat_label_full Char Concatenate vat label + vat number TIN: 32412423423 =
footer_line Text Line data initials P. +86 21 6484 5671 E. chinaexport@exm.com W. http://www.chinaexport.com/ =
footer_line_break Text Line break data initials P. +86 21 6484 5671 E. chinaexport@exm.com W. http://www.chinaexport.com/ P. +86 21 6484 5671
E. chinaexport@exm.com
W. http://www.chinaexport.com/
footer_line_icon Text Line data icons 📞 +86 21 6484 5671 ✉ chinaexport@exm.com 🌐 http://www.chinaexport.com/ =
footer_line_break_icon Text Line break data icons 📞 +86 21 6484 5671 ✉ chinaexport@exm.com 🌐 http://www.chinaexport.com/ 📞 +86 21 6484 5671
✉ chinaexport@exm.com
🌐 http://www.chinaexport.com/
footer_line_abbr Text Line data abbreviation Tel: +86 21 6484 5671 Mail: chinaexport@exm.com Web: http://www.chinaexport.com/ =
footer_line_break_abbr Text Line break data abbreviation Tel: +86 21 6484 5671 Mail: chinaexport@exm.com Web: http://www.chinaexport.com/ Tel: +86 21 6484 5671
Mail: chinaexport@exm.com
Web: http://www.chinaexport.com/

Contact us for support, consultation, customization

Contact by email

  • Repository demo template
  • Documentation py3otemplate

Install module in S.O. based Linux

  • Red Hat
  • Debian
  • Fedora
  • Mandriva
  • Ubuntu
  • OpenSUSE
  • Others linux distro.

Pre-Installation Requirements

  • Unoconv: Convert files to any format that supports LibreOffice. Website: Unoconv example install ubuntu O.S.

# apt-get install unoconv

Install py3o.template with python 3 support

py3o.template: An easy solution to design reports using OpenOffice, for basic templating (odt->odt and ods->ods only)

py3o.template is python3 ready. But, yes there is a but... alas!, you'll need to install a trunk version of Genshi.

pip3 install py3o.template==0.10.0

Supported output format combinations (Template -> Output):

  • odt -> odt (default)
  • odt -> pdf
  • odt -> doc
  • odt -> docx
  • odt -> pds
  • rtf -> rtf

Note

If the program unoconv default output will show in ODT format regardless of the output field you selected in the report is not installed.

  • Fully Supports Odoo Version 12.0 Community

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
Help Please
by
Kadir Taylan
on 2/11/20, 2:54 AM Confirmed Purchase

system ubuntu 18.04 install system # apt-get install unoconv subversion Install py3o.template with python 3 support py3o.template: An easy solution to design reports using OpenOffice, for basic templating (odt->odt and ods->ods only) Ref: py3o.template install Preferably install in this order: py3o.template is python3 ready. But, yes there is a but... alas!, you'll need to install a trunk version of Genshi. pip3 install py3o.template==0.9.12 Uninstall genshi pip3 uninstall genshi And we reinstall genshi svn checkout https://svn.edgewall.org/repos/genshi/trunk genshi_trunk cd genshi_trunk python3 setup.py build python3 setup.py install but i can't load the module anyway "Modül "report_extend_bf" yüklenemiyor. Sağlanamayan bağımlılık : No module named py3o.template"

Re: Help Please
by
David Jesús Peralta Buendia
on 2/11/20, 9:35 AM Author

For Odoo 12.0 Only install pip3 install py3o.template Regards


Need to install a dependent environment?
by
tianshneg wang
on 9/25/19, 4:48 AM Confirmed Purchase

odoo12 Enterprise Edition needs to install dependencies before installing this module?


Stand by? Odoo 12.0 Enterprise Edition
by
tianshneg wang
on 9/20/19, 10:03 PM Confirmed Purchase

Template Report This reporting tool supports Odoo 12.0 Enterprise Edition?


by
ekohariatmoko
on 5/2/19, 11:18 PM

Hi Build Fish, i buy your addons in odoo shop, but i dont know desgin template for add field libreoffice. you have tutorial link?? Thanx for your answer

Re:
by
David Jesús Peralta Buendia
on 5/3/19, 1:31 AM Author

Hello https://py3otemplate.readthedocs.io/en/latest/ preferably write to this email (info@buildfish.com) or generate a ticket Regards