irc.libera.chat #tryton log beginning Tue Feb 22 12:00:01 AM CET 2022 | ||
cedk | wifasoi[m]: then I think you just need a "Pay" wizard like the one on invoice | 23:17 |
---|---|---|
wifasoi[m] | Fair enough.. I'll add it in the todo list | 00:21 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 01:14 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 01:14 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 05:51 | |
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 06:37 | |
-!- udono(~udono@018-128-067-156.ip-addr.inexio.net) has joined #tryton | 07:32 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 08:08 | |
-!- rpit(~rpit@p200300c88f31d800f2d0c5d32fcaebdc.dip0.t-ipconnect.de) has joined #tryton | 08:23 | |
-!- acaubet1(~Thunderbi@194.224.31.235) has joined #tryton | 09:23 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:26 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 09:26 | |
LordVan | i got a weird thing happeneing at the moment with outgoing shipments .. I delete internal movements as i want to only ship partially. then commission, .. pack .. bu8t in the outgoing moves i still have the deleted ones but with quantity 0 instead. | 10:58 |
LordVan | https://github.com/LordVan/tryton-modules/blob/master/rm_extra_data/stock.py <- this is the code that is running and I see no reason as to why it would not remove the outgoing moves with quantity 0 anymore ? | 10:59 |
LordVan | or could it have to do with my custom _sync_move_key ? if so why? | 10:59 |
pokoli | LordVan: this is expected | 11:28 |
pokoli | LordVan: I think they are removed on latest versions | 11:28 |
LordVan | pokoli, i am using 6.2.1 of stock module and i was pretty sure they got removed before? | 12:04 |
LordVan | unless that was on one of my dev boxes with compeltely up2date | 12:04 |
pokoli | LordVan: i think yes it was removed for 6.2 | 12:09 |
pokoli | there is a workflow translation where empty moves are removed | 12:09 |
LordVan | you mean https://hg.tryton.org/modules/stock/file/tip/shipment.py#l1329 ? | 12:11 |
LordVan | ah wrong link | 12:12 |
LordVan | i mean https://hg.tryton.org/modules/stock/file/tip/shipment.py#l1348 | 12:12 |
LordVan | line 1327 in my currently running version so it should delete it ? | 12:13 |
LordVan | hm | 12:13 |
LordVan | could it have to do with my sync move key? | 12:15 |
LordVan | crap i found my mistake .. it'S a typo .... | 12:21 |
LordVan | never mind | 12:21 |
LordVan | i had called super().pick(shipments) instead of super().pack(..) | 12:23 |
LordVan | unfortunately this was a typo that did not cause any obvious errors or exceptions .. | 12:23 |
pokoli | LordVan: yes, second link is responible of deleting | 12:38 |
mrichez | Hi, question about access rights. There's some changes between 5.8 and 6.2, wondering how to keep same behavior. I give some restrictions on product (see this post: https://discuss.tryton.org/t/write-access-rules-to-group-depending-on-a-field/4016). | 15:28 |
mrichez | Before, i could create a product customer from menu product customer without problem. Now, when i try to create a new product customer, i get an error about access rights on product. | 15:30 |
mrichez | What should i update to the same behavior as before ? | 15:30 |
cedk | mrichez: I guess you have to solve the access issues | 15:35 |
mrichez | cedk: indeed... but don't understand why on another model those access rights are applied | 15:37 |
cedk | mrichez: product customer inherit access rights from product and template | 15:38 |
mrichez | cedk: ok, so this is the problem... i restrict lot of access to users on products once they are "validated" (see my post on discuss) but i allow them to add/update customer products without any restriction | 15:41 |
mrichez | cedk: in my case, i gave all access to sale_product_customer to group sale , before product_admin access were bypassed when adding a new product_customer | 15:48 |
mrichez | cedk: so i suppose that clearing cls.__access__ on sale_product_customer will restore the previous behavior | 15:50 |
cedk | mrichez: you can discard product and template from __access__ but you will need to duplicate access rules of those models that you want to keep | 15:50 |
mrichez | cedk: ok | 15:55 |
mrichez | cedk: indeed default __access__ on product and template is too restrictive for me . Don't need access rules on product model in sale_product_customer, giving all access to sale group is enough. | 16:12 |
mrichez | cedk: but if i'm not in group sale, i can't add a product_customer on product ... so i'll have to add some access rights on product ;-) Thanks for help! | 16:18 |
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton | 21:41 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!