IRC logs of #tryton for Friday, 2013-04-19

chat.freenode.net #tryton log beginning Fri Apr 19 00:00:01 CEST 2013
2013-04-19 05:40 <iamnoob> hi,, just wondering... i have this many2many filed, and on its on_change event. i have updated a certain field on the record, everything goes fine. but after i added a domain, to filter out some records i dont want to show up on the search record.. the field im updating dont work anymore.. i used psycopg2 to update the records
2013-04-19 05:40 <iamnoob> anyone got an idea what went wrong? it only happens when i added a domain on the many2many field
2013-04-19 05:41 <iamnoob> or a much wiser idea to do what im trying to do..
2013-04-19 07:10 <iamnoob> is there a way i can insert a little code of mine before the actually saving of a record? i mean override the 'save record' part in tryton?
2013-04-19 08:11 <mrechte> iamnoob: I think you have to do it in the write / create overridden ModelStorage methods
2013-04-19 08:28 <iamnoob> mrechte: hi thanks for the reply, do you any official module that have those kind of events?
2013-04-19 08:28 <iamnoob> mrechet: do you know* typo
2013-04-19 08:52 <iamnoob> does anybody know how i can add a button in tryton? in my view_form? id would like to make a button and when that button is clicked it will run a python method if mine
2013-04-19 08:58 <rpit> iamnoob: Look here https://trytond.readthedocs.org/en/2.6.0/topics/views/index.html#button
2013-04-19 09:41 <iamnoob> rpit: hi thanks.. do you have any sample on how to make one? i cant make it work. i keep having problem on the .xml
2013-04-19 10:00 <iamnoob> rpit: i was able to make the button show up. but when i push the button it gives me an error
2013-04-19 10:17 <rpit> iamnoob: The one I remember: https://bitbucket.org/grasbauer/product_variant/src/7a396be781b2?at=default in product.py/xml
2013-04-19 10:41 <tarek_> hello people, i'm tring to install tryton, downloaded tryton and postgresql but when adding a user, with "postgres" I fail at it.
2013-04-19 10:42 <tarek_> my source for information is wiki.ubuntuusers.de/Tryton
2013-04-19 10:44 <cedk> tarek_: to install postgresql better to look at PostgreSQL howto
2013-04-19 10:44 <tarek_> cedk: ok i'll check that, and come back to you.
2013-04-19 11:05 <tarek_> exit
2013-04-19 11:06 <iamnoob> hi in the domain.. is '[(field',=,'')] ok? i just want to select all those recored that have a null value on a certain field? cause im having problem with this
2013-04-19 11:08 <cedk> iamnoob: use None instead of ''
2013-04-19 11:08 <flox> [('field', '=', False)] (maybe?)
2013-04-19 11:08 <iamnoob> cedk: ok thanks cedk, flox: using False will return me nothing.. from what i tested
2013-04-19 11:17 <iamnoob> cedk: i tried using None and is show me nothing.. when i use '' it shows what i needed.. but i dont want to use it because when i do adding a record,removing the same record, then adding it again. (in a many2many) tryton pops an error saying the field in my domain is not the right value.. something like that.. i check that record by double clicking it inside the many2many table.. and i saw
2013-04-19 11:17 <iamnoob> the field is greyed-out
2013-04-19 11:21 <cedk> iamnoob: if you want both use an OR
2013-04-19 11:27 <iamnoob> cedk: ok thanks, umm another thing.. need some comments on this one..
2013-04-19 11:28 <iamnoob> is doing this --> query = "UPDATE upr_pr SET uprrefnum = %s WHERE id =%s" %(str(self.arunitcontrolno),dbid) inside the on_change of an many2many advisable?
2013-04-19 11:29 <iamnoob> i wanted to update a certaing field, of a selected record (on the many2many) on the fly..
2013-04-19 11:35 <cedk> iamnoob: on_change are in readonly transaction
2013-04-19 11:40 <iamnoob> cedk: soo even if i manage to change the field.. i wont be able to write it (directly in the database)? sorry for me having soo many question, im trying my best to understand what your saying cedk.
2013-04-19 11:42 <cedk> iamnoob: and what about the user that revert is change in the client?
2013-04-19 11:42 <cedk> iamnoob: or doesn't save it when closing the tab
2013-04-19 11:42 <cedk> iamnoob: the principle of on_change being readonly is not negociable :-)
2013-04-19 11:44 <iamnoob> cedk: i see.. i have think of that part too.. thanks for correcting me up cedk
2013-04-19 11:45 <iamnoob> cedk: is there a way a can move the Updating query part, before the record is saved?
2013-04-19 11:45 <iamnoob> cedk: like overriding the save record event? thats the only place i could think of will do what i need
2013-04-19 11:45 <cedk> iamnoob: you can override the create/write methods
2013-04-19 11:46 <iamnoob> cedk: are you talking about this one i.e --> @classmethod
2013-04-19 11:46 <iamnoob> def write(cls, upr, vals):
2013-04-19 11:48 <cedk> iamnoob: yes
2013-04-19 11:49 <iamnoob> cedk: ok alot thanks cedk, for putting me in the right direction :)
2013-04-19 12:27 <tarek_> hi, I followed the instructions that come with the tryton-server pachaged at /usr/share/doc/tryton-server/README.Debian
2013-04-19 12:28 <tarek_> now I have a question at the part of creating the database user. What is the username of the following command:
2013-04-19 12:28 <tarek_> su - postgres -c "createuser --createdb --no-createrole --no-superuser --pwprompt tryton"
2013-04-19 12:28 <tarek_> ??
2013-04-19 12:29 <cedk> tarek_: tryton
2013-04-19 12:29 <tarek_> cedk: ah ok
2013-04-19 12:43 <tarek_> cedk: what OS are you using for the tryton-server?
2013-04-19 12:44 <cedk> tarek_: OpenBSD
2013-04-19 12:44 <tarek_> and what are the os of the clients
2013-04-19 12:44 <tarek_> ??
2013-04-19 12:45 <Pilou> It works well with GNU\Linux too ;)
2013-04-19 12:46 <Pilou> tarek_: Binary/packaged clients are available here: http://www.tryton.org/download.html
2013-04-19 13:06 <tarek_> Pilou: i installed the tryton client from apt-get (kubuntu OS), and it fails to start. Does the link make a difference?
2013-04-19 13:07 <Pilou> What is the error?
2013-04-19 13:08 <tarek_> Pilou: I get the bouncing icon near my mouse for a while and then, nothing happens
2013-04-19 13:10 <tarek_> Pilou: it also stays for a while on the taskbar and then it simply disappears
2013-04-19 13:10 <Pilou> run 'tryton-client' from a terminal in order to check stderr
2013-04-19 13:11 <tarek_> here you go: http://pastebin.com/165hFaep
2013-04-19 13:13 <tarek_> i downloaded the tryton-client from the link that you gave me
2013-04-19 13:13 <tarek_> and installed it
2013-04-19 13:14 <tarek_> uname -r
2013-04-19 13:23 <tarek_> am I missing something here...
2013-04-19 14:00 <cedk> tarek_: probably missing librsvg
2013-04-19 14:07 <tarek_> cedk: checked it. it is installed
2013-04-19 14:13 <eriam> Hello, is there a windows current binary (2.7 branch) ?
2013-04-19 14:21 <tarek_> bye
2013-04-19 14:28 <cedk> eriam: at least not on tryton.org
2013-04-19 14:30 <tarek_> cedk: you have any possible sotions for my problem? I get the output on my console when trying to start the client
2013-04-19 14:30 <tarek_> http://pastebin.com/c19C2g5v
2013-04-19 14:34 <cedk> tarek_: is the file exist ?
2013-04-19 14:35 <tarek_> cedk: yes
2013-04-19 14:35 <tarek_> cedk: the .svg file
2013-04-19 14:35 <tarek_> yes
2013-04-19 14:37 <cedk> tarek_: so I will guess gtk is not linked to the librsvg
2013-04-19 14:37 <cedk> tarek_: what is your OS?
2013-04-19 14:37 <tarek_> cedk: kubuntu
2013-04-19 14:43 <cedk> tarek_: seem to no be alone: https://github.com/lyricat/Hotot/issues/88
2013-04-19 14:44 <cedk> tarek_: you could check the output: gdk-pixbuf-query-loaders
2013-04-19 14:50 <tarek_> cedk: it isn't installed
2013-04-19 14:53 <cedk> tarek_: you don't have gdk-pixbuf-query-loaders ?
2013-04-19 14:54 <tarek_> cedk: no it isn't apparently there
2013-04-19 14:54 <tarek_> cedk: tryting to search for the package, is it this one? libgdk-pixbuf2.0-0
2013-04-19 14:54 <tarek_> ??
2013-04-19 14:55 <cedk> tarek_: I guess you need it, it should be in gdk-pixbuf
2013-04-19 14:55 <tarek_> brb
2013-04-19 14:55 <tarek_> exit
2013-04-19 14:55 <tarek_> cedk: what i found is this one libgdk-pixbuf2.0-0
2013-04-19 14:56 <tarek_> cedk: brb
2013-04-19 15:01 <tarek_> cedk: i'm back
2013-04-19 15:02 <tarek_> cedk: the only package that could match is "libgdk-pixbuf2.0-0" and installed
2013-04-19 15:02 <cedk> tarek_: then seems kunbutu doesn't package correctly the stuffs
2013-04-19 15:07 <tarek_> ok i'll check with kubuntu then
2013-04-19 15:08 -!- tarek_(~tarek@94.187.22.222) has left #tryton
2013-04-19 15:49 -!- SISalp(~dominique@toulon.sisalp.net) has left #tryton
2013-04-19 17:46 <eriam> cedk: any chance a 2.7 windows binary client lands on tryton.org ?
2013-04-19 17:50 <cedk> eriam: no because we will build 2.8 next week
2013-04-19 17:50 <cedk> eriam: we don't have enough manpower to manage to build windows client on trunk development
2013-04-19 17:51 <eriam> ok np that's a perfectly good reason
2013-04-19 17:52 <eriam> so trunk is 2.7 and you will release 2.8 next week -- correct ?
2013-04-19 17:54 <cedk> eriam: yes
2013-04-19 17:56 <Pilou> eriam: you could build your own
2013-04-19 18:07 <eriam> Pilou: indeed
2013-04-19 18:58 <cedk> yangoon, udono: if nobody takes the leadership of the German translation, there will be no update of it for the release
2013-04-19 21:44 <coeps> HI, if i have a one2one relation, is the reference the right field to go with?

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