chat.freenode.net #tryton log beginning Tue Feb 26 00:00:01 CET 2019 | ||
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton | 23:20 | |
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton | 23:21 | |
-!- Pilou(~Pilou@rogoth.ir5.eu) has joined #tryton | 23:42 | |
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton | 23:42 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:52 | |
-!- yangoon1(~mathiasb@i59F524AA.versanet.de) has joined #tryton | 03:57 | |
-!- shadow98(uid236862@gateway/web/irccloud.com/x-grvhxlojkjuxljgr) has joined #tryton | 04:24 | |
-!- rpit(~rpit@p200300C88F30740035A4D8E8097CA1EE.dip0.t-ipconnect.de) has joined #tryton | 05:51 | |
-!- thaneor1(~lenovo3@r167-56-52-44.dialup.adsl.anteldata.net.uy) has joined #tryton | 05:52 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:39 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:44 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:52 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:53 | |
-!- nlopez73(8965d000@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.208.0) has joined #tryton | 08:19 | |
mrichez | hi, 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#l104 | 08:37 |
---|---|---|
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 08:55 | |
cedk | mrichez: well we delete them to be sure they are not reused | 09:10 |
mrichez | cedk: so i've to set my state and depend for new field when customizing | 09:11 |
mrichez | cedk: 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 a | 09:14 |
mrichez | fields.Display(fields.Many2One(.... | 09:14 |
-!- xcodinas(~xcodinas@134.ip-5-196-28.eu) has joined #tryton | 09:31 | |
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | 09:31 | |
pokoli | mrichez: that a clear case of a functional field | 09:45 |
pokoli | mrichez: if you want to update it on the client when the parent is set you can compute it by using an on_change_with function | 09:45 |
mrichez | pokoli: 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 |
pokoli | mrichez: so IIUC you use the parent value as default for children fields but you don't want to store it on the parent | 09:52 |
pokoli | is like this? | 09:52 |
mrichez | pokoli: yes | 09:52 |
pokoli | I'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 days | 09:53 |
mrichez | pokoli: with a function field, value is set with the getter, in my case i want user could select the value | 09:53 |
pokoli | mrichez: 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 |
pokoli | mrichez: with a setter method the field will be writable on client side like any other normall field | 09:54 |
pokoli | mrichez: indeed you can use this field to set the value of all children if you need it | 09:54 |
mrichez | pokoli: ok, thanks, will try this way :-) | 09:54 |
cedk | pokoli: I updated the ticket name | 10:05 |
pokoli | cedk: thank you | 10:08 |
-!- nlopez73(8965d000@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.208.0) has joined #tryton | 11:20 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 11:24 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 12:08 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 12:31 | |
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton | 12:45 | |
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton | 16:57 | |
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton | 17:55 | |
-!- mariomop(~quassel@host171.201-253-198.telecom.net.ar) has joined #tryton | 19:54 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 20:17 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 | |
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton | 21:43 | |
-!- thaneor(~lenovo3@179.26.21.86) has joined #tryton | 21:49 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:25 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!