Giter Site home page Giter Site logo

devinhuang / odoo-py3o-report-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akretion/odoo-py3o-report-templates

0.0 0.0 0.0 3.55 MB

Sample reports (quotation, PO, picking, invoice...) for report_py3o

License: GNU Affero General Public License v3.0

Python 100.00%

odoo-py3o-report-templates's Introduction

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 from the OCA report-engine repository.

It requires the following Python dependencies:

pip install py3o.template
pip install py3o.formats

Templating with LibreOffice :

py3o.template allows to create templates directly on LibreOffice, following the syntax available on the py3o.template documentation.

Tracking .odt business document evolution :

There are 3 available options to track changes in your .odt template :

  • Use the 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 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 <your project dir>/.gitattributes.

    1. 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.

Authors:

License:

AGPL-V3

(Work in progress)

odoo-py3o-report-templates's People

Contributors

alexis-via avatar clementmbr avatar florian-dacosta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.