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

chat.freenode.net #tryton log beginning Sat Jan 16 00:00:01 CET 2016
2016-01-16 00:12 -!- csotelo(~csotelo@201.240.152.28) has joined #tryton
2016-01-16 00:17 <csotelo> hello 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 lot
2016-01-16 00:33 <cedk> csotelo: you always have in the evaluation context the _user key
2016-01-16 00:36 <cedk> csotelo: but usually such design is far from being optimal
2016-01-16 00:40 <csotelo> cedk, 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?
2016-01-16 00:41 <cedk> csotelo: don't understand at all the code you write
2016-01-16 00:41 <csotelo> the reason on do these design, is since I need that some processes could be just viewed for its creator, and just him/ her could update
2016-01-16 00:41 <cedk> csotelo: you seem to mix Model definition with domain etc.
2016-01-16 00:41 <csotelo> I guess I have no writeen well
2016-01-16 00:41 <cedk> csotelo: I think this is highly probable to be wrong
2016-01-16 00:42 <cedk> csotelo: usually there is always some kind of admin that must be able to see everything
2016-01-16 00:42 <csotelo> yes!
2016-01-16 00:42 <csotelo> you are right!
2016-01-16 00:43 <csotelo> but , on no admin users, I need to be sure that just the creator could see her/his rows
2016-01-16 00:43 <cedk> csotelo: but any way, it sounds like record rules: ir.rule
2016-01-16 00:43 <csotelo> what will be the right way
2016-01-16 00:43 <cedk> csotelo: so how company is managed
2016-01-16 00:44 <csotelo> dumber question: that could be coded on models? or.. where :S
2016-01-16 00:44 <cedk> csotelo: no access right are not on Model
2016-01-16 00:44 <cedk> csotelo: it is configuration in ir.rule
2016-01-16 00:46 <csotelo> oh. 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 :)
2016-01-16 00:52 <cedk> csotelo: look at http://hg.tryton.org/modules/timesheet/file/896c5c137f63/line.xml#l59
2016-01-16 00:53 <csotelo> ok, thanks
2016-01-16 01:09 <cedk> csotelo: but I think instead of the user you should consider using employee
2016-01-16 01:09 <csotelo> yes, I have notices that, thanks a lot for answer before do my queston :)
2016-01-16 01:57 -!- mathesis_(~ja1000@187.171.229.187) has joined #tryton
2016-01-16 02:47 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-01-16 03:09 -!- csotelo_(~csotelo@201.240.152.28) has joined #tryton
2016-01-16 04:36 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-01-16 06:01 -!- yangoon1(~mathiasb@p549F1EE0.dip0.t-ipconnect.de) has joined #tryton
2016-01-16 07:26 <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))"
2016-01-16 07:40 -!- frispete_(~frispete@p54A902CA.dip0.t-ipconnect.de) has joined #tryton
2016-01-16 08:13 -!- nelek(~nf@unaffiliated/nelek) has joined #tryton
2016-01-16 08:16 <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))"
2016-01-16 09:37 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-01-16 10:20 -!- nicoe(~nicoe@2a02:a03f:3079:3200:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-01-16 10:20 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-01-16 10:56 -!- kstenger1(~karla@r167-56-248-104.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-01-16 10:59 -!- meigallodixital(~meigallod@147.Red-88-17-116.dynamicIP.rima-tde.net) has joined #tryton
2016-01-16 11:21 -!- nicoe(~nicoe@2a02:a03f:3079:3200:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-01-16 13:20 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-01-16 13:45 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has joined #tryton
2016-01-16 13:46 <sisalp> hello, to facilitate access to tryton, I'm testing this help-yourself hosting : http://sisalp.com
2016-01-16 13:47 <sisalp> to make it easier for new users, I wish to pre-create the first database when I install the service
2016-01-16 13:47 <sisalp> I can restore an empty model, but I need to hack the admin password
2016-01-16 13:48 <sisalp> The idea is to update the password_hash field of admin.
2016-01-16 13:49 <sisalp> so I need a shell script command to calculate a valid hash and did not succeed with the mhpasswd methods.
2016-01-16 13:49 <sisalp> anybody can help me ?
2016-01-16 13:50 <sisalp> s/mhpasswd/mkpasswd
2016-01-16 14:16 <cedk> sisalp: you just need to do the same as the User.hash_bcrypt method
2016-01-16 14:16 <cedk> sisalp: probably easier to just copy it in a python script
2016-01-16 14:17 <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?
2016-01-16 14:17 <cedk> csotelo_: buttons must be declared in ModelView._buttons
2016-01-16 14:17 <csotelo_> thanks!
2016-01-16 14:27 -!- meigallodixital(~meigallod@147.Red-88-17-116.dynamicIP.rima-tde.net) has joined #tryton
2016-01-16 14:46 -!- nelek_(~nf@ip-83-134-210-233.dsl.scarlet.be) has joined #tryton
2016-01-16 16:25 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-01-16 16:29 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-01-16 16:33 -!- kstenger(~karla@r167-56-248-104.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-01-16 16:44 -!- gyKa(~gytis@k250.nfq.lt) has joined #tryton
2016-01-16 16:47 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-01-16 17:19 -!- meigallodixital(~meigallod@201.Red-83-44-147.dynamicIP.rima-tde.net) has joined #tryton
2016-01-16 19:25 -!- cjbarnes18(~user@host217-42-44-46.range217-42.btcentralplus.com) has joined #tryton
2016-01-16 22:20 -!- mathesis(~ja1000@187.171.229.187) has joined #tryton
2016-01-16 22:57 -!- kstenger1(~karla@r186-50-21-105.dialup.adsl.anteldata.net.uy) has joined #tryton

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