irc.libera.chat #tryton log beginning Fri Jun 23 12:10:01 AM CEST 2023 | ||
-!- kwmiebach_(sid16855@id-16855.tinside.irccloud.com) has joined #tryton | 00:56 | |
-!- Canary(~My_user_n@61-69-93-142.syd.static-ipl.aapt.com.au) has joined #tryton | 04:07 | |
-!- 020AAC0BR(~g5pw@mittelab/sudo/g5pw) has joined #tryton | 04:10 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton | 04:53 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 05:05 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 05:05 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:9df2:e618:6700:57e5) has joined #tryton | 05:16 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 06:36 | |
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton | 07:17 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:23 | |
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton | 08:07 | |
mrichez | hi, 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#L640 | 08:41 |
---|---|---|
cedk | mrichez: what would be the benefit of such incompatible change? | 08:47 |
mrichez | cedk: 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 |
cedk | mrichez: but the sale state will still be done | 08:59 |
mrichez | cedk: in our case it will be cancelled | 08:59 |
cedk | so I guess we could have 'none' state when every moves or lines are ignored and have the state set to 'cancelled' | 09:00 |
cedk | mrichez: it can not because cancelled state can only be reach from draft or quotation | 09:01 |
mrichez | cedk: indeed it's done state for the sale | 09:01 |
mrichez | cedk: so we have a 'Done' sale with a shipment 'Sent', but shipment is 'cancelled' | 09:04 |
cedk | mrichez: I guess we can implement what I described | 09:20 |
mrichez | cedk: 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 |
cedk | mrichez: yes | 09:22 |
mrichez | cedk: ok | 09:23 |
cedk | but also for invoice state and the same for purchase | 09:23 |
mrichez | ok | 09:24 |
mrichez | https://foss.heptapod.net/tryton/tryton/-/issues/12347 | 09:39 |
mrichez | is 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 |
cedk | mrichez: if you are not in stock group, there is no point to see lot | 11:02 |
mrichez | cedk: 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 |
cedk | mrichez: we should restrict the relate to stock group | 11:06 |
mrichez | cedk: ok | 11:08 |
cedk | mrichez: indeed it is more the model that should have the proper access | 11:10 |
mrichez | https://foss.heptapod.net/tryton/tryton/-/issues/12348 | 11:11 |
-!- HumanGeek(~jerome@82.66.65.160) has joined #tryton | 11:23 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:404c:9647:101a:8b2e) has joined #tryton | 11:58 | |
mrichez | i'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 |
mrichez | i 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 |
mrichez | is it mandatory to have write access to launch a wizard on a model ? | 12:55 |
pokoli | mrichez: if there is no access for wizard/buttons we require that the user is allowed to write on the model | 12:59 |
pokoli | mrichez: you should explicity add access to the wizard to your users, then write acess is not required | 13:00 |
mrichez | pokoli: 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 #tryton | 20:07 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!