IRC logs of #tryton for Tuesday, 2015-04-07

chat.freenode.net #tryton log beginning Tue Apr 7 00:00:01 CEST 2015
-!- parya(680ba90d@gateway/web/freenode/ip.104.11.169.13) has joined #tryton00:03
paryahi.. there was a change in sale ( to add workflow transition for done state) https://github.com/tryton/sale/blob/develop/sale.py#L929. How to mark confirmed sale as done using this ( if is_done is true) ?00:05
paryaI' migrating one of 2.8 module to 3.4 and that time it was expecting sale to be marked as 'Done" on process. but now sale can be marked as "Done" if its in "processing" state. I'm not sure if this is expected behaviour.00:09
paryaPlease help00:09
paryaanybody there?00:16
-!- mathesis(~ana@187.171.159.232) has joined #tryton00:18
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:15
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton01:29
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton02:40
apostatizegnu-health02:40
apostatizeoops, lol02:40
mathesisapostatize: you are using tryton?03:00
apostatizemathesis: Hehe, yeah, sorry. Was tying /join #gnu-health but mistyped.03:01
-!- smarro(~sebastian@190.105.93.196) has joined #tryton03:20
-!- smarro(~sebastian@190.105.93.196) has joined #tryton03:31
mathesisI need add a new fielt to Model Address. Add direct to model Address or Extend with new model class?03:46
apostatizemathesis: So, a single field only?03:51
mathesisapostatize: 10 Fields03:52
apostatizeProbably extend, then if you have need of another specific case, you can extend a new class again.03:55
apostatizemathesis: You are talking about the Address model of the core? Prob never change that, just subclass it.03:57
mathesisapostatize: yes, of core.03:59
apostatizemathesis: Never modify that directly.03:59
mathesisapostatize: ok, thanks men04:03
apostatizemathesis: No worries. =-)04:04
-!- smarro(~sebastian@190.105.93.196) has joined #tryton05:20
-!- sunny_dealmeida(~quassel@203.115.76.105) has joined #tryton05:53
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton06:33
-!- frispete_(~frispete@p54A9189A.dip0.t-ipconnect.de) has joined #tryton06:40
-!- yangoon(~mathiasb@p549F068A.dip0.t-ipconnect.de) has joined #tryton07:01
-!- michael-kohlhaas(~mk@p5DD46EF0.dip0.t-ipconnect.de) has joined #tryton07:21
-!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton07:21
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton07:37
-!- jvblasco(~seba@62.43.196.37) has joined #tryton08:28
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:44
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton08:54
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:07
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:08
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:33
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:33
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:33
-!- pobsteta1(~Thunderbi@185.10.253.102) has joined #tryton09:38
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:42
-!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton10:07
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton10:48
-!- jvblasco(~seba@62.43.196.37) has joined #tryton10:49
hiaselhanshi there10:52
hiaselhansi have a question concerning access control:10:52
hiaselhansis it possible to add a condition to access records?10:53
hiaselhansfor example i want to allow the creation of a credit note, but not a invoice...10:53
hiaselhansbut a credit note seems the same as an invoice, just of "type" credit note...10:53
cedkhiaselhans: it should be possible with record rules10:54
hiaselhanscedk: can you point me towards an example?10:56
hiaselhanscedk: done in xml or code? could i also just disable the creation button of a view instead?10:57
-!- pobsteta(~Thunderbi@185.10.253.102) has joined #tryton11:02
hiaselhanscedk: ok, i think it must be ir.rule.group i am searching, but cant find a conditional example11:05
-!- pobsteta1(~Thunderbi@185.10.253.102) has joined #tryton11:14
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton11:23
cedkhiaselhans: there are some such rules for company11:24
cedkhiaselhans: http://hg.tryton.org/modules/account_invoice/file/8805b3ab526a/invoice.xml#l41111:25
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton11:28
hiaselhanscedk: perfect, thanks!11:30
-!- munron(~AndChat68@197.211.216.214) has joined #tryton11:37
hiaselhanscedk: tried like this: https://gist.github.com/hiaselhans/b964447225405916bf6e11:42
hiaselhanscedk: but dont see it working...11:42
hiaselhanscedk: what are the proposed lines from invoice.xml you sent me achieving? do they actually allow/forbid any access11:43
cedkhiaselhans: forbid access to different company document11:44
hiaselhanscedk: ok i see that by not having perm_read i can not see any other invoices anymore... does it imply i can not create any?11:46
cedkhiaselhans: ir.rule only works by restricting access11:46
hiaselhanscedk: how to "grant" access11:46
hiaselhanscedk: ah11:46
hiaselhanscedk: ok11:46
cedkhiaselhans: it is different than the ir.model.access11:47
cedkhiaselhans: ir.rule defines a domain that is automatically added11:47
hiaselhanscedk: thanks, i think i understand. meaning i have to grant perm_create and in my rule only allow read/write for type!=out_credit_note11:48
hiaselhanscedk: hmm not sure i understood completely...11:53
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton11:54
hiaselhanscedk: when i add perm_read to the ir.rule.group still i cant see my records... on the other hand the creation of new records isnt locked down...11:54
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton11:56
cedkhiaselhans: perm_read is to activate the application of the domain on read11:58
hiaselhanscedk: that is a strange name tough, but i found it works for read11:59
hiaselhanscedk: however for write/create i dont see it working...12:00
cedkhiaselhans: it is exactly the same way12:01
cedkhiaselhans: but you should not expect from the UI to disable buttons base on ir.rule because it is too much dynamic so only error messages are raised12:02
hiaselhanscedk: that should be enough...12:02
hiaselhanscedk: at which point is the error message raised?12:07
hiaselhanscedk: on save?12:07
cedkhiaselhans: when calling the method12:07
hiaselhanscedk: got it running, thanks.. but is there a way to evaluate sooner when adding a invoice line?12:17
hiaselhanscedk: not on save of the whole invoice but rather when adding a line12:17
cedkhiaselhans: nope12:26
cedkhiaselhans: except if you force the user to save before adding lines12:27
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton12:27
hiaselhanscedk: :) thanks!12:28
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton12:49
hiaselhanscedk: me again, i encountered another problem with the proposed solution...12:50
hiaselhanscedk: seems like access control in general is checked on rpc calls, but for rules its different...12:51
hiaselhanscedk: is that correct?12:51
cedkhiaselhans: yes for now it is like that because needed for multi-company13:05
cedkhiaselhans: https://bugs.tryton.org/issue408013:05
-!- smarro(~sebastian@190.105.93.196) has joined #tryton13:10
-!- mariomop(~quassel@host110.181-1-164.telecom.net.ar) has joined #tryton13:20
-!- smarro(~sebastian@190.105.93.196) has joined #tryton13:25
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton13:33
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton13:34
-!- buxy(~rhertzog@mail.vm.ouaza.com) has joined #tryton13:37
-!- kstenger(~karla@200.124.209.158) has joined #tryton14:03
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton14:16
-!- jcros(~Thunderbi@ALyon-157-1-217-242.w109-213.abo.wanadoo.fr) has joined #tryton15:03
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton15:20
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton15:29
-!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton16:25
-!- digitalsatori(~Thunderbi@183.16.234.12) has joined #tryton16:41
-!- jcros(~Thunderbi@ALyon-157-1-217-242.w109-213.abo.wanadoo.fr) has joined #tryton16:42
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton16:57
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:02
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton17:09
-!- digitalsatori1(~Thunderbi@113.88.15.246) has joined #tryton17:19
-!- MarkyC(~MarkyC@158.106.83.87) has joined #tryton17:20
-!- pablovannini(~pablo@host89.190-229-149.telecom.net.ar) has joined #tryton17:46
-!- gremly(~gremly@190.85.36.58) has joined #tryton17:50
-!- pablovannini(~pablo@host220.190-224-145.telecom.net.ar) has joined #tryton18:24
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton18:36
-!- digitalsatori(~Thunderbi@113.88.15.246) has joined #tryton18:47
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton18:57
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton19:03
-!- sunny_dealmeida(~quassel@203.115.76.105) has joined #tryton19:13
-!- smarro(~sebastian@190.105.79.159) has joined #tryton20:16
-!- munron(~AndChat68@197.211.216.214) has joined #tryton20:19
-!- pablovannini(~pablo@200-081-038-003.wireless.movistar.net.ar) has joined #tryton20:29
-!- yangoon(~mathiasb@p549F068A.dip0.t-ipconnect.de) has joined #tryton20:42
-!- pablovannini(~pablo@host66.200-117-163.telecom.net.ar) has joined #tryton20:46
-!- nineinchnick(~jwas@109.231.17.7) has joined #tryton20:54
-!- MarkyC(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton21:06
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton21:19
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton21:48
-!- pablovannini(~pablo@host90.190-229-146.telecom.net.ar) has joined #tryton22:55

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