IRC logs of #tryton for Tuesday, 2016-06-14

chat.freenode.net #tryton log beginning Tue Jun 14 00:00:01 CEST 2016
2016-06-14 00:01 -!- silwol(~silwol@80.66.37.182) has joined #tryton
2016-06-14 00:02 -!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton
2016-06-14 00:10 -!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton
2016-06-14 05:41 -!- frispete_(~frispete@p54A916F5.dip0.t-ipconnect.de) has joined #tryton
2016-06-14 07:09 -!- prayashm(~prayashm@14.139.207.163) has joined #tryton
2016-06-14 07:09 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-06-14 07:26 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-06-14 08:04 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton
2016-06-14 08:52 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-06-14 09:11 -!- Timitos(~kpreisler@tmo-102-88.customers.d1-online.com) has joined #tryton
2016-06-14 09:34 -!- Timitos(~kpreisler@tmo-099-104.customers.d1-online.com) has joined #tryton
2016-06-14 09:45 -!- shrox(shrox@nat/iiit/x-bhsbexzsgzkuhjsn) has joined #tryton
2016-06-14 10:05 -!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton
2016-06-14 10:58 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2016-06-14 11:20 -!- udono(~udono@ip-178-202-239-138.hsi09.unitymediagroup.de) has joined #tryton
2016-06-14 11:32 <mrichez> Hi, i need some help about record rule to evaluate if current user is in a specific group
2016-06-14 11:32 <mrichez> <record model="ir.rule" id="rule_creator_new_module">
2016-06-14 11:32 <mrichez> <field name="domain"
2016-06-14 11:32 <mrichez> eval="[Eval('groups',{}),'in',[Id('new_module', 'group_new_module')]]"
2016-06-14 11:32 <mrichez> pyson="1"/>
2016-06-14 11:32 <mrichez> <field name="rule_group" ref="rule_group_creator_new_module"/>
2016-06-14 11:32 <mrichez> </record>
2016-06-14 11:34 <pokoli> mrichez: please don't pase in the channel and use some paste service, like pastebin
2016-06-14 11:34 <mrichez> oki, sorry
2016-06-14 11:35 <pokoli> mrichez: having said that, you have yo use the inverse condition, [(Id('module', 'group') , 'in', Eval('groups', []))]
2016-06-14 11:36 <mrichez> I'll try. Thanks
2016-06-14 11:38 <mrichez> i've an error = 'int' object has no attribute 'split'
2016-06-14 11:43 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-06-14 11:46 <pokoli> mrichez: can we see the full traceback (using service)
2016-06-14 11:48 <mrichez> http://pastebin.com/rQJ2YqJM
2016-06-14 11:50 <cedk> mrichez: left side of domain should always be the name of a field
2016-06-14 11:52 <cedk> mrichez: http://doc.tryton.org/4.0/trytond/doc/topics/domain.html#syntax
2016-06-14 11:52 <mrichez> ok. so how to check my group , i should use <field name="group"> ?
2016-06-14 11:53 <pokoli> mrichez: from which field of the model? You must have a user field on the model or use the create_uid or write_uid
2016-06-14 11:53 <pokoli> mrichez: BTW, maybe It will be better if you explain what you try to filter
2016-06-14 11:53 <cedk> mrichez: if you don't use value from the record, you must use model access
2016-06-14 11:55 <mrichez> ok, in my model, only creator and users in a specific group could modify records
2016-06-14 11:55 <mrichez> so i define record rule
2016-06-14 11:56 <mrichez> http://pastebin.com/3drJcxV8
2016-06-14 11:57 <mrichez> in this rule, i want to add the perm_write to a specific group
2016-06-14 12:03 -!- silwol(~silwol@80.66.37.182) has joined #tryton
2016-06-14 12:27 <cedk> mrichez: you have to create a rule without domain and link it to the group
2016-06-14 12:27 <mrichez> ok, will do that. Thanks ! :-)
2016-06-14 12:41 -!- mariomop(~quassel@181.91.231.140) has joined #tryton
2016-06-14 12:50 <cedk> pokoli: for issue5641, adding an empty label doesn't spend room?
2016-06-14 12:55 <pokoli> cedk: no, as far the label has no text. It spends when you add the test
2016-06-14 12:56 <pokoli> cedk: other option is to test if this.label_el before setting classes, but I found cleaner to use an empty label
2016-06-14 13:13 -!- Timitos(~kpreisler@tmo-099-104.customers.d1-online.com) has joined #tryton
2016-06-14 14:17 <mrichez> Back with my rule... can't link to the group : http://pastebin.com/nkVVagGh
2016-06-14 14:37 -!- prayashm(~prayashm@14.139.207.163) has joined #tryton
2016-06-14 14:37 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-06-14 14:51 <pokoli> mrichez: you have to create an record for the intermediate table of the many2many
2016-06-14 14:51 <pokoli> mrichez: see http://hg.tryton.org/modules/timesheet/file/tip/line.xml#l75 for an example
2016-06-14 14:54 <mrichez> oki... thanks !
2016-06-14 15:03 <mrichez> everything is working now, thanks for explanations and your time :-)
2016-06-14 15:04 <pokoli> mrichez: you're welcome
2016-06-14 15:11 -!- pelox(~rail@gusl/staff/risturiz) has joined #tryton
2016-06-14 15:27 -!- kstenger(~karla@r186-50-23-142.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-06-14 15:51 -!- zmijunkie1(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton
2016-06-14 15:54 -!- kstenger(~karla@r186-50-23-142.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-06-14 16:40 -!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton
2016-06-14 17:48 <cedk> pokoli: there is something wrong with your changeset de90bf5435ce, https://drone.tryton.org/trypod.tryton.org/tryton/modules.account_dunning/default/9b9f4a80c4a72ed856e95e609dfb2fc1a4f7058b
2016-06-14 17:50 <pokoli> cedk: let me check!
2016-06-14 17:50 <cedk> pokoli: or maybe it is changeset 3a17f8e704a7
2016-06-14 17:52 <cedk> pokoli: OK I found the issue
2016-06-14 17:52 <pokoli> cedk: or maybe is the union of both
2016-06-14 17:53 <cedk> ModelStorage.save restore the context of the instances
2016-06-14 17:53 <cedk> so the _check_access is removed as instances are not instantiated with it
2016-06-14 17:54 <pokoli> cedk: so we must instanciate the instances with _check_access?
2016-06-14 17:58 <cedk> I wrote: https://tryton-rietveld.appspot.com/26401002
2016-06-14 18:29 -!- prayashm(~prayashm@103.194.233.147) has joined #tryton
2016-06-14 18:29 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-06-14 19:23 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-06-14 19:26 -!- kstenger1(~karla@r186-48-241-236.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-06-14 19:26 -!- shrox(shrox@nat/iiit/x-bhsbexzsgzkuhjsn) has left #tryton
2016-06-14 23:22 -!- shrox(shrox@nat/iiit/x-wvjghqivnilwdzco) has joined #tryton
2016-06-14 23:58 -!- JosDzG(~Thunderbi@189.203.141.123) has joined #tryton

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