IRC logs of #tryton for Monday, 2023-06-12

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 #tryton05:07
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton06:18
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:45
-!- ChanServ changed mode/#tryton -> +o cedk 06:45
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton07:01
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton07:19
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton08:20
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton09:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:33
-!- ChanServ changed mode/#tryton -> +o cedk 10:33
-!- springwurm(~springwur@2a01:76c0:100:f500:3e1c:24fb:a53c:c803) has joined #tryton12:06
mrichezhi, 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
mrichezi 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
cedkmrichez: with a domain, you will get invalid records from the other fields13:25
cedkmrichez: you could use a filter13:26
cedkshipment does not use filter because the filter domain would vary depending on the configuration13:26
mrichezcedk: ok, and what is better between using a One2Many or a Function field ?13:27
mrichezcedk: see example here : https://pastebin.com/aPbKgr3m13:33
cedkmrichez: it is probably simpler and faster to use filter13:36
mrichezcedk: ok13:40
mrichezAbout domain on a field, when is it checked ?  Could the domain bypassed in a wizard ?13:41
cedkmrichez: it is check on storage13:43
mrichezcedk: ok13:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:21
-!- ChanServ changed mode/#tryton -> +o cedk 19:21
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21: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/!