IRC logs of #tryton for Wednesday, 2008-08-13 #tryton log beginning Wed Aug 13 00:00:01 CEST 2008
-!- FWiesing(n=Wiesinge@ has joined #tryton07:15
-!- leyoda( has joined #tryton08:08
-!- Gedd(n=ged@ has joined #tryton08:23
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton08:54
-!- Timitos(n=Timitos@ has joined #tryton09:06
-!- bechamel( has joined #tryton09:07
-!- cedk_( has joined #tryton09:08
-!- b52laptop(n=b52lapto@ has joined #tryton09:32
-!- gadaga( has joined #tryton09:43
CIA-54tryton: Timitos roundup * #250/account types - equity as parent of income: [new] setting equity as parent of income is a good change but now income statement is not working any more. I will provide a patch for this issue.10:09
-!- gael_( has joined #tryton10:15
CIA-54tryton: Timitos roundup * #250/account types - equity as parent of income: [testing] this patch fixes the issue.10:25
CIA-54tryton: udono roundup * #249/Network is unreachable: Another strange thing is that I have to encode the password two times to login, after connection refused. This behavior is an alert for the securi ...10:27
udonohi all10:28
Timitosudono: hi10:28
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton10:43
udonoMust class: name be unique for the system? Or can I use a class: Party in another module than relationship?11:07
cedkudono: no problems11:07
udonocedk: Thanks11:08
-!- kultviech( has joined #tryton11:08
cedkudono: juste named only once in a file11:08
cedkudono: but it will not really be a problem11:08
udonocedk: it's standard Python, I like it.11:08
leyodacedk: just finished a total installation of Tryton server and client under Leopard 10.5.4 with macports 1.6 and wants to do a documentation for the wiki, but I have a little pb no gtl icons of the menubar are visible, whick gtk theme you use ?11:09
udonocedk: but the _name attribute have to be unique, except I like to inherit/overwite them...11:10
cedkudono: yes11:11
cedkleyoda: all icons are in share/pixmaps/11:11
cedkleyoda: and by default tryton use the gtk setting to display or not the icons in menu bar11:13
-!- bechamel`( has joined #tryton11:15
leyodacedk: ok so ... if icons are not visible what can I look at to resolve this small problem11:17
cedkleyoda: do you see icon in the menu (folder, document, etc..)?11:18
cedkleyoda: otherwise go to options>Menubar and select Text and Icons11:18
leyodacedk: done since the beginning but no way I sent you by email a  capture11:19
-!- Timitos(n=Timitos@ has joined #tryton11:30
-!- gadaga( has joined #tryton11:43
leyodacedk: so ... an idea ? no errors in logs11:44
cedkleyoda: I have no log error11:45
cedkleyoda: by the way, the best way to report bug is
cedkleyoda: like that we have a knowledge database11:50
-!- kultviech( has left #tryton11:53
CIA-54tryton: Timitos roundup * #227/translation of client does not work under windows: [testing] with this patch client translation is working on windows xp12:10
cedkTimitos: what do you have in the LANG variable?12:12
Timitosleyoda: if you can make the wiki entry for installation on macos x i can also try and have a look. but i have only mac os x 10.3 here12:12
cedkTimitos: for the issue250, don't assign it to you if you want that we put the patch12:13
Timitoscedk: ok. sorry i forgot12:13
Timitoscedk: lang = os.getenv('LANG')  its an environment variable from ox12:14
leyodaTimitos: ok I will done as soon as possible but with the 10.3 I m not sure you can use de X11 2.2.3 or X11 2.3.012:14
Timitoscedk: on my machine it is None12:14
Timitosleyoda: ok i will see if i find some guy having 10.512:15
Timitosleyoda: what about 10.4?12:15
CIA-54tryton: Timitos roundup * #250/account types - equity as parent of income: forgot to change assignment of issue12:16
leyodaTimitos: same :(12:16
Timitosok. so i will look for 10.5 :-)12:16
CIA-54tryton: Timitos roundup * #227/translation of client does not work under windows: some more info about my patch,-where-am-I-doing-mistake-td16946215.html12:18
cedkleyoda: and when you connect to the server is there folder icon in the menu view ?12:23
cedkTimitos: I don't understand your patch for translation because you set LANG variable to unix locale name and not with the windows name12:25
leyodacedk: no12:26
Timitoscedk: did you take a look on the link i sent later?12:26
Timitoscedk: the funny thing is, that it is working. i think the important thing is, that os.environ['LANG'] must have a value before using setlocale12:28
cedkleyoda: I think this is because you gtk+ doesn't handle svg format12:29
cedkTimitos: yes but which value?12:29
cedkTimitos: de_DE or German_Germany ?12:29
Timitoswith my code it is set to de_DE and it is working.12:29
cedkTimitos: I will make the change but I will not use your patch because there is some mistake12:30
Timitosdefault_lang, default_enc = locale.getdefaultlocale() : this line brings the value de_DE on my machine12:30
cedkTimitos: we must force to use the language from the server and don't care about the LANG value12:31
Timitoscedk: the only thing i want is that translation is working on windows. i am not a native developper so i think you will surely find a better way to make it work. but i hope my information was helpful.12:33
Timitoscedk: yes you are right. my patch uses language from the system not from the settings of the user.12:34
CIA-54tryton: C?dric Krier <> default * 640:d3f277265218 tryton/tryton/ Set LANG variable for win32 for issue22712:36
CIA-54tryton: ced roundup * #227/translation of client does not work under windows: [resolved] Fix with changeset d3f27726521812:37
cedkTimitos: can you test with this changeset12:37
Timitoscedk: just a minute12:37
leyodacedk: DONE! in fact I must add the librsvg in the installation under Leopard and it work ;-) thanks12:38
leyodacedk: just need to test all prints under Leopard with Apercu now12:39
Timitoscedk: it is working. but now i get a warning: WARNING:translate:Unable to unset locale12:39
CIA-54tryton: C?dric Krier <> default * 641:a3f511b8b568 tryton/tryton/ Argument for LANG must be string and not None12:41
cedkTimitos: and with this one12:41
Timitoscedk: ok. the warning disappeared. Great!12:43
Timitoscedk: but stop. now translation is not working ?????12:44
-!- kultviech( has joined #tryton12:44
gadagacedk: in account.payment_term.line what do you think about make a default_currency by value of company.currency ?12:45
CIA-54tryton: C?dric Krier <> default * 642:84f72008ec8e tryton/tryton/ Don't call setlocale on win32 with lang = None12:47
cedkTimitos: and now?12:47
cedkgadaga: payment term are not linked to a company12:48
Timitoscedk: stop. was my mistake. need to work more with mercurical :-[.12:48
Timitoscedk: with changeset 641 everything is working.12:48
cedkTimitos: sure ?12:49
Timitoscedk: yes12:49
Timitoscedk: translation working and no warning12:49
cedkTimitos: so I revert 64212:49
Timitoscedk: yes12:49
CIA-54tryton: C?dric Krier <> default * 643:c3f90820d294 tryton/tryton/ Backed out changeset 84f72008ec8e12:50
udonohello, I need some assistance on domain's, has someone a little bit time?13:39
udonoThe relationship_party_roles module is nearly ready but needs some domains ...13:40
udonoYou can download and test it via
udonoMy problem: I have a class PartyRole with an one2many attribute to the class Role, the class Role has an one2many attribute to a class RoleType13:49
udonoI need in the class PartyRole a list of all roles with != "Title"13:53
udonoany suggestion welcome13:53
bechameludono: if you look in trytond/modules/stock/move.xml line 94 your will see that it's possible to put a dot on the left side of the expresion ('from_location.type', '=', 'supplier').13:57
udonobechamel: ah yes, I doesn't recognized before, thanks13:58
udonobechamel: hmm I try it with domain="[('', '!=', 'Title')]" on role attribute in PartyRole class, but I get an error...
udonobechamel: and the whole list is empty...14:08
bechameltry whitout quotes around your domain14:10
bechameludono: hum your domain is defined in python or in the xml ?14:10
udonobechamel: its in python14:11
bechameludono: so quotes are ok14:11
bechameludono: no sorry, remove them14:12
udonobechamel: ok, done, works. Error away, now next error:
udonobechamel: just wait, I try myself14:13
udonobechamel: is it possible to use in python, too? Because Tryton say:
udonobechamel: Tryton recognize  relationship_role_type as a name, not a table...14:17
bechameludono: yes, domain are expressed on the fields of the current object14:18
bechameludono: so you have to use the name of the field who link your object with relationship_role_type14:18
udonobechamel: ok, try14:20
udonobechamel: is this possible: relationship_role.relationship_role_type.name14:21
udonobechamel: having two dots?14:21
bechameludono: i dont think but i'm not sure14:21
udonobechamel: no doesn't work... I have no idea to go further.14:25
cedkudono: you must set "[('name', '!=', 'Title')]"14:26
-!- leyoda( has joined #tryton14:29
udonocedk: doesn't work, sorry all are included even this with title: The produced SQL is this: SELECT FROM "relationship_role" WHERE (( != %s) AND ( = %s)) ORDER BY ASC, ASC Params:  [u'Title', 'True']14:32
cedkudono: this SQL seems good14:33
udonocedk: no, WHERE (( != %s)  is wron, because I need this:  I have a class PartyRole with an one2many attribute to the class Role, the class Role has an one2many attribute to a class RoleType I need in the class PartyRole a list of all roles with != "Title"14:35
cedkudono: so put the domain I say on the one2many field of Role14:36
udonocedk: ok, but on Role I need the Titles for layouting the tree...14:37
cedkudono: I don't understand14:38
udonocedk: I need to restrict the Domain just in PartyRole, but in Role it shouldn't be restricted. I need something like this: select * from relationship_role where type in (select id from relationship_role_type where name != 'Title');14:40
cedkudono: so put the domain in the view14:40
cedkudono: but it seems to me suspicious14:41
udonocedk: why14:41
cedkudono: domain like that14:41
cedkudono: if you are on this view you can not see everything but if you are on this other view you can14:42
udonocedk: yes. I want to filter Roles which are just Titles for the classification in a tree.14:43
udonocedk: So I need to see them in the classification view, and to filter them in the view where I choose the Roles for a Party...14:44
cedkudono: so there is no problem to put the domain on the PartyRole field14:45
udonocedk: yes, the domain is just for the PartyRole, but not for Role self.14:46
cedkudono: so that what I sy14:46
udonocedk: but it doesnt work... but I see my description has been wrong...  one2many is wrong, its all many2one... I make an example paste14:49
udonocedk: bechamel: maybe this helps:
-!- kultviech( has left #tryton14:57
cedkudono: the only way I see is to create two view for relationship.role one for the one in with the domain and one for other use15:04
cedkudono: but I find this very strange15:04
cedkudono: if you can not use the name Title why is it there15:05
udonocedk: Because its a title for some roles, and not a role self.15:06
cedkudono: I find this very strange if it is not a role why is it there as type of a role ?15:07
udonocedk: it is a type title, not role.15:07
udonoit is like invoice_line type view15:08
udonocedk: you cann not put taxes or amounts on this invoice lines...15:08
cedkudono: no because we allow to use any type of invoice line15:08
cedkudono: it doesn't depend of if we come from invoice or refund, etc...15:09
cedkudono: perhaps you try to merge two things in one object15:10
udonocedk: ok, I understand and think about. Maybe there is no problem, and just strange thoughts of me, like you mentioned.15:12
udonocedk: I will let it as it is. Maybe later in use we finde some better ideas...15:12
udonocedk: Thanks for clearing :-)15:13
leyodacedk: about invoice date the format is amaerican format how to do to have franch format JJ/MM/AAAA ?16:03
cedkleyoda: set the user language to french16:07
leyodacdek: it's done since the beginning but no way16:21
cedkleyoda: have the french locale on the host16:28
leyodacedk: it's leopard so can you give me the exact environement variable you nedd because these are not necessary on Mac OSX16:29
-!- Gedd(n=ged@ has joined #tryton16:29
cedkleyoda: leopard need to have info to format date for the french16:31
leyodacedk: no variables like linux have define for that they probably have another file generate by 'international' who actualy is in french so I will export a variable for tryton16:36
leyodacedk: I have a warnin on the server like :  WARNING:web-service:Report account.invoice: unable to set locale "fr_FR.mac-roman"16:36
cedkleyoda: it seems that you don't have the fr_FR locales16:38
leyodacedk: If I define in the /etc/profile the variable  LANG=fr_FR.UTF-8 , it's ok it works16:55
cedkleyoda: can you run this in python: locale.setlocale(locale.LC_ALL, 'fr_FR')16:58
leyodacedk: euh ... it's ok in the interfcae but if I print the proforma the date is always in american format16:59
leyodacedk: Python 2.5.2 (r252:60911, Aug 12 2008, 10:45:54)16:59
leyoda[GCC 4.0.1 (Apple Inc. build 5465)] on darwin16:59
leyodaType "help", "copyright", "credits" or "license" for more information.16:59
leyoda>>> locale.setlocale(locale.LC_ALL, 'fr_FR')16:59
leyodaTraceback (most recent call last):16:59
leyoda  File "<stdin>", line 1, in <module>17:00
leyodaNameError: name 'locale' is not defined17:00
cedkleyoda: import locale17:01
leyodacedk: oups I saw the result .. 'fr_FR' but I always have  WARNING:web-service:Report account.invoice: unable to set locale "fr_FR.mac-roman"17:03
cedkleyoda: and with this: locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8')17:05
leyodacedk: 'fr_FR.UTF-8'17:07
CIA-54tryton: udono roundup * #251/KeyError: 'Aktuelle Sicht \xc3\x9cbersetzen': [new] Traceback (most recent call last): File "/tryton/gui/", line 498, in sig_plugin_execute tryton.plugin.execute(datas, self.windo ...17:37
leyodacedk: some ideas about this WARNING:web-service:Report account.invoice: unable to set locale "fr_FR.mac-roman"17:38
CIA-54tryton: udono roundup * #251/KeyError: 'Aktuelle Sicht \xc3\x9cbersetzen': [chatting] This error happens when open a client plugin (translate view in this case) the plugin is translated in "Aktuelle Sicht \xc3\x9cbersetze ...17:39
gadagacedk, bechamel : i've just seen that we have a module name 'sale' in mercurial, when you think that you finish it?17:41
ansxxdo any of you already worked with tinyerp reports ?17:54
cedkgadaga: I don't know18:01
cedkleyoda: it is the same as for the client18:01
leyodacedk: nop , onnly on the server18:22
cedkleyoda: it is the same problem as for the client18:23
cedkansxx: Tryton report has a more powerfull syntax18:25
ansxxI just found out about my problem :P18:25
ansxxusing OOo sections for block repeating sounds quite strange to me18:26
cedkansxx: it is because of the poor syntax used18:27
ansxxyep :/18:41
ansxxwhat's tryton exactly? I did not take a close look yet18:41
ansxxjust a framework? or something like openerp-ng ?18:42
cedkansxx: more something like openerp-ng18:42
cedkansxx: it is a rewrite that we make on the framework and on the modules18:42
ansxxI like openerp but a few things are... ugly, really18:42
ansxx& the documentation is so damn ugly18:43
udonocedk: do you know a way how I can dive into a hierarchie of parents. I have a recursive function but having problems on objects: new_role = role.parent; new_role.parent is not role.parent.parent but why?18:43
cedkudono: it must be18:44
udonocedk: ok, than the fault is elswhere...18:44
cedkudono: but recusion on tree is poor performing18:44
udonocedk: I need it for flattening the tree into a list.18:45
udonocedk: so I have to dive18:45
udonointo the parents...18:45
ansxxdoes the tryton team already attempted to "join" the openerp team in order to improve it instead of forking?18:46
cedkudono: there is the Modified Preorder Tree Traversal18:46
cedkansxx: we come from tiny company18:47
udonocedk: whats that?18:47
cedkudono: there is in the ORM all the stuff to handle this18:48
cedkudono: we implemented on the stock.location18:49
udonoansxx: Iam not this satisfied with tiny, they doomed all of our german translations of the wikibook...18:49
udonocedk: thanks!18:49
cedkudono: it allows to retrieve all the childs or parents with just one query18:50
ansxxcedk: you're working in Tiny ?18:50
udonocedk: grate!18:50
cedkansxx: was18:51
ansxxI know you're part of the gentoo team (yeah, I'm gentoo addicted aswell)18:51
ansxxso I need to thank you for that already :P18:51
ansxxmay I ask why you left ?18:51
ansxx(sorry but I'm starting openerp integration for my company so I also need to know the editor of the application)18:52
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton19:19
CIA-54tryton: C?dric Krier <> default * 829:50e12507bfe0 trytond/trytond/ir/module/ Fix remove user in call raise_user_error19:25
CIA-54tryton: C?dric Krier <> default * 830:d4add6f56c95 trytond/trytond/report/ Fix locale for win32 and MacOS X19:25
CIA-54tryton: C?dric Krier <> default * 644:59786b3bbf5d tryton/tryton/ Set encoding to UTF-8 for MacOS X19:25
leyodacedk: ;-)19:25
cedkleyoda: it must work now19:26
leyodacedk: I will try but i saxw CIA ;-)19:30
leyodacedk: always the same WARNING:web-service:Report account.invoice: unable to set locale "fr_FR.mac-roman" , only on the servewhen I print the invoice :(19:32
udonocedk: I implemented the Modified Preorder Tree Traversal, is there a way to find out all the parents of a node, I cant find an example20:14
udonocedk: ('parent', 'child_of', []) gives only the childs...20:15
cedkleyoda: you must update the server20:16
leyodacedk: I don a hg fpull and fupdate ... but you speak about another thing perhaps , sorry for the delay I al in a meeting20:17
cedkudono: I think it left < left_value and right > right_value20:17
cedkleyoda: it is not possible, I put a test to put encoding to UTF-8 if is 'mac'20:18
leyodacedk: perhaps but each time I do a print invoice of the invoice I have [Wed Aug 13 20:18:15 2008] INFO:init:module:account_invoice20:19
leyoda2008-08-13 20:18:16,275 INFO successful login from 'lionel' using database 'dbtryton1'20:19
leyoda[Wed Aug 13 20:18:16 2008] INFO:web-service:successful login from 'lionel' using database 'dbtryton1'20:19
leyoda2008-08-13 20:18:26,728 WARNING Report account.invoice: unable to set locale "fr_FR.mac-roman"20:19
leyodacedk: and date format is always american in the print result of the invoice20:22
cedkleyoda: I realy think that you don't run an updated server20:22
leyodacedk: When I done the hg fpull and hg fupdate I saw 2 modifications but how can verify I have the correction you done about this locales b20:23
cedkhg log -l120:24
cedkchangeset d4add6f56c9520:24
leyodacedk: hg log -l120:25
leyodachangeset:   830:d4add6f56c9520:25
leyodatag:         tip20:25
leyodauser:        C├ędric Krier <>20:25
leyodadate:        Wed Aug 13 19:25:10 2008 +020020:25
leyodasummary:     Fix locale for win32 and MacOS X20:25
leyodacedk : ... so ... the modification is done but it doesn't work ...20:25
cedkleyoda: if it works for the client and don't why it is not for the server it is the same code20:28
udonocedk: many thanks, works great!20:48
-!- leyoda( has left #tryton21:02
CIA-54tryton: udono roundup * #252/field with translate=True: on translation error:: [new] I created a field with translate=True name = fields.Char('Name', required=True, translate=True, states=STATES) Klick ok in the translation ...21:08
-!- udono( has joined #tryton21:18
-!- Gedd(n=ged@ has joined #tryton22:07
CIA-54tryton: ced roundup * #252/field with translate=True: on translation error:: [resolved] This is because you try to write on a record that comes from a xml file22:48

Generated by 2.11.0 by Marius Gedminas - find it at!