IRC logs of #tryton for Tuesday, 2022-05-24 #tryton log beginning Tue May 24 12:00:01 AM CEST 2022
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton22:31
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:54
-!- ChanServ changed mode/#tryton -> +o cedk 22:54
-!- udono[m](~udono@2001:470:69fc:105::1:cd10) has joined #tryton02:49
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton04:01
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton04:58
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:16
-!- ChanServ changed mode/#tryton -> +o cedk 06:16
-!- acaubet(~Thunderbi@ has joined #tryton07:14
-!- rpit( has joined #tryton07:15
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton07:19
mrichezhi, related to issue "Adding currency on party" (, would it make sense to have also default party currency when creating a stock move on supplier/customer shipment ? Adding currency in the context of incoming_moves field ( and setting this currency as default when creating new move...07:50
cedkmrichez: I do not see a use case07:57
cedkmrichez: this field should never be filled by user07:57
mrichezcedk: when adding manually a shipment stock move, default currency is company currency which is not the supplier/customer currency07:58
cedkmrichez: in which case? if you do not have a purchase order, you do not have neither a price08:12
mrichezcedk: we have some cases we have to correct shipment to add missing receive products  with correct price to apply then landing costs on correct shipment (ok it's an exception)08:18
mrichezand we need to have such move to have a correct cost price (average method) 08:19
cedkmrichez: I guess it will not hurt but I suspect it is going to be complicated08:20
mrichezcedk: indeed (we have a lot of complicated cases in our business we need not discuss)08:22
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton09:17
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton12:41
-!- robert1( has joined #tryton13:26
-!- robert1( has left #tryton13:27
-!- rmu( has joined #tryton13:28
mrichezhi, got a problem with a pyson test in context attribute of  a function field, it seems "If" test is true and then i get an AttributeError : If(Bool(Eval('supplier')), Eval('supplier', {}).get('supplier_currency', -1), -1)14:47
mrichezany idea ?14:47
cedkmrichez: normally you can not access attribute of many2one17:27
mrichezcedk: ok, then i'll try with a function field. Thanks!18:12
cedkmrichez: if it is inside a One2Many, you can use _parent_supplier but it will not work if the record is edited outside the One2Many18:33
mrichezcedk: it's about this field : for issue 1151218:35

Generated by 2.17.3 by Marius Gedminas - find it at!