irc.libera.chat #tryton log beginning Mon Jun 12 12:10:01 AM CEST 2023 | ||
-!- springwurm(~springwur@2a01:76c0:100:f500:a1a3:c101:f781:4678) has joined #tryton | 05:07 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 06:18 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:35 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:45 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:45 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 07:01 | |
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton | 07:19 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 08:20 | |
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton | 09:42 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 10:33 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 10:33 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:3e1c:24fb:a53c:c803) has joined #tryton | 12:06 | |
mrichez | hi, in a model, i've a One2Many field. I would like to add another One2Many field with a domain on the same model than the first One2Many field. Is it better to define a One2Many with a domain, or using a function field getting values from the first One2Many ? | 13:17 |
---|---|---|
mrichez | i saw for moves in a shipment, there's a one2many for moves and a function field to get inventory_moves and incoming_moves using the field moves. What is the advantage to use a function instead of a One2many with a domain ? | 13:19 |
cedk | mrichez: with a domain, you will get invalid records from the other fields | 13:25 |
cedk | mrichez: you could use a filter | 13:26 |
cedk | shipment does not use filter because the filter domain would vary depending on the configuration | 13:26 |
mrichez | cedk: ok, and what is better between using a One2Many or a Function field ? | 13:27 |
mrichez | cedk: see example here : https://pastebin.com/aPbKgr3m | 13:33 |
cedk | mrichez: it is probably simpler and faster to use filter | 13:36 |
mrichez | cedk: ok | 13:40 |
mrichez | About domain on a field, when is it checked ? Could the domain bypassed in a wizard ? | 13:41 |
cedk | mrichez: it is check on storage | 13:43 |
mrichez | cedk: ok | 13:48 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 19:21 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 19:21 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:27 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 21:27 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!