irc.libera.chat #tryton log beginning Mon Oct 9 12:10:01 AM CEST 2023 | ||
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton | 04:46 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 06:03 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:10 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:10 | |
-!- rpit(~rpit@p200300de471aba00d4d078d26a510e97.dip0.t-ipconnect.de) has joined #tryton | 07:08 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:31 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:48 | |
-!- udono(~udo@183-153-117-131.ip-addr.inexio.net) has joined #tryton | 07:58 | |
udono | nickbnf: hi, in header and footer is no sale object, because it is defined in body (for each="sale in records"… If you really need the sale variables in the header/footer you need to use tricks. | 08:28 |
---|---|---|
nickbnf | udono: hi! Right this is alo my problem. There is limitation of a current Tryton templation tool that cotexts of header/body/footer are totally disjunct. | 09:01 |
nickbnf | udono: and if we are talking about a real world multipage bookkeeping document, then it is mandatory to have a document reference on each page | 09:02 |
nickbnf | udono: otherwise there is no way, that e.g. you can later proove what quotation customer has signed | 09:03 |
nickbnf | udono: so alone this limitation sadly makes tryton not sutable in my case :( | 09:04 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:04 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 09:04 | |
nickbnf | udono: which is actually sad, bacause in general tryton architecture and extentionability are really good | 09:06 |
udono | nickbnf: That's a pity. Because many many other businesses are using Tryton with success. | 09:06 |
udono | nickbnf: one trick to move a body variable into the following header is, to set an odf variableon the page before which is used in the header. | 09:08 |
pokoli | cedk: about https://foss.heptapod.net/tryton/tryton/-/merge_requests/811 you added the migration for party_identifier models, but not from the account_payment_journal model | 09:12 |
cedk | pokoli: fill a bug | 09:13 |
pokoli | cedk: ok then but do not say: "It is not" when it is | 09:14 |
udono | nickbnf: Maybe you re-think the problem you are facing. You are asking a kind of document page control in Tryton. But this feature is provided by the text processor you use: (libre office, open office, weazyprint, Latex…) | 09:17 |
pokoli | done in: https://foss.heptapod.net/tryton/tryton/-/issues/12624 | 09:17 |
pokoli | nickbnf: there is the option to mark a template as single, so in case of multiple records multiple files are generated, each with its own header/footer | 09:19 |
pokoli | ACTION did not fully read the discussion but just giving move options to explore | 09:19 |
nickbnf | udono: it is a superposition of a tryton design decision and a text processor limitation | 09:20 |
nickbnf | udono: so tryton will call the same template with the same header/footer and potentially multiple bodies.... which is wired. And related to a text processor header/foooter/body are evaluated as separat documents, which makes it impossible to put any salary context based info in to header/footer in a reliable manner | 09:23 |
nickbnf | pokoli: sound like a possible option | 09:23 |
nickbnf | pokoli: may be you can describe more precise, how to mark reports as "single?" and to force tryton to generate multiple documents in a batch mode | 09:24 |
pokoli | nickbnf: the deafult invoice report is marked as single, you can print multiple records and it generates a zip with each file. You can test on the demo database | 09:24 |
pokoli | nickbnf: on the `ir.action.report` model, where the report is defined there is a `single` boolean field which activates this behaviour | 09:25 |
nickbnf | pokoli: so if one makes both "sale" and "invoice" Reports as single (through ir.action.report.single = true) they one can fully eleminated "for x in records", right? | 09:27 |
pokoli | nickbnf: yes, you can just work with the record variable and remove the for loop | 09:29 |
nickbnf | pokoli: and it will not break the reast functionality of tryton reporting? | 09:30 |
pokoli | nickbnf: no, it is a supported feature | 09:30 |
nickbnf | pokoli: thank you very much for your help! Looks like I am not alone struggling with an optimal report structure... | 09:31 |
pokoli | nickbnf: you are never alone here ;-) | 09:32 |
pokoli | Most of the time we face similar problems when implementing an ERP | 09:32 |
nickbnf | pokoli: May be you can help me with one more quetion :) Normally one have Offer->Quotation->Sale chain, but I was only able to find Quotation and Sale part and reports in Tryton | 09:32 |
nickbnf | pokoli: if problems as sumular, then why not to make more practical setup as default? | 09:33 |
pokoli | nickbnf: because it is impossible to cover all cases, so we just try to provide a base solution that can be extended to cover all cases | 09:34 |
pokoli | nickbnf: what is an offer for you and what makes it different from a quottation? For me they are both the same | 09:35 |
nickbnf | pokoli: at least here in germany, "Offer" it what you send if there is some tender or client interest | 09:37 |
nickbnf | pokoli: then if customer choose your offer you are discussing and sending Quotation, that also must be signed | 09:37 |
nickbnf | pokoli: and then it is time for an Invoice | 09:38 |
nickbnf | so without Offer you are unable most part of the time to make interresting deals | 09:38 |
pokoli | nickbnf: udono is also from germany so probably provide a better advice | 09:39 |
pokoli | but from tryton point of view there is not different between the offer or the quotation | 09:39 |
nickbnf | pokoli: thank you wery much for your help! Thanks to you I have finally got many questions aswered :) | 09:40 |
nickbnf | pokoli: so in Tryton there is only two stage sale possible? Quotation->Invoice | 09:40 |
udono | nickbnf: Tryton is optimized to be enhanced. If you would need more states in sale, you can add them with a custom module. | 09:44 |
pokoli | nickbnf: Did you have a look at the documentation? https://docs.tryton.org/projects/modules-sale/en/latest/usage/process.html#invoicing-a-sale | 09:44 |
udono | nickbnf: but maybe you can use the sale_opportunity module which provides the states before a sale quotation. | 09:44 |
nickbnf | udono: Hallo! sale_opportunity is actually something tha I was playing around, but it has no reporting | 09:45 |
nickbnf | pokoli: yes, but I could not find any "Offer" functionality in this article | 09:46 |
nickbnf | udono: so what its actually you way of creating an "Angebot" in tryton? | 09:47 |
udono | It is a quotation | 09:47 |
udono | in sale | 09:47 |
nickbnf | but "Quotation" is equal "Auftrag" not "Angebot" or am I wrong? | 09:48 |
udono | nickbnf: don't know https://www.linguee.de/englisch-deutsch/uebersetzung/sales+quotation.html | 09:50 |
nickbnf | udono: but if you look spesifc at Comm. Meaning with Leo: | 09:53 |
nickbnf | https://dict.leo.org/german-english/Angebot | 09:53 |
nickbnf | udono: Angebot ~ Quotation | 09:54 |
nickbnf | udono: https://dict.leo.org/german-english/Auftrag | 09:54 |
nickbnf | udono: Auftrag ~ Order | 09:54 |
nickbnf | udono: https://dict.leo.org/german-english/Rechnung | 09:54 |
nickbnf | udono: Rechnung ~ Invoice | 09:54 |
udono | nickbnf: no need to dump the internet here :-) | 09:55 |
nickbnf | udono: so one can say also say, the there is an "Angebot" there but no "Auftrag" which is also strange | 09:55 |
nickbnf | udono: in any way it feels like there is on missing step... | 09:56 |
nickbnf | udono: actually as pokoli has alread ment "sale_opportunity" looks promising, but there is sadly not report bound | 09:57 |
cedk | nickbnf: a quotation becomes an order when it is validated by the customer | 09:57 |
udono | nickbnf: No. There is one and only one sale. The sale is in state "draft", "quotation", "confirmed", "processing",… | 09:57 |
cedk | nickbnf: a quotation may be cancelled if the customer does not validate it | 09:57 |
nickbnf | cedk: so one can say that a (sale.sale.state == quotation) == "Offer" and (sale.sale.state == confirmed) == "Order"? | 10:00 |
udono | nickbnf: exactly | 10:00 |
nickbnf | udono: cedk: thank you together! Than I should change sale template accordingly | 10:01 |
nickbnf | Will give it a try to day evening | 10:01 |
pokoli | nickbnf: which kind of report did you need for sale_opportunity, the objective of the opportunity is to generate a sale which already has the report | 10:01 |
udono | nickbnf: yes. | 10:01 |
nickbnf | pokoli: I am just trying to implement Offer->Order->Invoice chain | 10:02 |
nickbnf | pokoli: and may be really sale.sale.state can be fine for both Offer and Order | 10:02 |
nickbnf | btw, is there is way to use LaTeX as a template language? | 10:03 |
nickbnf | have seen some montioning of this possibility but not shure if it is really possible? | 10:04 |
udono | nickbnf: Latex is not a supported report engine from the Tryton project. | 10:08 |
nickbnf | udono: so only odt? | 10:08 |
cedk | nickbnf: in standard we support OpenDocument and HTML as source template | 10:09 |
udono | nickbnf: There are reports in ODF, HTML, text and some other formats... | 10:09 |
cedk | nickbnf: but it is possible to extend and implement your own engine | 10:10 |
udono | nickbnf: BTW the output format for ODT can be changed to PDF, if you prefer this… | 10:19 |
udono | nickbnf: it is the Extension you can set on the report. E.g. https://demo6.8.tryton.org/#demo6.8/model/ir.action.report/305;name=%22Administration%20%2F%20User%20Interface%20%2F%20Actions%20%2F%20Reports%22&views=%5B22%2C23%5D | 10:21 |
nickbnf | udono: it was one of the first things that I have changed in my Tryton instance | 10:58 |
nickbnf | thank you all for a your help and your time! | 10:58 |
udono | nickbnf: welcome! | 10:58 |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 11:39 | |
-!- udono(~udo@183-153-117-131.ip-addr.inexio.net) has joined #tryton | 12:19 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:80ce:2c5a:d7ab:c265) has joined #tryton | 12:21 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 15:40 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 15:40 | |
-!- acaubet1(~Thunderbi@194.224.31.235) has joined #tryton | 16:09 | |
-!- rpit(~rpit@p200300c88f014b00916c021a475ed8af.dip0.t-ipconnect.de) has joined #tryton | 16:45 | |
-!- srgdts(~srgdts@user/srgdts) has joined #tryton | 19:38 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 20:43 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 20:43 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!