IRC logs of #tryton for Saturday, 2016-02-06

chat.freenode.net #tryton log beginning Sat Feb 6 00:00:05 CET 2016
-!- JosDzG(~Thunderbi@189.148.161.75) has joined #tryton00:03
-!- smarro_(~sebastian@181.16.7.104) has joined #tryton00:11
-!- juanfe(~juanfe@181.143.145.58) has joined #tryton00:38
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:27
-!- chris____(~chris@105.227.121.153) has joined #tryton03:05
-!- chris____(~chris@105.227.121.153) has joined #tryton05:12
-!- kstenger1(~karla@r186-55-65-129.dialup.adsl.anteldata.net.uy) has joined #tryton05:22
-!- chris____(~chris@105.227.121.153) has joined #tryton07:29
-!- frispete_(~frispete@p54A908B0.dip0.t-ipconnect.de) has joined #tryton07:40
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton09:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:20
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton09:31
-!- leio(~leio@62.65.230.248) has joined #tryton09:31
-!- leio(~leio@gentoo/developer/leio) has joined #tryton09:31
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton10:42
csotelo__hello dear coders, I have a question about fields.Function, when I use this kind of field, the field is just calculated, no table field exists, right ( at least I have noticed that ) I have a table field wich one I need to be updated depending on otheyrs fields, if I used "Function" this field just convert into calculated, My question is, what will be the best way to do that or is possible to use on change with on fields.Numeric? thanks a lot12:48
cedkcsotelo__: if your field is purely a computation, use Function12:49
csotelo__cedk, but I need to store this caclculated value12:50
csotelo__calculated*12:50
cedkcsotelo__: why ?12:50
cedkcsotelo__: it will be duplicate information12:50
csotelo__well, the reason is, as a customer requirement, I need to do discounts, then I have been thinking the best way could be doing it on the invoice line, in order on no manipulate code, then, as invoice use unit price and amount on line to calculate taxes and total amount, I though the easiest way could be just adding two more fields, gross_unit_price and discount_percent, then. If the, gross_unit_price will be the real unit price, and the unit_price will12:53
csotelo__changed depending on discount percent, then no more changes in code will be nedded12:53
cedkcsotelo__: use sale_promotion12:54
csotelo__I am not using sales, cause.. wll is a non tipical behavior. It is for private health center, using gnu health, then a ptient after spend to much money they could go to the social service and ask for a dioscount on a surgery, if the medical doctor responsible say is ok, then the social service approve the discount12:56
csotelo__is something no usual12:56
cedkcsotelo__: what the point to change invoice12:57
cedkcsotelo__: put just the right unit price12:57
cedkand if needed put a description12:57
cedkinvoice is not for marketing12:58
csotelo__please and orry for this question, I just want to understand better, if I put the right unit price... how I could manage the financial moves, I think the moves must kep the unit price and the amout... or is no necesary..12:59
csotelo__well I need a way to manage this kind of discount on services12:59
csotelo__please, advice12:59
csotelo__that is the reason .. and the easiest way I have found on adding this two fields, one for keep the real unit price , but for finantial moves and calculations, update the unit price, the the invoice and taxes will continue as a normal incoice13:01
csotelo__Am I wrong? please advice13:01
csotelo__I am on tryton 3.4 with gnu health 2.813:02
aroncerocsotelo: I agree with cedk, invoice is not for marketing13:13
aroncerocsotelo: but if you need it, create other price field and discount field and modify the usual price field with on_change if some of these fields is modified13:15
-!- chris____(~chris@105.227.121.153) has joined #tryton13:42
csotelo__aroncero, I have done on that way...14:04
csotelo__I understand is no for marketin14:04
csotelo__What I want to avoid is to alter the finantial amounts14:05
csotelo__I mean, I have a product with unit price 100, then I apply a discount of 50%, then the final amount on the invoice will be based on the produt unit price with its discount14:06
csotelo__I am not really sure how is tryton managing it, but , in order on keeping real unit order and no modify code for calculation, I just add this two fields.. and worked for me14:07
csotelo__I just add an update on change, and the whole invoice use this value14:07
csotelo__no code changes, no extra changes14:07
cedkcsotelo__: just put 50 as unit price14:39
cedkcsotelo__: you don't need to store those marketing stuff on the invoice14:39
cedkespecially if you create the invoice base on other document14:39
csotelo__I also though that14:40
-!- nelek_(~nf@ip-83-134-57-177.dsl.scarlet.be) has joined #tryton14:54
-!- chris____(~chris@105.227.121.153) has joined #tryton15:08
-!- kstenger(~karla@r186-55-65-129.dialup.adsl.anteldata.net.uy) has joined #tryton15:09
fishbein137Are attachments supposed to be functional in sao? When I try to save a new attachment, I get 'The value "None" of field "Resource" on "Attachment" is not in the selection.' Maybe something is not correctly configured?16:07
cedkfishbein137: I think it is missing changeset a8bd4433dc4c of issue352516:11
cedkfishbein137: please fill an issue16:11
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton16:12
fishbein137cedk: Thank you, will do!16:21
-!- fishbein137(~chris@105.227.121.153) has joined #tryton16:42
-!- JosDzG(~Thunderbi@189.148.197.207) has joined #tryton17:12
-!- kstenger(~karla@r167-56-236-218.dialup.adsl.anteldata.net.uy) has joined #tryton17:21
-!- fishbein137(~chris@105.227.121.153) has joined #tryton18:07
cedkfishbein137: I did not see your report18:11
-!- VaticanCameos(~VaticanCa@182.68.173.188) has joined #tryton18:20
-!- nicoe(~nicoe@2a02:a03f:30b6:ee00:ee55:f9ff:fe7b:f7ac) has joined #tryton18:51
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton19:05
-!- nelek(~nf@unaffiliated/nelek) has joined #tryton19:07
-!- JosDzG(~Thunderbi@189.148.197.207) has joined #tryton19:11
-!- JosDzG(~Thunderbi@189.148.207.65) has joined #tryton19:45
-!- fishbein137(~chris@105.227.121.153) has joined #tryton19:46
-!- fishbein137(~chris@105.227.121.153) has joined #tryton19:52
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton20:22
-!- fishbein137(~chris@105.227.121.153) has joined #tryton21:57
-!- JosDzGx(~Thunderbi@189.148.207.65) has joined #tryton23:09
-!- fishbein137(~chris@105.227.121.153) has joined #tryton23:40

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!