chat.freenode.net #tryton log beginning Mon Apr 19 12:00:01 AM CEST 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:51 | |
-!- thaneor2(~acer8@r167-61-60-230.dialup.adsl.anteldata.net.uy) has joined #tryton | 00:31 | |
-!- thaneor3(~ldlc6@r167-61-60-230.dialup.adsl.anteldata.net.uy) has joined #tryton | 00:32 | |
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton | 01:36 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 04:58 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 05:25 | |
-!- Timitos(~kpreisler@2001:a61:482:eb01:762b:62ff:fe84:ed7e) has joined #tryton | 05:41 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:17 | |
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton | 07:22 | |
-!- ludo2(~Thunderbi@2001:912:1480:380::1) has joined #tryton | 07:25 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 07:30 | |
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton | 07:50 | |
-!- amprxc(020a3707@lfbn-ren-1-464-7.w2-10.abo.wanadoo.fr) has joined #tryton | 09:08 | |
-!- ludo3(~Thunderbi@193.33.57.196) has joined #tryton | 09:16 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:01 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 12:03 | |
-!- thaneor(~ldlc6@r167-61-49-4.dialup.adsl.anteldata.net.uy) has joined #tryton | 12:34 | |
mrichez | hi, got a model which become read access after setting a field to true. This field is only writable by admin group, how can i duplicate a record as non-admin user ? (got "you are not allowed to access field...." | 13:42 |
---|---|---|
cedk | mrichez: if the user can not create the record it can neither copy it | 13:47 |
mrichez | cedk: user can create the record | 13:49 |
cedk | mrichez: but if he can not read the source, it can not create the same | 13:50 |
mrichez | cedk: user is allowed to read the source | 13:50 |
cedk | mrichez: it does not seem as the message says it does not | 13:52 |
mrichez | cedk: it's just on this specific field (even if i've set perm_read = True) | 13:53 |
mrichez | cedk: here's my rule: https://pastebin.com/FCx2MejS | 13:55 |
cedk | mrichez: if he can not read a field, he can not copy its value | 13:57 |
mrichez | cedk: but i set perm_read = 'True' | 13:58 |
cedk | mrichez: the error message say differently | 14:05 |
mrichez | cedk: indeed.. but don't know what's wrong | 14:12 |
mrichez | cedk: field is on product.template, should i define also rules on product.product ? | 14:14 |
cedk | mrichez: I do not know I do not have the full message nor the full information | 14:55 |
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton | 14:55 | |
cedk | all I can say is restrict access is very complicated task | 14:56 |
cedk | if you are not ready to loose functionnalities | 14:56 |
mrichez | cedk: ok, i'll we make more tests | 14:56 |
cedk | mrichez: but the error message should indicate exactly what is going wrong | 15:00 |
mrichez | cedk: ok, | 15:00 |
mrichez | cedk: it thought it was because i forgot to define a default value, but no... field is a checkbox, i test rule on False value, so i set False as default | 15:03 |
mrichez | cedk: i will go on with my investigations :-) | 15:04 |
-!- thaneor1(~acer8@r167-61-49-4.dialup.adsl.anteldata.net.uy) has joined #tryton | 15:15 | |
-!- mariomop(~quassel@181.29.189.235) has joined #tryton | 18:55 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!