IRC logs of #tryton for Friday, 2023-03-10

irc.libera.chat #tryton log beginning Fri Mar 10 12:10:01 AM CET 2023
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:03
-!- ChanServ changed mode/#tryton -> +o cedk 00:03
-!- springwurm(~springwur@5.104.149.54) has joined #tryton06:18
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:24
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:34
-!- ChanServ changed mode/#tryton -> +o cedk 07:34
-!- rpit(~rpit@a89-154-189-196.cpe.netcabo.pt) has joined #tryton08:21
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton08:23
mrichezhi, where can i find in database field's domain ? i update field's domain in a custo. I removed my custo but domain seems still active.10:09
pokolimrichez: you can not find in database but you can print on class __setup__ in custom module 11:38
mrichezpokoli: ok, this is strange because it seems domain is still applied, so i thought it was stored on database11:41
mrichezpokoli: my custo was : super(ShipmentInternal, cls).__setup__()11:41
mrichezcls.to_location.domain = ['OR', cls.to_location.domain, ('type', '=', 'customer'), ]11:41
mrichezpokoli: i remove the custo, but i can still add a customer location on internal shipment11:41
pokolimrichez: did you have stock_consignment module? IIRC this module adds such domain11:42
mrichezpokoli: oh; indeed stock_consignment is activated .. thanks for solution :-)11:44
pokoliyou're welcome :-)12:01
mrichezhi, python question about this method: https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/product/product.py#L23413:09
mrichezis it normal to return a call to a classmethod without calling '__class__' . In this case, it's returning self.default_code_readonly() (which is a class method)... why not returning self.__class__.default_code_readonly() ? (is it a shortcut ?)13:11
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton14:29
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton14:31
-!- rmu(~robert@cm179-68.liwest.at) has joined #tryton18:43

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