https://github.com/akretion/odoo-py3o-report-templates
Sample reports (quotation, PO, picking, invoice...) for report_py3o
https://github.com/akretion/odoo-py3o-report-templates
odoo py3o quotations
Last synced: about 1 year ago
JSON representation
Sample reports (quotation, PO, picking, invoice...) for report_py3o
- Host: GitHub
- URL: https://github.com/akretion/odoo-py3o-report-templates
- Owner: akretion
- License: agpl-3.0
- Created: 2016-12-15T09:17:24.000Z (over 9 years ago)
- Default Branch: 16.0
- Last Pushed: 2025-01-30T02:35:53.000Z (over 1 year ago)
- Last Synced: 2025-04-09T22:17:45.659Z (about 1 year ago)
- Topics: odoo, py3o, quotations
- Language: Python
- Size: 4.69 MB
- Stars: 34
- Watchers: 24
- Forks: 37
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# odoo-py3o-sample-report
This repository groups modules that provide *py3o templates* for basic Odoo reports.
Dependencies:
=============
The py3o templates in this repository use the module [report_py3o](https://github.com/OCA/reporting-engine/tree/10.0/report_py3o) from the OCA [report-engine](https://github.com/OCA/reporting-engine) repository.
It requires the following Python dependencies:
````
pip install py3o.template
pip install py3o.formats
````
Templating with LibreOffice :
=============
[py3o.template](https://bitbucket.org/faide/py3o.template/overview) allows to create templates directly on [LibreOffice](http://www.libreoffice.org/), following the syntax available on the [py3o.template documentation](http://py3otemplate.readthedocs.io/en/latest/templating.html).
Tracking .odt business document evolution :
=============
There are 3 available options to track changes in your .odt template :
* Use the [Compare Document](https://help.libreoffice.org/Common/Compare_Document) native option in LibreOffice
* Extract the .xml of your two .odt documents and compare it with classic `git diff` or `gitk` tools. Be aware that the text on the header and the footer are located in a separate .xml file from the main text.
* Use classic `git diff` or `gitk` tools after converting the .odt binary files to plain text formats:
1. Install [odt2txt](https://github.com/dstosberg/odt2txt)
sudo apt-get update
sudo apt-get install odt2txt
2. Add `*.odt diff=odt` in your git attributes file `~/.config/git/attributes`, if you want to add this attribute on a global level configuration, creating a new `attributes` file if necessary.
If you want to add this attributes only on a project level configuration, add it in `/.gitattributes`.
3. In your global git config file `~/.gitconfig` add the reading option :
````
[diff "odt"]
textconv = odt2txt
binary = true
````
Writing py3o Format Functions in LibreOffice input-fields
=============
It is possible to write py3o format functions like `py3o://function="lang== ' '"` or `py3o://function="format_multiline_value()"` in LibreOffice *input-fields* instead of using the *hyperlink* method, using this [patch](https://bitbucket.org/faide/py3o.template/pull-requests/32/allow-to-use-libreoffice-input-fields-for/diff).
Authors:
========
- Copyright (C) 2015-TODAY Akretion (http://www.akretion.com).
- Alexis de Lattre
License:
========
AGPL-V3
(Work in progress)