IRC logs of #tryton for Saturday, 2016-01-16

chat.freenode.net #tryton log beginning Sat Jan 16 00:00:01 CET 2016
-!- csotelo(~csotelo@201.240.152.28) has joined #tryton00:12
csotelohello dear coders, if I want to show on a tree just the rows on the create_uid is the same as the current session, what will be the way on solve that on a domain? or could be better to use and extra field with something like user_id for no crash the fields create_uid. Thanks a lot00:17
cedkcsotelo: you always have in the evaluation context the _user key00:33
cedkcsotelo: but usually such design is far from being optimal00:36
csotelocedk, I understand, but, I mean, I just want to be on a tree view, the rows created by the logued user, then I understand that I must use the user key on a domain, the, my question now is, Could do I sometjing like write_uid = fields.Integer (u'User', domain['write_uid', '=', context.....]) or, what will be the right way on filter on the tree view just the rows created by a specific user?00:40
cedkcsotelo: don't understand at all the code you write00:41
csotelothe reason on do these design, is since I need that some processes could be just viewed for its creator, and just him/ her could update00:41
cedkcsotelo: you seem to mix Model definition with domain etc.00:41
csoteloI guess I have no writeen well00:41
cedkcsotelo: I think this is highly probable to be wrong00:41
cedkcsotelo: usually there is always some kind of admin that must be able to see everything00:42
csoteloyes!00:42
csoteloyou are right!00:42
csotelobut , on no admin users, I need to be sure that just the creator could see her/his rows00:43
cedkcsotelo: but any way, it sounds like record rules: ir.rule00:43
csotelowhat will be the right way00:43
cedkcsotelo: so how company is managed00:43
csotelodumber question: that could be coded on models? or.. where :S00:44
cedkcsotelo: no access right are not on Model00:44
cedkcsotelo: it is configuration in ir.rule00:44
csotelooh. well I understand what you say but I dont undertand how to do that since I ahev no see that on before ... I need to go back and read mopre :)00:46
cedkcsotelo: look at http://hg.tryton.org/modules/timesheet/file/896c5c137f63/line.xml#l5900:52
csotelook, thanks00:53
cedkcsotelo: but I think instead of the user you should consider using employee01:09
csoteloyes, I have notices that, thanks a lot for answer before do my queston :)01:09
-!- mathesis_(~ja1000@187.171.229.187) has joined #tryton01:57
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:47
-!- csotelo_(~csotelo@201.240.152.28) has joined #tryton03:09
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton04:36
-!- yangoon1(~mathiasb@p549F1EE0.dip0.t-ipconnect.de) has joined #tryton06:01
csotelo_dear coders, any sugest to do this expresion on domains "('shift_start_hour || shift_start_minute', '<=', "%s%s" % (curr_time.hour, curr_time.minute))"07:26
-!- frispete_(~frispete@p54A902CA.dip0.t-ipconnect.de) has joined #tryton07:40
-!- nelek(~nf@unaffiliated/nelek) has joined #tryton08:13
csotelo_dear coders, any sugest to do this expresion on domains "('shift_start_hour || shift_start_minute', '<=', "%s%s" % (curr_time.hour, curr_time.minute))"08:16
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton09:37
-!- nicoe(~nicoe@2a02:a03f:3079:3200:ee55:f9ff:fe7b:f7ac) has joined #tryton10:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:20
-!- kstenger1(~karla@r167-56-248-104.dialup.adsl.anteldata.net.uy) has joined #tryton10:56
-!- meigallodixital(~meigallod@147.Red-88-17-116.dynamicIP.rima-tde.net) has joined #tryton10:59
-!- nicoe(~nicoe@2a02:a03f:3079:3200:ee55:f9ff:fe7b:f7ac) has joined #tryton11:21
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton13:20
-!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton13:45
sisalphello, to facilitate access to tryton, I'm testing this help-yourself hosting : http://sisalp.com13:46
sisalpto make it easier for new users, I wish to pre-create the first database when I install the service13:47
sisalpI can restore an empty model, but I need to hack the admin password13:47
sisalpThe idea is to update the password_hash field of admin.13:48
sisalpso I need a shell script command to calculate a valid hash and did not succeed with the mhpasswd methods.13:49
sisalpanybody can help me ?13:49
sisalps/mhpasswd/mkpasswd13:50
cedksisalp: you just need to do the same as the User.hash_bcrypt method14:16
cedksisalp: probably easier to just copy it in a python script14:16
csotelo_hello dear coders. I have created a button on a view and the methyod on the model, however I am getting this error "Calling method post_pos_journal on model account.pos.journal is not allowed!" any suggest?14:17
cedkcsotelo_: buttons must be declared in ModelView._buttons14:17
csotelo_thanks!14:17
-!- meigallodixital(~meigallod@147.Red-88-17-116.dynamicIP.rima-tde.net) has joined #tryton14:27
-!- nelek_(~nf@ip-83-134-210-233.dsl.scarlet.be) has joined #tryton14:46
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton16:25
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton16:29
-!- kstenger(~karla@r167-56-248-104.dialup.adsl.anteldata.net.uy) has joined #tryton16:33
-!- gyKa(~gytis@k250.nfq.lt) has joined #tryton16:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:47
-!- meigallodixital(~meigallod@201.Red-83-44-147.dynamicIP.rima-tde.net) has joined #tryton17:19
-!- cjbarnes18(~user@host217-42-44-46.range217-42.btcentralplus.com) has joined #tryton19:25
-!- mathesis(~ja1000@187.171.229.187) has joined #tryton22:20
-!- kstenger1(~karla@r186-50-21-105.dialup.adsl.anteldata.net.uy) has joined #tryton22:57

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!