IRC logs of #tryton for Friday, 2023-06-23

irc.libera.chat #tryton log beginning Fri Jun 23 12:10:01 AM CEST 2023
-!- kwmiebach_(sid16855@id-16855.tinside.irccloud.com) has joined #tryton00:56
-!- Canary(~My_user_n@61-69-93-142.syd.static-ipl.aapt.com.au) has joined #tryton04:07
-!- 020AAC0BR(~g5pw@mittelab/sudo/g5pw) has joined #tryton04:10
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton04:53
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton05:05
-!- ChanServ changed mode/#tryton -> +o cedk 05:05
-!- springwurm(~springwur@2a01:76c0:100:f500:9df2:e618:6700:57e5) has joined #tryton05:16
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton06:36
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton07:17
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:23
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton08:07
mrichezhi, we notice if we have a sale with one shipment and if we cancel the shipment (no backorder) then anyway shipment state on sale is 'SENT'. Should add another state in case of all shipments linked to sale are cancelled then shipment_state would be 'CANCELLED', or renaming 'SENT' in a more appropriate term less ambiguous??? https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/sale/sale.py#L64008:41
cedkmrichez: what would be the benefit of such incompatible change?08:47
mrichezcedk: just having a correct status... in our case, 2 users create to identical sale and process them... we need to cancel one sale, then we first cancel the shipment... we just noticed that Shipment State is erroneous... ('Sent' is incorrect in this case because no shipment was delivered). Indeed it's just a status and the we'll cancel the sale.08:50
cedkmrichez: but the sale state will still be done08:59
mrichezcedk: in our case it will be cancelled08:59
cedkso I guess we could have 'none' state when every moves or lines are ignored and have the state set to 'cancelled'09:00
cedkmrichez: it can not because cancelled state can only be reach from draft or quotation09:01
mrichezcedk: indeed it's done state for the sale09:01
mrichezcedk: so we have a 'Done' sale with a shipment 'Sent', but shipment is 'cancelled' 09:04
cedkmrichez: I guess we can implement what I described09:20
mrichezcedk: ok so 'none' state is for shipment state and 'cancelled' for sale state ? (so we add a transition from 'processing' to 'cancelled' for the sale ?)09:22
cedkmrichez: yes09:22
mrichezcedk: ok09:23
cedkbut also for invoice state and the same for purchase09:23
mrichezok09:24
mrichezhttps://foss.heptapod.net/tryton/tryton/-/issues/1234709:39
mrichezis it normal there's no read access on stock lot ? (https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/stock_lot/stock.xml#L67) . So when you do a relate from product to 'Stock Lot By Warehouse', column lot is not displayed...11:01
cedkmrichez: if you are not in stock group, there is no point to see lot11:02
mrichezcedk: our commercials need to know where are lots and their quantities... relate "Lots by Warehouse" is accessible without being in stock group but does'nt display the main information which is the lot. Anyway, i could do a custo if you think it's only allowed to the stock group.11:05
cedkmrichez: we should restrict the relate to stock group11:06
mrichezcedk: ok11:08
cedkmrichez: indeed it is more the model that should have the proper access11:10
mrichezhttps://foss.heptapod.net/tryton/tryton/-/issues/1234811:11
-!- HumanGeek(~jerome@82.66.65.160) has joined #tryton11:23
-!- springwurm(~springwur@2a01:76c0:100:f500:404c:9647:101a:8b2e) has joined #tryton11:58
mrichezi'm testing some access rules. My user has no specific rights. He has reading access on products (template/variant). When i launch a custom wizard on a product, i get this message: You are not allowed to access 'Product Template'. But i'm launching the wizard from this model... What could be wrong in my code ?12:27
mrichezi solved my problem with setting 'write access' to product. Don't understand why this is needed because my wizard is just doing a calculation and displaying the result. Any idea ?12:52
mrichezis it mandatory to have write access to launch a wizard on a model ?12:55
pokolimrichez: if there is no access for wizard/buttons we require that the user is allowed to write on the model 12:59
pokolimrichez: you should explicity add access to the wizard to your users, then write acess is not required13:00
mrichezpokoli: thanks for explanation. To add access to the wizard, i need to define ir.action-res.group for a specific group or is there another way if my user is not in a group ?13:03
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:47ca:4636:10d:eda1) has joined #tryton20:07

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