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 #tryton00:02
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton00:02
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton00:02
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton00:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:02
-!- yangoon1(~mathiasb@i59F524AA.versanet.de) has joined #tryton04:02
-!- shadow98(uid236862@gateway/web/irccloud.com/x-grvhxlojkjuxljgr) has joined #tryton05:02
-!- rpit(~rpit@p200300C88F30740035A4D8E8097CA1EE.dip0.t-ipconnect.de) has joined #tryton06:02
-!- thaneor1(~lenovo3@r167-56-52-44.dialup.adsl.anteldata.net.uy) has joined #tryton06:02
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton08:02
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:02
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:02
-!- nlopez73(8965d000@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.208.0) has joined #tryton09:02
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#l10409:02
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:02
cedkmrichez: well we delete them to be sure they are not reused10:02
mrichezcedk: so i've to set my state and depend for new field when customizing10:02
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 a10:02
mrichezfields.Display(fields.Many2One(....10:02
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton10:02
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton10:02
pokolimrichez: that a clear case of a functional field10:02
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 function10:02
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.10:02
pokolimrichez: so IIUC you use the parent value as default for children fields but you don't want to store it on the parent10:02
pokoliis like this?10:02
mrichezpokoli: yes10:02
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 days10:02
mrichezpokoli: with a function field, value is set with the getter, in my case i want user could select the value10:02
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)10:02
pokolimrichez: with a setter method the field will be writable on client side like any other normall field10:02
pokolimrichez: indeed you can use this field to set the value of all children if you need it10:02
mrichezpokoli: ok, thanks, will try this way :-)10:02
cedkpokoli: I updated the ticket name11:02
pokolicedk: thank you11:02
-!- nlopez73(8965d000@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.208.0) has joined #tryton12:02
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton12:02
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton13:02
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton13:02
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton13:02
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton17:02
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton18:02
-!- mariomop(~quassel@host171.201-253-198.telecom.net.ar) has joined #tryton20:02
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton21:02
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:02
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton22:02
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton22:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:02

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