IRC logs of #tryton for Tuesday, 2019-02-26

chat.freenode.net #tryton log beginning Tue Feb 26 00:00:01 CET 2019
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton23:20
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton23:21
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton23:42
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton23:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:52
-!- yangoon1(~mathiasb@i59F524AA.versanet.de) has joined #tryton03:57
-!- shadow98(uid236862@gateway/web/irccloud.com/x-grvhxlojkjuxljgr) has joined #tryton04:24
-!- rpit(~rpit@p200300C88F30740035A4D8E8097CA1EE.dip0.t-ipconnect.de) has joined #tryton05:51
-!- thaneor1(~lenovo3@r167-56-52-44.dialup.adsl.anteldata.net.uy) has joined #tryton05:52
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton07:39
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:52
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:53
-!- nlopez73(8965d000@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.208.0) has joined #tryton08:19
mrichezhi, i'm customizing a module and wondering if have to redeclare internal variable from the class or there's a way to reuse. For instance in the class PurchaseRequisition there's a variable _states and a variable _depends : http://hg.tryton.org/modules/purchase_requisition/file/default/purchase.py#l10408:37
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:55
cedkmrichez: well we delete them to be sure they are not reused09:10
mrichezcedk: so i've to set my state and depend for new field when customizing09:11
mrichezcedk: another question... is there a way to have a field displayed but not stored in sql other than function field. I mean: in a model parent-children, there's a field on the children is often the same value, so each time i add a line i've to input this field... i thought about a field on the parent to select a default_value that could be set on the children lines... but the field on the parent is only for display purpose... like a09:14
mrichezfields.Display(fields.Many2One(....09:14
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton09:31
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton09:31
pokolimrichez: that a clear case of a functional field09:45
pokolimrichez: if you want to update it on the client when the parent is set you can compute it by using an on_change_with function09:45
mrichezpokoli: i thought about a functional field... but in my case i don't want to use the getter, this field would display a Many2One on party (so field is empty by default, then user can select a party) . Then this party will be used as default value on the lines (with an on_change_with). I did the thing by i had to do define a field.Many2One which is stored in database and i don't really need it.09:51
pokolimrichez: so IIUC you use the parent value as default for children fields but you don't want to store it on the parent09:52
pokoliis like this?09:52
mrichezpokoli: yes09:52
pokoliI'm reading the tum2019 webpage (http://www.tryton.org/events/tum2019) and I'm wondering if the conference price includes the lunch for the two days09:53
mrichezpokoli: with a function field, value is set with the getter, in my case i want user could select the value09:53
pokolimrichez: then you can use a functional field on the parent, which return the values of the chidlren, and add a setter that does nothing (does not store it)09:53
pokolimrichez: with a setter method the field will be writable on client side like any other normall field09:54
pokolimrichez: indeed you can use this field to set the value of all children if you need it09:54
mrichezpokoli: ok, thanks, will try this way :-)09:54
cedkpokoli: I updated the ticket name10:05
pokolicedk: thank you10:08
-!- nlopez73(8965d000@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.208.0) has joined #tryton11:20
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton11:24
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton12:08
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton12:31
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton12:45
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton16:57
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton17:55
-!- mariomop(~quassel@host171.201-253-198.telecom.net.ar) has joined #tryton19:54
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton20:17
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:00
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton21:43
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton21:49
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:25

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