Comments (16)
It has been fixed several months ago, cf this commit:
https://bitbucket.org/faide/py3o.template/commits/bb6b837778526eb87c77ffe34b65f136411e3ab1
and with that line of code:
https://github.com/OCA/reporting-engine/blob/10.0/report_py3o/models/py3o_report.py#L244
where the escape_false=True has been added.
Are you sure you have up-to-date code for report_py3o and py3o.template ?
from reporting-engine.
Maybe your docker image is not up-to-date for py3o.template... it will work fine if you have py3o.template==0.9.11.
from reporting-engine.
@guewen Did you find the solution ? Can we close the bug ?
from reporting-engine.
Thanks for your fast answer!
You are right, this issue doesn't happen when the Local Fusion is enabled. I'm using the fusion server though. Which brings me to the next question: should we use the fusion server at all? I read it's recommended to use it but what are the reasons? Stability?
Any hint on how I could correct this issue when using the fusion server? (I had to apply #120 to be able to use the server).
Details of the versions:
version: '2'
services:
oooserver:
image: xcgd/libreoffice:latest
volumes:
- "data-py3o:/tmp"
py3orenderserver:
image: xcgd/py3oserver-docker:latest
depends_on:
- oooserver
ports:
- "8994:8994"
volumes:
- "data-py3o:/tmp"
py3ofusion:
image: xcgd/py3o.fusion:latest
depends_on:
- py3orenderserver
ports:
- "8765:8765"
odoo:
depends_on:
- py3ofusion
- py3orenderserver
volumes:
data-py3o:
Libraries in py3ofusion:
root@2af7cdf83e86:/# pip freeze
beautifulsoup4==4.4.1
chardet==2.3.0
constantly==15.1.0
Genshi==0.7
html5lib==0.999
incremental==16.10.1
lxml==3.6.4
py3o.formats==0.3
py3o.fusion==0.8.6
py3o.renderclient==0.2
py3o.template==0.9.11
py3o.types==0.1.1
pyf.splitter==3.1
pyf.station==2.0.5
pyf.transport==2.0.1
Pygments==2.1.3
pyjon.events==1.2
pyjon.utils==0.7
python-dateutil==2.6.0
simplejson==3.10.0
six==1.10.0
Twisted==16.6.0
zope.interface==4.3.2
Libraries in py3orenderserver
root@0c667e3369dc:/# pip freeze
constantly==15.1.0
incremental==16.10.1
JPype1==0.6.1
py3o.formats==0.3
py3o.renderers.juno==0.8
py3o.renderserver==0.5.1
pyf.splitter==3.1
pyf.station==2.0.5
pyf.transport==2.0.1
pyjon.events==1.2
pyjon.utils==0.7
python-dateutil==2.6.0
simplejson==3.10.0
six==1.10.0
Twisted==16.6.0
zope.interface==4.3.2
from reporting-engine.
Hi Guewen,
Fusion server is used for scalability because it offloads some of the work from Odoo and is extensible (not done yet) to use multiple libreoffice instances in parallel.
If you don't have a huge workload you don't really need it.
What docker image did you use? It may be possible that our fusion server image is was not yet updated to contain the latest changes from py3o.template
EDIT: I dit not see your detailed info about versions. You indeed used our fusion server image. This must be the issue. Would you mind proposing a PR to the py3o.fusion docker image repository that uses the needed versions?
from reporting-engine.
Thanks Florent. I put the details in the comment above (you can unroll the "Details"). I used the latest
images (but also tried with the versioned images but they have less recent libraries). The latest fusion image uses py3o.template==0.9.11
.
However, could it be that the fusion server does not set espace_false
to True when rendering (default being False)? (https://bitbucket.org/faide/py3o.fusion/src/40436176fc54399d762c3d5fec7e324cc6c3e9c1/py3o/fusion/formpage.py?at=default&fileviewer=file-view-default#formpage.py-397)
from reporting-engine.
@faide reading your edit, I'll check the libs versions
from reporting-engine.
@guewen good catch on the formpage.py l397, this must be it.
What would be the most sensible way to pass this option? I propose we change the input payload sent to the server to include this option...
from reporting-engine.
@faide proposal here:
py3ofusion: https://bitbucket.org/faide/py3o.fusion/pull-requests/1/add-templating-options-in-the-form/diff
report_py3o: #122
Let me know if I need to change anything.
from reporting-engine.
fusion PR is merged and released on Pypi
we now see we concerned people so that the docker image gets a stable 0.8.7 release will keep you posted ^^
from reporting-engine.
btw look at the py3o.fusion CONTRIBUTORS file and please feel free to amend the line about yourself (I did not put your email, because I did not know if you wanted to)
from reporting-engine.
fusion PR is merged and released on Pypi
we now see we concerned people so that the docker image gets a stable 0.8.7 release will keep you posted ^^
Yeah! Thanks
from reporting-engine.
thanks all! 🎆
from reporting-engine.
@guewen the docker image is released on docker hub!
from reporting-engine.
Thanks a lot, deploying it to our test server, I keep you updated
from reporting-engine.
Test successful with the image xcgd/py3o.fusion:0.8.7
and after having applied #120 and #122 :)
from reporting-engine.
Related Issues (20)
- report name referenced before assingment HOT 2
- [16.0]BI SQL EDITOR dependency HOT 4
- SQL DISTINCT HOT 1
- TypeError: this._super.apply(...).finally is not a function (report_xlsx Odoo 13) HOT 2
- [Odoo 16.5] ValueError: Module report_csv: invalid manifest HOT 6
- [14.0] report_py3o print error HOT 3
- [16.0] [BUG] report_routes with no docids
- report_py3o in Odoo.sh HOT 2
- [16.0] [BUG] report_substitute not working on email templates HOT 2
- [14] get_report_xlsx() missing 4 required positional arguments HOT 2
- [16.0]sql_request_abstract widget ACE causing Web issues HOT 7
- View Joining to "_unknown" Relation Error HOT 7
- Migration to version 17.0 HOT 14
- The font is changed to "Noto Sans CJK SC Regular" which is different from the font designed in the template file. HOT 1
- [14.0] BI SQL Editor - Materialize View Deleted After Odoo.sh Rebuild HOT 3
- Not able to use report_xlsx version 17.0 HOT 5
- Package odoo15-addon-report-xlsx not on Pipy HOT 3
- v16 Report specific watermark does not get pulled from duplicated report
- [16.0] report_xml: Support for attributes
- Extend module report_xlsx to use hand-made class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reporting-engine.