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

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

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