irc.libera.chat #tryton log beginning Tue May 24 12:00:01 AM CEST 2022 | ||
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 22:31 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:54 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 22:54 | |
-!- udono[m](~udono@2001:470:69fc:105::1:cd10) has joined #tryton | 02:49 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 04:01 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 04:58 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:16 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:16 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:14 | |
-!- rpit(~rpit@p200300c88f2841003deab480132a3929.dip0.t-ipconnect.de) has joined #tryton | 07:15 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 07:19 | |
mrichez | hi, related to issue "Adding currency on party" (https://bugs.tryton.org/issue9305), 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 (https://hg.tryton.org/modules/stock/file/default/shipment.py#l179) and setting this currency as default when creating new move... | 07:50 |
---|---|---|
cedk | mrichez: I do not see a use case | 07:57 |
cedk | mrichez: this field should never be filled by user | 07:57 |
mrichez | cedk: when adding manually a shipment stock move, default currency is company currency which is not the supplier/customer currency | 07:58 |
cedk | mrichez: in which case? if you do not have a purchase order, you do not have neither a price | 08:12 |
mrichez | cedk: 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 |
mrichez | and we need to have such move to have a correct cost price (average method) | 08:19 |
cedk | mrichez: I guess it will not hurt but I suspect it is going to be complicated | 08:20 |
mrichez | cedk: 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 #tryton | 09:17 | |
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton | 12:41 | |
-!- robert1(~robert@cpe90-146-69-131.liwest.at) has joined #tryton | 13:26 | |
-!- robert1(~robert@cpe90-146-69-131.liwest.at) has left #tryton | 13:27 | |
-!- rmu(~robert@cpe90-146-69-131.liwest.at) has joined #tryton | 13:28 | |
mrichez | hi, 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 |
mrichez | any idea ? | 14:47 |
cedk | mrichez: normally you can not access attribute of many2one | 17:27 |
mrichez | cedk: ok, then i'll try with a function field. Thanks! | 18:12 |
cedk | mrichez: if it is inside a One2Many, you can use _parent_supplier but it will not work if the record is edited outside the One2Many | 18:33 |
mrichez | cedk: it's about this field : https://hg.tryton.org/modules/stock/file/default/shipment.py#l179 for issue 11512 | 18:35 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!