IRC logs of #tryton for Tuesday, 2016-06-14 #tryton log beginning Tue Jun 14 00:00:01 CEST 2016
-!- silwol(~silwol@ has joined #tryton00:01
-!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton00:02
-!- JosDzG( has joined #tryton00:10
-!- frispete_( has joined #tryton05:41
-!- prayashm(~prayashm@ 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( has joined #tryton08:04
-!- mrichez( has joined #tryton08:52
-!- Timitos( has joined #tryton09:11
-!- Timitos( has joined #tryton09:34
-!- shrox(shrox@nat/iiit/x-bhsbexzsgzkuhjsn) has joined #tryton09:45
-!- zmijunkie( has joined #tryton10:05
-!- nicoe( has joined #tryton10:58
-!- udono( 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( has joined #tryton11:43
pokolimrichez: can we see the full traceback (using service)11:46
cedkmrichez: left side of domain should always be the name of a field11:50
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
mrichezin this rule, i want to  add the perm_write to a specific group11:57
-!- silwol(~silwol@ 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@ 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( has joined #tryton13:13
mrichezBack with my rule... can't link to the group :
-!- prayashm(~prayashm@ 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 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( has joined #tryton15:27
-!- zmijunkie1( has joined #tryton15:51
-!- kstenger( has joined #tryton15:54
-!- JosDzG( has joined #tryton16:40
cedkpokoli: there is something wrong with your changeset de90bf5435ce,
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 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:
-!- prayashm(~prayashm@ has joined #tryton18:29
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton18:29
-!- Telesight( has joined #tryton19:23
-!- kstenger1( 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@ has joined #tryton23:58

Generated by 2.11.0 by Marius Gedminas - find it at!