IRC logs of #tryton for Monday, 2021-04-19

chat.freenode.net #tryton log beginning Mon Apr 19 12:00:01 AM CEST 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:04
-!- thaneor2(~acer8@r167-61-60-230.dialup.adsl.anteldata.net.uy) has joined #tryton02:04
-!- thaneor3(~ldlc6@r167-61-60-230.dialup.adsl.anteldata.net.uy) has joined #tryton02:04
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton03:04
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:04
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton07:04
-!- Timitos(~kpreisler@2001:a61:482:eb01:762b:62ff:fe84:ed7e) has joined #tryton07:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:04
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton09:04
-!- ludo2(~Thunderbi@2001:912:1480:380::1) has joined #tryton09:04
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton09:04
-!- srgdts_(~srgdts@unaffiliated/srgdts) has joined #tryton09:04
-!- amprxc(020a3707@lfbn-ren-1-464-7.w2-10.abo.wanadoo.fr) has joined #tryton11:04
-!- ludo3(~Thunderbi@193.33.57.196) has joined #tryton11:04
-!- springwurm(~springwur@5.104.149.54) has joined #tryton14:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:04
-!- thaneor(~ldlc6@r167-61-49-4.dialup.adsl.anteldata.net.uy) has joined #tryton14:04
mrichezhi, 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...."15:04
cedkmrichez: if the user can not create the record it can neither copy it15:04
mrichezcedk: user can create the record15:04
cedkmrichez: but if he can not read the source, it can not create the same15:04
mrichezcedk: user is allowed to read the source15:04
cedkmrichez: it does not seem as the message says it does not15:04
mrichezcedk: it's just on this specific field (even if i've set perm_read = True)15:04
mrichezcedk: here's my rule: https://pastebin.com/FCx2MejS15:04
cedkmrichez: if he can not read a field, he can not copy its value15:04
mrichezcedk: but i set perm_read = 'True'15:04
cedkmrichez: the error message say differently16:04
mrichezcedk: indeed.. but don't know what's wrong16:04
mrichezcedk: field is on product.template, should i define also rules on product.product ?16:04
cedkmrichez: I do not know I do not have the full message nor the full information16:04
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton16:04
cedkall I can say is restrict access is very complicated task16:04
cedkif you are not ready to loose functionnalities16:04
mrichezcedk: ok, i'll we make more tests16:04
cedkmrichez: but the error message should indicate exactly what is going wrong17:04
mrichezcedk: ok,17:04
mrichezcedk: 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 default17:04
mrichezcedk: i will go on with my investigations :-)17:04
-!- thaneor1(~acer8@r167-61-49-4.dialup.adsl.anteldata.net.uy) has joined #tryton17:04
-!- mariomop(~quassel@181.29.189.235) has joined #tryton20:04

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