chat.freenode.net #tryton log beginning Wed Mar 10 12:00:01 AM CET 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:47 | |
-!- Hirschbeutel(janmittelw@gateway/shell/matrix.org/x-gykdzunmqzjcpqvc) has joined #tryton | 01:56 | |
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton | 02:10 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 05:54 | |
-!- CanCan(c5a1841c@197.161.132.28) has joined #tryton | 05:55 | |
-!- Timitos(~kpreisler@2001:a61:42d:c01:762b:62ff:fe84:ed7e) has joined #tryton | 07:14 | |
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton | 07:15 | |
-!- htgoebel(~hartmut@ppp-188-174-63-229.dynamic.mnet-online.de) has joined #tryton | 07:38 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:03 | |
-!- jcm(~jcm@78.194.214.1) has joined #tryton | 08:48 | |
-!- thaneor1(~ldlc6@r167-61-51-221.dialup.adsl.anteldata.net.uy) has joined #tryton | 10:01 | |
-!- Hirschbeutel(janmittelw@gateway/shell/matrix.org/x-nzzwzkkhagmpvwsw) has joined #tryton | 10:47 | |
-!- mariomop(~quassel@181.29.189.235) has joined #tryton | 11:04 | |
-!- ludo2(~Thunderbi@185.24.153.86) has joined #tryton | 11:08 | |
-!- ludo2(~Thunderbi@221.114.141.88.rev.sfr.net) has joined #tryton | 12:57 | |
htgoebel | Hi | 12:58 |
---|---|---|
htgoebel | I manages to implement a prototype for "delivery tour" (https://discuss.tryton.org/t//3862) | 12:58 |
htgoebel | Just one think does not work as would like it to work: | 12:58 |
htgoebel | When 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. | 12:58 |
htgoebel | I could not spot anything special in the resp. xml-and views-files. | 12:58 |
htgoebel | Any hint? | 12:58 |
-!- ludo3(~Thunderbi@2001:912:1480:380::1) has joined #tryton | 13:01 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 13:04 | |
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | 13:06 | |
pokoli | htgoebel: I guess you are loking for a many2many field | 13:06 |
pokoli | htgoebel: or a one2many field with many2many widget | 13:06 |
mrichez | hi, 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 ? | 13:19 |
cedk | mrichez: check the logs for error | 13:23 |
cedk | mrichez: soffice may not be in the PATH | 13:23 |
htgoebel | mrichez: To my experience you will only get a PDF for *new* reports. Existing ones will still be delivered as ODT. | 13:25 |
mrichez | cedk: will check | 13:25 |
pokoli | htgoebel: what do you understad as new reports? | 13:37 |
mrichez | cedk: i had a problem with my soffice installation | 13:37 |
mrichez | cedk: but still not working, got : Error: source file could not be loaded | 13:38 |
mrichez | 19364 140716251424512 [2021-03-10 13:36:36,653] ERROR trytond.report.report fail to convert sale.sale to pdf | 13:38 |
pokoli | mrichez: tryton saves the odt file in a temporary folder and calls soffice to perform the conversion on it | 13:50 |
mrichez | pokoli: so it seems i have a problem with temporary folder | 13:51 |
pokoli | mrichez: in your case it seem the soffice fails to find the file | 13:51 |
mrichez | pokoli: it is something that should be configured ? | 13:51 |
pokoli | mrichez: no, the file path is generated by trytond: https://hg.tryton.org/trytond/file/5797b992383d/trytond/report/report.py#l322 | 13:52 |
mrichez | pokoli: indeed temp directory are there but empty | 13:54 |
-!- kwmiebach(sid16855@gateway/web/irccloud.com/x-bygrmjfdalmubvnu) has joined #tryton | 13:54 | |
pokoli | mrichez: does the user running trytond have enought permissions to write on it? | 13:54 |
mrichez | pokoli: will check | 13:55 |
mrichez | pokoli: seems ok | 13:56 |
htgoebel | pokoli: 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. | 14:01 |
htgoebel | pokoli: This even happens when using the thick client and closing it between tries. | 14:01 |
htgoebel | pokoli: This is what I experienced - anyhow, this might be server cache only. | 14:01 |
mrichez | pokoli: got the error when lauching command in terminal | 14:02 |
mrichez | pokoli: soffice --headless --convert-to pdf /tmp/trytond_9vso5ha7/delivery_note.fodt | 14:02 |
Timitos | htgoebel: this is because if you post an invoice the report gets stored in the filestore or in the database | 14:02 |
Timitos | the invoice gets stored on posting of the invoice | 14:03 |
htgoebel | timitos: This is what I assumed is happening | 14:03 |
pokoli | mrichez: could you save the file as odt and test soffice command with the path to the saved file? | 14:04 |
mrichez | pokoli: same problem... | 14:09 |
pokoli | mrichez: which is the output of soffice? | 14:11 |
mrichez | pokoli: Error: source file could not be loaded | 14:11 |
mrichez | pokoli: will still investigate, should be a local problem not linked to tryton | 14:20 |
-!- udono(~udono@055-128-067-156.ip-addr.inexio.net) has joined #tryton | 14:24 | |
mrichez | pokoli: 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 too | 14:26 |
mrichez | everything is ok now, thanks to all ! :-) | 14:27 |
pokoli | mrichez: you should install also calc, drand and impress if you use them as source document | 14:37 |
pokoli | mrichez: we have some tempaltes that are based on ods | 14:37 |
mrichez | pokoli: i should install "libreoffice" even if i don't use gui, it would be easier :-) | 14:38 |
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton | 14:53 | |
htgoebel | pokoli: Re. Deliver-Tours: Using Many2Many view did the trick. Anyhow I lost "sequence ordered"-handles in this view - both with o2m and m2m field. | 15:08 |
htgoebel | pokoli: Any trick to get it back? | 15:08 |
htgoebel | pokoli: (Partially) answered here: https://discuss.tryton.org/t/sequence-in-many2many-table-e-g-sorting-in-a-many2many-field/1630/2 | 15:17 |
cedk | ACTION never had so much difficulties to contribute to a project than gtk | 15:19 |
-!- noosanon(uid489102@gateway/web/irccloud.com/x-bpjwatxhmyzllpop) has joined #tryton | 15:20 | |
pokoli | htgoebel: if you want the sequence you need the intermediate model, so you will lose the possibility to add multiple records like we do on Many2Many | 15:21 |
pokoli | cedk: they have a more complex contribution proces than us? | 15:21 |
cedk | pokoli: I think it is mainly because they use GitLab (probably worse than github) | 15:26 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 15:40 | |
htgoebel | pokoli: I'm curious/confused: Which intermediate model? | 15:44 |
htgoebel | When 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. | 15:44 |
pokoli | htgoebel: The intermediate model of the many2many field | 15:45 |
pokoli | htgoebel: you can add a sequence there, but to show it on the client you will have to use a one2many widget | 15:46 |
pokoli | cedk: I tought gitlab workflow is the same as github :$ | 15:46 |
pokoli | we use gitlab internally but we do not any of the git workflow | 15:46 |
htgoebel | pokoli: Ah! This looks looks like it is solving my problem :-) | 15:53 |
htgoebel | pokoli: Sadly it does not work: The sequence handles are there, but sequence is not saved :-( | 15:53 |
pokoli | htgoebel: which widget/field are you using? Many2Many or One2Many? | 15:53 |
htgoebel | pokoli: Field many2many, widget one2many - also tried wisdget many2many, but this does not even show the sequence-handles | 15:55 |
pokoli | htgoebel: I do not think we support a many2many with one2many widget | 15:58 |
htgoebel | pokoli: Beside of the seqnece it seams to work :-) | 15:59 |
pokoli | htgoebel: why you need sequence? | 16:00 |
nicoe | htgoebel: your O2M should point to the intermediate model. And yes it can be ordered. | 16:00 |
pokoli | nicoe: iiuc he wants a widget many2many not one2many | 16:00 |
nicoe | pokoli: than it's impossible | 16:01 |
nicoe | *then | 16:01 |
pokoli | but many2many does not allow to have a sequence. We may argue if this is something need at first tought I do not think so | 16:01 |
htgoebel | pokoli: Since "Stations" on the "Tour" have to be approached in order :-) | 16:01 |
pokoli | htgoebel: then you have to use a one2many field with a sequence on the relation/intermediate table | 16:02 |
pokoli | htgoebel: using one2many will force you to have a many2one to the Station, so it will allow to search or create any record | 16:03 |
-!- htgoebel(~hartmut@ppp-188-174-63-229.dynamic.mnet-online.de) has left #tryton | 16:03 | |
-!- htgoebel(~hartmut@ppp-188-174-63-229.dynamic.mnet-online.de) has joined #tryton | 16:03 | |
htgoebel | Ups | 16:04 |
htgoebel | ACTION accentailly closed the window :-( Now waiting for irclog to update | 16:06 |
htgoebel | pokoli: I'll have another look at is the next days, when my timer permits. (Spare-time is up for today) | 16:18 |
htgoebel | pokoli: Thx so far and have a nice evening | 16:18 |
-!- htgoebel(~hartmut@ppp-188-174-63-229.dynamic.mnet-online.de) has left #tryton | 16:46 | |
-!- noosanon(uid489102@gateway/web/irccloud.com/x-avlowvupwrabtqdm) has joined #tryton | 21:03 | |
-!- thaneor(~ldlc6@r167-61-196-123.dialup.adsl.anteldata.net.uy) has joined #tryton | 21:41 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!