IRC logs of #tryton for Wednesday, 2021-03-10 #tryton log beginning Wed Mar 10 12:00:01 AM CET 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:03
-!- Hirschbeutel(janmittelw@gateway/shell/ has joined #tryton02:03
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton03:03
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton06:03
-!- CanCan(c5a1841c@ has joined #tryton06:03
-!- Timitos(~kpreisler@2001:a61:42d:c01:762b:62ff:fe84:ed7e) has joined #tryton08:03
-!- rpit( has joined #tryton08:03
-!- htgoebel( has joined #tryton08:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:03
-!- jcm(~jcm@ has joined #tryton09:03
-!- thaneor1( has joined #tryton11:03
-!- Hirschbeutel(janmittelw@gateway/shell/ has joined #tryton11:03
-!- mariomop(~quassel@ has joined #tryton12:03
-!- ludo2(~Thunderbi@ has joined #tryton12:03
-!- ludo2( has joined #tryton13:03
htgoebelI manages to implement a prototype for "delivery tour" (
htgoebelJust one think does not work as would like it to work:13:03
htgoebelWhen adding a "Station" to the list of "tours", this should show a search dialog so I can search existing "Stations" - much like when adding a Category to a Party.13:03
htgoebelI could not spot anything special in the resp. xml-and views-files.13:03
htgoebelAny hint?13:03
-!- ludo3(~Thunderbi@2001:912:1480:380::1) has joined #tryton14:03
-!- springwurm(~Springwur@ has joined #tryton14:03
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton14:03
pokolihtgoebel: I guess you are loking for a many2many field14:03
pokolihtgoebel: or a one2many field with many2many widget14:03
mrichezhi, how to generate a report directly in pdf ? I've installed libreoffice on server and changed extension of sale report to "Portable Document Format" (from Administration->UI->Actions->Reports) It still opens with libreoffice, should i add something in configuration file ?14:03
cedkmrichez: check the logs for error14:03
cedkmrichez: soffice may not be in the PATH14:03
htgoebelmrichez: To my experience you will only get a PDF for *new* reports. Existing ones will still be delivered as ODT.14:03
mrichezcedk: will check14:03
pokolihtgoebel: what do you understad as new reports?14:03
mrichezcedk: i had a problem with my soffice installation14:03
mrichezcedk: but still not working, got : Error: source file could not be loaded14:03
mrichez19364 140716251424512 [2021-03-10 13:36:36,653] ERROR fail to convert to pdf14:03
pokolimrichez: tryton saves the odt file in a temporary folder and calls soffice to perform the conversion on it14:03
mrichezpokoli: so it seems i have a problem with temporary folder14:03
pokolimrichez: in your case it seem the soffice fails to find the file14:03
mrichezpokoli: it is something that should be configured ?14:03
pokolimrichez: no, the file path is generated by trytond:
mrichezpokoli: indeed temp directory are there but empty14:03
-!- kwmiebach(sid16855@gateway/web/ has joined #tryton14:03
pokolimrichez: does the user running trytond have enought permissions to write on it?14:03
mrichezpokoli: will check14:03
mrichezpokoli: seems ok14:03
htgoebelpokoli: If I e.g. create an invoice *prior* to setting output extension to PDF, I'll get an ODT. Now when changing the output extension to PDF, I will still get an ODT for this invoice. PDFs are only generated for new invoices.15:03
htgoebelpokoli: This even happens when using the thick client and closing it between tries.15:03
htgoebelpokoli: This is what I experienced - anyhow, this might be server cache only.15:03
mrichezpokoli: got the error when lauching command in terminal15:03
mrichezpokoli: soffice --headless --convert-to pdf /tmp/trytond_9vso5ha7/delivery_note.fodt15:03
Timitoshtgoebel: this is because if you post an invoice the report gets stored in the filestore or in the database15:03
Timitosthe invoice gets stored on posting of the invoice15:03
htgoebeltimitos: This is what I assumed is happening15:03
pokolimrichez: could you save the file as odt and test soffice command with the path to the saved file?15:03
mrichezpokoli: same problem...15:03
pokolimrichez: which is the output of soffice?15:03
mrichezpokoli: Error: source file could not be loaded15:03
mrichezpokoli: will still investigate, should be a local problem not linked to tryton15:03
-!- udono( has joined #tryton15:03
mrichezpokoli: ok solved my problem, i made an install of libreoffice-core, because i don't need gui on server, but i need to install libreoffice-writer too15:03
mrichezeverything is ok now, thanks to all ! :-)15:03
pokolimrichez: you should install also calc, drand and impress if you use them as source document15:03
pokolimrichez: we have some tempaltes that are based on ods15:03
mrichezpokoli: i should install "libreoffice" even if i don't use gui, it would be easier :-)15:03
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton15:03
htgoebelpokoli: Re. Deliver-Tours: Using Many2Many view did the trick. Anyhow I lost "sequence ordered"-handles in this view - both with o2m and m2m field.16:03
htgoebelpokoli: Any trick to get it back?16:03
htgoebelpokoli: (Partially) answered here:
cedkACTION never had so much difficulties to contribute to a project than gtk16:03
-!- noosanon(uid489102@gateway/web/ has joined #tryton16:03
pokolihtgoebel: if you want the sequence you need the intermediate model, so you will lose the possibility to add multiple records like we do on Many2Many16:03
pokolicedk: they have a more complex contribution proces than us?16:03
cedkpokoli: I think it is mainly because they use GitLab (probably worse than github)16:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:03
htgoebelpokoli: I'm curious/confused: Which intermediate model?16:03
htgoebelWhen adding "sequence_ordered()" to a model, this model gets the sequence field. No intermediate model involved. Of course for many2many there is an intermediate model - which can not be sequenced since it has two directions.16:03
pokolihtgoebel: The intermediate model of the many2many field16:03
pokolihtgoebel: you can add a sequence there, but to show it on the client you will have to use a one2many widget16:03
pokolicedk: I tought gitlab workflow is the same as github :$16:03
pokoliwe use gitlab internally but we do not any of the git workflow16:03
htgoebelpokoli: Ah! This looks looks like it is solving my problem :-)16:03
htgoebelpokoli: Sadly it does not work: The sequence handles are there, but sequence is not saved :-(16:03
pokolihtgoebel: which widget/field are you using? Many2Many or One2Many?16:03
htgoebelpokoli: Field many2many, widget one2many - also tried wisdget many2many, but this does not even show the sequence-handles16:03
pokolihtgoebel: I do not think we support a many2many with one2many widget16:03
htgoebelpokoli: Beside of the seqnece it seams to work :-)16:03
pokolihtgoebel: why you need sequence?17:03
nicoehtgoebel: your O2M should point to the intermediate model. And yes it can be ordered.17:03
pokolinicoe: iiuc he wants a widget many2many not one2many17:03
nicoepokoli: than it's impossible17:03
pokolibut many2many does not allow to have a sequence. We may argue if this is something need at first tought I do not think so17:03
htgoebelpokoli: Since "Stations" on the "Tour" have to be approached in order :-)17:03
pokolihtgoebel: then you have to use a one2many field with a sequence on the relation/intermediate table17:03
pokolihtgoebel: using one2many will force you to have a many2one to the Station, so it will allow to search or create any record17:03
-!- htgoebel( has left #tryton17:03
-!- htgoebel( has joined #tryton17:03
htgoebelACTION accentailly closed the window :-( Now waiting for irclog to update17:03
htgoebelpokoli: I'll have another look at is the next days, when my timer permits. (Spare-time is up for today)17:03
htgoebelpokoli: Thx so far and have a nice evening17:03
-!- htgoebel( has left #tryton17:03
-!- noosanon(uid489102@gateway/web/ has joined #tryton22:03
-!- thaneor( has joined #tryton22:03

Generated by 2.16.0 by Marius Gedminas - find it at!