chat.freenode.net #tryton log beginning Tue Apr 7 00:00:01 CEST 2015 | ||
2015-04-07 00:03 -!- parya(680ba90d@gateway/web/freenode/ip.104.11.169.13) has joined #tryton | ||
2015-04-07 00:05 <parya> hi.. 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) ? | ||
2015-04-07 00:09 <parya> I' 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. | ||
2015-04-07 00:09 <parya> Please help | ||
2015-04-07 00:16 <parya> anybody there? | ||
2015-04-07 00:18 -!- mathesis(~ana@187.171.159.232) has joined #tryton | ||
2015-04-07 01:15 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-04-07 01:29 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton | ||
2015-04-07 02:40 -!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton | ||
2015-04-07 02:40 <apostatize> gnu-health | ||
2015-04-07 02:40 <apostatize> oops, lol | ||
2015-04-07 03:00 <mathesis> apostatize: you are using tryton? | ||
2015-04-07 03:01 <apostatize> mathesis: Hehe, yeah, sorry. Was tying /join #gnu-health but mistyped. | ||
2015-04-07 03:20 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2015-04-07 03:31 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2015-04-07 03:46 <mathesis> I need add a new fielt to Model Address. Add direct to model Address or Extend with new model class? | ||
2015-04-07 03:51 <apostatize> mathesis: So, a single field only? | ||
2015-04-07 03:52 <mathesis> apostatize: 10 Fields | ||
2015-04-07 03:55 <apostatize> Probably extend, then if you have need of another specific case, you can extend a new class again. | ||
2015-04-07 03:57 <apostatize> mathesis: You are talking about the Address model of the core? Prob never change that, just subclass it. | ||
2015-04-07 03:59 <mathesis> apostatize: yes, of core. | ||
2015-04-07 03:59 <apostatize> mathesis: Never modify that directly. | ||
2015-04-07 04:03 <mathesis> apostatize: ok, thanks men | ||
2015-04-07 04:04 <apostatize> mathesis: No worries. =-) | ||
2015-04-07 05:20 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2015-04-07 05:53 -!- sunny_dealmeida(~quassel@203.115.76.105) has joined #tryton | ||
2015-04-07 06:33 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton | ||
2015-04-07 06:40 -!- frispete_(~frispete@p54A9189A.dip0.t-ipconnect.de) has joined #tryton | ||
2015-04-07 07:01 -!- yangoon(~mathiasb@p549F068A.dip0.t-ipconnect.de) has joined #tryton | ||
2015-04-07 07:21 -!- michael-kohlhaas(~mk@p5DD46EF0.dip0.t-ipconnect.de) has joined #tryton | ||
2015-04-07 07:21 -!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton | ||
2015-04-07 07:37 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2015-04-07 08:28 -!- jvblasco(~seba@62.43.196.37) has joined #tryton | ||
2015-04-07 08:44 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2015-04-07 08:54 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2015-04-07 09:07 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-04-07 09:08 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-04-07 09:33 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-04-07 09:33 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-04-07 09:33 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-04-07 09:38 -!- pobsteta1(~Thunderbi@185.10.253.102) has joined #tryton | ||
2015-04-07 09:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-04-07 10:07 -!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton | ||
2015-04-07 10:48 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton | ||
2015-04-07 10:49 -!- jvblasco(~seba@62.43.196.37) has joined #tryton | ||
2015-04-07 10:52 <hiaselhans> hi there | ||
2015-04-07 10:52 <hiaselhans> i have a question concerning access control: | ||
2015-04-07 10:53 <hiaselhans> is it possible to add a condition to access records? | ||
2015-04-07 10:53 <hiaselhans> for example i want to allow the creation of a credit note, but not a invoice... | ||
2015-04-07 10:53 <hiaselhans> but a credit note seems the same as an invoice, just of "type" credit note... | ||
2015-04-07 10:54 <cedk> hiaselhans: it should be possible with record rules | ||
2015-04-07 10:56 <hiaselhans> cedk: can you point me towards an example? | ||
2015-04-07 10:57 <hiaselhans> cedk: done in xml or code? could i also just disable the creation button of a view instead? | ||
2015-04-07 11:02 -!- pobsteta(~Thunderbi@185.10.253.102) has joined #tryton | ||
2015-04-07 11:05 <hiaselhans> cedk: ok, i think it must be ir.rule.group i am searching, but cant find a conditional example | ||
2015-04-07 11:14 -!- pobsteta1(~Thunderbi@185.10.253.102) has joined #tryton | ||
2015-04-07 11:23 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton | ||
2015-04-07 11:24 <cedk> hiaselhans: there are some such rules for company | ||
2015-04-07 11:25 <cedk> hiaselhans: http://hg.tryton.org/modules/account_invoice/file/8805b3ab526a/invoice.xml#l411 | ||
2015-04-07 11:28 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton | ||
2015-04-07 11:30 <hiaselhans> cedk: perfect, thanks! | ||
2015-04-07 11:37 -!- munron(~AndChat68@197.211.216.214) has joined #tryton | ||
2015-04-07 11:42 <hiaselhans> cedk: tried like this: https://gist.github.com/hiaselhans/b964447225405916bf6e | ||
2015-04-07 11:42 <hiaselhans> cedk: but dont see it working... | ||
2015-04-07 11:43 <hiaselhans> cedk: what are the proposed lines from invoice.xml you sent me achieving? do they actually allow/forbid any access | ||
2015-04-07 11:44 <cedk> hiaselhans: forbid access to different company document | ||
2015-04-07 11:46 <hiaselhans> cedk: 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? | ||
2015-04-07 11:46 <cedk> hiaselhans: ir.rule only works by restricting access | ||
2015-04-07 11:46 <hiaselhans> cedk: how to "grant" access | ||
2015-04-07 11:46 <hiaselhans> cedk: ah | ||
2015-04-07 11:46 <hiaselhans> cedk: ok | ||
2015-04-07 11:47 <cedk> hiaselhans: it is different than the ir.model.access | ||
2015-04-07 11:47 <cedk> hiaselhans: ir.rule defines a domain that is automatically added | ||
2015-04-07 11:48 <hiaselhans> cedk: thanks, i think i understand. meaning i have to grant perm_create and in my rule only allow read/write for type!=out_credit_note | ||
2015-04-07 11:53 <hiaselhans> cedk: hmm not sure i understood completely... | ||
2015-04-07 11:54 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton | ||
2015-04-07 11:54 <hiaselhans> cedk: 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... | ||
2015-04-07 11:56 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton | ||
2015-04-07 11:58 <cedk> hiaselhans: perm_read is to activate the application of the domain on read | ||
2015-04-07 11:59 <hiaselhans> cedk: that is a strange name tough, but i found it works for read | ||
2015-04-07 12:00 <hiaselhans> cedk: however for write/create i dont see it working... | ||
2015-04-07 12:01 <cedk> hiaselhans: it is exactly the same way | ||
2015-04-07 12:02 <cedk> hiaselhans: 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 raised | ||
2015-04-07 12:02 <hiaselhans> cedk: that should be enough... | ||
2015-04-07 12:07 <hiaselhans> cedk: at which point is the error message raised? | ||
2015-04-07 12:07 <hiaselhans> cedk: on save? | ||
2015-04-07 12:07 <cedk> hiaselhans: when calling the method | ||
2015-04-07 12:17 <hiaselhans> cedk: got it running, thanks.. but is there a way to evaluate sooner when adding a invoice line? | ||
2015-04-07 12:17 <hiaselhans> cedk: not on save of the whole invoice but rather when adding a line | ||
2015-04-07 12:26 <cedk> hiaselhans: nope | ||
2015-04-07 12:27 <cedk> hiaselhans: except if you force the user to save before adding lines | ||
2015-04-07 12:27 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2015-04-07 12:28 <hiaselhans> cedk: :) thanks! | ||
2015-04-07 12:49 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton | ||
2015-04-07 12:50 <hiaselhans> cedk: me again, i encountered another problem with the proposed solution... | ||
2015-04-07 12:51 <hiaselhans> cedk: seems like access control in general is checked on rpc calls, but for rules its different... | ||
2015-04-07 12:51 <hiaselhans> cedk: is that correct? | ||
2015-04-07 13:05 <cedk> hiaselhans: yes for now it is like that because needed for multi-company | ||
2015-04-07 13:05 <cedk> hiaselhans: https://bugs.tryton.org/issue4080 | ||
2015-04-07 13:10 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2015-04-07 13:20 -!- mariomop(~quassel@host110.181-1-164.telecom.net.ar) has joined #tryton | ||
2015-04-07 13:25 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2015-04-07 13:33 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton | ||
2015-04-07 13:34 -!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton | ||
2015-04-07 13:37 -!- buxy(~rhertzog@mail.vm.ouaza.com) has joined #tryton | ||
2015-04-07 14:03 -!- kstenger(~karla@200.124.209.158) has joined #tryton | ||
2015-04-07 14:16 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton | ||
2015-04-07 15:03 -!- jcros(~Thunderbi@ALyon-157-1-217-242.w109-213.abo.wanadoo.fr) has joined #tryton | ||
2015-04-07 15:20 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | ||
2015-04-07 15:29 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton | ||
2015-04-07 16:25 -!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton | ||
2015-04-07 16:41 -!- digitalsatori(~Thunderbi@183.16.234.12) has joined #tryton | ||
2015-04-07 16:42 -!- jcros(~Thunderbi@ALyon-157-1-217-242.w109-213.abo.wanadoo.fr) has joined #tryton | ||
2015-04-07 16:57 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | ||
2015-04-07 17:02 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton | ||
2015-04-07 17:09 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton | ||
2015-04-07 17:19 -!- digitalsatori1(~Thunderbi@113.88.15.246) has joined #tryton | ||
2015-04-07 17:20 -!- MarkyC(~MarkyC@158.106.83.87) has joined #tryton | ||
2015-04-07 17:46 -!- pablovannini(~pablo@host89.190-229-149.telecom.net.ar) has joined #tryton | ||
2015-04-07 17:50 -!- gremly(~gremly@190.85.36.58) has joined #tryton | ||
2015-04-07 18:24 -!- pablovannini(~pablo@host220.190-224-145.telecom.net.ar) has joined #tryton | ||
2015-04-07 18:36 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton | ||
2015-04-07 18:47 -!- digitalsatori(~Thunderbi@113.88.15.246) has joined #tryton | ||
2015-04-07 18:57 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton | ||
2015-04-07 19:03 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton | ||
2015-04-07 19:13 -!- sunny_dealmeida(~quassel@203.115.76.105) has joined #tryton | ||
2015-04-07 20:16 -!- smarro(~sebastian@190.105.79.159) has joined #tryton | ||
2015-04-07 20:19 -!- munron(~AndChat68@197.211.216.214) has joined #tryton | ||
2015-04-07 20:29 -!- pablovannini(~pablo@200-081-038-003.wireless.movistar.net.ar) has joined #tryton | ||
2015-04-07 20:42 -!- yangoon(~mathiasb@p549F068A.dip0.t-ipconnect.de) has joined #tryton | ||
2015-04-07 20:46 -!- pablovannini(~pablo@host66.200-117-163.telecom.net.ar) has joined #tryton | ||
2015-04-07 20:54 -!- nineinchnick(~jwas@109.231.17.7) has joined #tryton | ||
2015-04-07 21:06 -!- MarkyC(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton | ||
2015-04-07 21:19 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton | ||
2015-04-07 21:48 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton | ||
2015-04-07 22:55 -!- pablovannini(~pablo@host90.190-229-146.telecom.net.ar) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!