IRC logs of #tryton for Monday, 2018-06-04

chat.freenode.net #tryton log beginning Mon Jun 4 00:00:01 CEST 2018
-!- smarro(~sebastian@2800:af0:1028:1c0b::5) has joined #tryton23:40
-!- yangoon1(~mathiasb@i59F71103.versanet.de) has joined #tryton02:34
-!- JanGB(~jan@x2f7f945.dyn.telefonica.de) has joined #tryton03:30
-!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton05:57
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:22
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:48
-!- JanGB(~jan@x2f7fbde.dyn.telefonica.de) has joined #tryton06:59
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:02
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton07:16
-!- thaneor1(~lenovo3@179.26.2.33) has joined #tryton07:52
pokolisisalp: we had some custom reporting action which computes the pipeline from sale_opportunity module07:53
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton07:56
-!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton08:06
-!- orphean(~Orphean@31.192.224.224) has joined #tryton08:10
-!- JanGB(~jan@x2f7f9e0.dyn.telefonica.de) has joined #tryton09:05
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:14
-!- JanGB1(~jan@nat3.hmt-leipzig.de) has joined #tryton09:34
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton10:19
-!- JanGB(~jan@nat3.hmt-leipzig.de) has joined #tryton10:23
-!- mariomop(~quassel@181.92.168.63) has joined #tryton11:15
sisalppokoli: thank you. I was thinking about a report under .ods format. Is it the way it was done ?12:55
cedksisalp: we do not do ods report, we prefer materialized report which can be exported in CSV is needed13:23
-!- smarro(~sebastian@190.105.87.138) has joined #tryton13:55
sisalpcedk: what is a materialized report ?14:16
sisalpcedk: I'd like Tryton to populate a report with calculations and graphs.14:18
pokolisisalp: a materialized report is a tryton model which computes the values, like the new sale reporting functionalities14:28
pokolisisalp: we used the materialized report instead of an ods report14:29
pokolisisalp: graphs can be exported as png from the client (not sure if it is implemented on sao)14:30
sisalppokoli: let's take the requirement : On a draft quotation, I need to present the list of past lines of quotations for the same customer, the list of lines of quotations for the same product in the same area with statuses like won/lost/waiting, the list of lines of quotations for the same supplier in the same area.  Then the user uses it to determine final price in the quotation after some simultations on the gross margin and maybe some negociation w14:40
sisalppokoli: this is why I thought a .ods would be elegant.14:41
pokolisisalp: we have a similar required as "past lines of the same customer" and we implemeted it by using a related that opens all the lines related to the customer of the sale14:43
pokolisisalp: If you want it on the same view, it can be computed as a function field on the view14:43
pokolisisalp: but relate provides filter options which was interesting for our use case14:44
sisalppokoli: for sure we can implement all this in views, but what is the benefit and how then to export all this to a spreadsheet ?14:47
sisalppokoli: in fact I don't need a spreadsheet, I need s simulation tool.14:50
sisalppokoli: so the user can tune prices on each line to get the optimal margin on the global offer.14:51
pokolisisalp: then it's a mather of adding the required parameters on the line and use an on_change to compute the final price14:51
sisalppokoli; I guess this would be uneasy on Tryton interface.14:52
sisalppokoli: the final price is not computed. It is set manually on each line to get the right profitability on the quote.14:53
pokolisisalp: it's hard to propose a solution without knowing the full picture but if all the information is available on tryton you can make the simulation on tryton for sure14:56
pokolisisalp: there is a module from zz to compute the margin: https://bitbucket.org/zikzakmedia/trytond-sale_margin/14:56
pokolisisalp: with this module you can adjust all the parameters on the lines and you will see the final margin on sale line14:57
pokolisisalp: so each simulation is a "version" of the quotation14:57
sisalppokoli: to say the least, I'm not convinced the customer has the right method to set his quotes. Therefore I was looking for a solution not to implement all that shitty process into Tryton.14:58
sisalppokoli: simulation is made manually to fix original prices in the quotation.14:59
sisalppokoli: it is done at draft step.14:59
sisalppokoli: and for example, he wants to calculate purchase costs from the sale price and the margin.15:02
pokolisisalp: why not trytin to get the right prices so there is no need to fix?15:03
pokolisisalp: purchase cost should normally be the product cost price (which is updated depending on the cost_price_method)15:04
pokolisisalp: it should be possible to compute this on a ods report if you want a simple solution15:05
sisalppokoli: for sure, this customer is not in a standard business. It is Oil and gas equipments, imported mostly from USA and sold world-wide, in a kind of big contracts through several local resellers. Purchase price is negociated case by case according to "commercial environment". If I understand correctly, their contracts are often based on a markup, not on a price list, so it is not a usual flow. I do think they should revisit their method to adapt 15:14
-!- JanGB(~jan@x2f7fb92.dyn.telefonica.de) has joined #tryton15:15
sisalppokoli: I'm not sure either a .ods is a so easy way. For example, how to map extracted data on rows and columns ?15:19
pokolisisalp: you can override the get_context function of the record to make any additional data avaialable on the context15:23
pokolisisalp: indeed you can query other datasources (for example a webservice) if required15:23
pokolis/function of the record/function of the report/15:23
sisalppokoli: my point is basic or I didn't catch your answer. In an .odt report I put <> markups at the right place and to get a list of lines, I iterate. On a spreadsheet, I can write my markup in a cell, but how to iterate on an area of cells ?15:33
pokolisisalp: I understood another thing sorry15:35
pokolisisalp: you can loop in a spreedsheed the same way you loop on a writer table: Using the previous row to indicate the loop objects and the next row to close the loop15:35
sisalppokoli: ok, excellent. I will test a bit. If it sounds feasable, then the customer may chooze Tryton, then a better design will discussed. I think I see the limits of this solution.  Thank you  for all.15:51
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton16:00
pokolisisalp: you're welcome and I hope your customer choses Tryton :P16:02
-!- plaes(~plaes@unaffiliated/amd) has joined #tryton16:25
-!- JanGB(~jan@x2f7fb92.dyn.telefonica.de) has joined #tryton18:04
-!- JanGB1(~jan@ipb218eec9.dynamic.kabel-deutschland.de) has joined #tryton18:13
plaesI remember seeing a plan to drop multiple-database support from trytond, but I cannot find this discussion/feature req anymore..19:11
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton19:39
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton19:40
andrespolitihello, why does a remote call with xmlrpc and proteus overwrites the context of the trytond server?19:41
-!- thaneor(~lenovo3@r179-25-187-7.dialup.adsl.anteldata.net.uy) has joined #tryton19:54
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton20:00

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!