IRC logs of #tryton for Tuesday, 2008-09-30

chat.freenode.net #tryton log beginning Tue Sep 30 00:00:01 CEST 2008
-!- ikks(n=igor@190.12.156.178) has joined #tryton03:55
-!- yangoon(n=mathiasb@p549F5A5E.dip.t-dialin.net) has joined #tryton05:18
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton08:23
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:05
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 792:661150a2fab6 tryton/MANIFEST.in: Add svg files in MANIFEST10:19
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 793:57e9786acdb2 tryton/setup.py: Use setuptools10:19
-!- Gedd(n=ged@ip-80-236-194-22.dsl.scarlet.be) has joined #tryton10:28
CIA-52tryton: Timitos roundup * #401/Exception: ('UserError', 'Constraint Error', u'Das Modell kann nicht mehrfach vergeben werden!', 'Traceback (most recent call la...: [new] Traceback (most recent call last): File "\tryton\gui\window\view_form\view\form.py", line 148, in _action value = Action._exec_action( ...10:31
CIA-52tryton: Timitos roundup * #401/Exception: ('UserError', 'Constraint Error', u'Das Modell kann nicht mehrfach vergeben werden!', 'Traceback (most recent call la...: [chatting] this happend when i was installing modules in a new db. client worked on win xp10:34
CIA-52tryton: Timitos roundup * #393/many2one field only shows ids not name value: i think i now understand this error. the problem is that i cannot add many2one field to object relationship.country. i think this depends on some ...10:41
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1046:00da67ad4f4c trytond/ (MANIFEST.in setup.py): Use setuptools10:45
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 50:ca17de199563 gentoo-overlay/app-office/trytond/ (Manifest trytond-9999.ebuild): Remove genshi dependency10:46
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 51:4f30da4904a0 gentoo-overlay/app-office/tryton/ (Manifest tryton-9999.ebuild): Add egenix-mx-base dependency10:46
CIA-52tryton: ced roundup * #393/many2one field only shows ids not name value: [resolved] If you want to allow change of configuration records, you must change the function check_xml_record10:49
-!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton11:05
-!- ChanServ(ChanServ@services.) has joined #tryton11:16
-!- udono(n=udono@dynamic-unidsl-85-197-23-24.westend.de) has joined #tryton11:16
-!- yangoon(n=mathiasb@p549F5A5E.dip.t-dialin.net) has joined #tryton11:16
-!- Gedd(n=ged@ip-80-236-194-22.dsl.scarlet.be) has joined #tryton11:16
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton11:16
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton11:16
-!- b52laptop(n=b52lapto@41.249.250.195) has joined #tryton11:16
-!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has joined #tryton11:21
-!- udono(n=udono@dynamic-unidsl-85-197-23-24.westend.de) has joined #tryton11:55
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1047:422c512c3f3d trytond/trytond/ (modules/__init__.py pooler.py tools/convert.py): Improve sempahore on pooler for issue40111:55
CIA-52tryton: ced roundup * #401/Exception: ('UserError', 'Constraint Error', u'Das Modell kann nicht mehrfach vergeben werden!', 'Traceback (most recent call la...: [resolved] Fixed with changeset 422c512c3f3d11:55
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 794:52114fb19932 tryton/tryton/rpc.py: Improve semaphore on rpc.execute11:55
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 0:6ec8f6a1c665 sale/ (8 files): Initial commit of sale module12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1:efab9ecbc181 sale/ (sale.py sale.xml): Fix for new domain evaluation12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 2:4cd305d3cd27 sale/ (sale.py sale.xml): Fix typo12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 3:9a57464edbe3 sale/sale.py: Improve fields function on sale to use the same BrowseRecordList12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 4:30a76464373a sale/sale.py: Use new product.default_uom.category keyword to search on uom12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 5:71068d1ab5fc sale/sale.py:12:13
CIA-52tryton: Improve readonly states on currency12:13
CIA-52tryton: Set readonly only if there is a currency set12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 6:e2ab67a8f5d7 sale/sale.py: Improve on_change_with_amount if there is no currency12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 7:610a9ca80fe5 sale/sale.py: Add check for delete invoice that comes from a sale12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 8:64f5f2294e8b sale/ (COPYRIGHT LICENSE): Use GPLv312:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 9:916ada5482cf sale/setup.py: Fix setup classifiers and license12:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 0:30b81d8b96e6 analytic_sale/ (7 files): Initial commit of analytic sale module12:15
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1:0fc43baf39da analytic_sale/ (COPYRIGHT LICENSE): Use GPLv312:15
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 2:ab0a1de8c001 analytic_sale/setup.py: Fix setup classifiers and license12:15
-!- udono(n=udono@dynamic-unidsl-85-197-23-24.westend.de) has joined #tryton12:19
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 136:e23927ebfb10 relationship/ (MANIFEST.in setup.py): Use setuptools12:54
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1048:9faa155d04a3 trytond/setup.py: Remove unused import12:54
CIA-52tryton: Timitos roundup * #402/currency_digits not working for new sale order before saving: [new] seems to be the same problem as issue256 https://bugs.tryton.org/roundup/issue25614:15
Timitoscedk: i still have some problems with my custom field in relationship.country. overriding of check_xml_record did not help.15:54
Timitoscedk: i think the problem has to do with the object relationship.country but i don´t find the problem15:54
Timitoscedk: if i add my code to country.py in relationship module everything seems to be ok15:55
Timitoscedk: if i add a default value to a field that is added to a table which already contains records. is the default value executed for the existing records?15:58
cedkTimitos: no15:59
Timitoscedk: ok so i cannot set a field to required in a table which already contains records with tryton installation? i will always have to do this later with sql statement?16:00
udonoTimitos: isnt it possible to provide the data via XML?16:04
udonoTimitos: IC it is not possible...16:04
cedkTimitos: no, the server will try to put the default value when creating the column in the database16:04
Timitoscedk: but i think that this does not work with object relationship.country. this would explain my problems16:05
Timitoscedk: perhaps check_xml_record is the problem in this case?16:06
cedkTimitos: perhaps the default value can not be executed16:06
cedkTimitos: copy/paste the code somewhere16:06
Timitoscedk: i will check first16:07
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 795:74e792803ed0 tryton/tryton/gui/window/view_form/model/record.py:16:08
CIA-52tryton: Don't call on_whange_with if the field is the same than the one that comes to16:08
CIA-52tryton: change16:08
udonoThe problem is AFAIS, that you try to extend an existing table with a new column which is required. All existing data in this table doesn't have a value, so postgres cant create the NOT NULL constraint...16:13
udonoTimitos:16:13
Timitosudono: ced wrote this: no, the server will try to put the default value when creating the column in the database16:14
cedkif the default function is callable when creating the field16:14
udonoTimitos: The problem is before using default values...16:15
cedkit is in sql_db.py line 38116:15
udonoTimitos: Did it work when you delete all records in the table relationship_countrys?16:17
Timitosudono: i will try16:17
udonocedk: If you want to Update the records like in 381 done, you need at first Alter Table relationship_countries Add column xyz NOT NULL, but this doesn't work, since there are already rows in the table16:19
udonocedk: Timitos needs an SQL default in the table, I think...16:21
CIA-52tryton: Timitos roundup * #403/res = self.cursor.execute(sql, params): [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 282, in run res = method(*msg[2:]) File "/trytond/web_service/obj ...16:23
cedkudono: I just test and when you add a column there is no "not null" constraint16:23
CIA-52tryton: Timitos roundup * #403/res = self.cursor.execute(sql, params): [chatting] this happens when i try to delete company. i think this exception needs to be handled16:23
CIA-52tryton: ced roundup * #403/res = self.cursor.execute(sql, params): [need-eg] need more information16:24
udonocedk: ...even when you say required=True?16:26
Timitoscedk: i tried the function and it seems to work. this is my code: http://paste.pocoo.org/show/86592/16:27
cedkudono: it is added after16:28
udonocedk: ok16:28
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 796:814f495eaeca tryton/tryton/gui/window/view_form/view/form.py: Fix set_cursor for last widget16:30
udonoTimitos: forgotten name_get?! Ok, I learned more...16:30
cedkTimitos: I think your problem comes from the when the field tradezone is created, the table tax_zone is empty16:31
cedkTimitos: so there is no default value16:31
Timitoscedk: i added some values in the xml. is this not enough?16:32
udonoTimitos: yes I first started to say, put the country.xml as the last entry in __tryton__py16:32
cedkTimitos: but as I told to udono 1-2 days ago, are you sure that tradezone must not be a Selection field16:32
cedkTimitos: no the table are first created before the xml16:33
Timitoscedk: if i make trade zone as a selection field i cannot create new trade zones. there are many trade zones in the world i think16:35
Timitoscedk: but there is still another problem with this field i do not understand. if i create a new record in this table there is not shown the name of the default value but the id of the entry and do not get the trick to make this work correct16:36
Timitoscedk: would it help if i divide the code into to modules? so i create a module tax.zone and later i add the module where i add tax.zone to relationship.country16:38
Timitosto=two16:38
cedkTimitos: what is the use of trade zone ?16:39
cedkTimitos: I'm really sure that the field must be a selection because I see this kind of code: [('name', '=', "Third Country")]16:40
Timitoscedk: i will try to make it as a selection. but i think problems like this one will occur again later. a selection will perhaps be the solution for my problem yes. but i don´t know if it can be a solution for similar problems like this16:43
cedkTimitos: I don't know why you have id instead of name, but many2one field is used in many places without this problems16:44
bechamelcedk, Timitos : for the id problem: is there a 'name' field on the tax_zone table (and if not, is there _rec_name) ?16:47
Timitosbechamel: http://paste.pocoo.org/show/86592/16:48
udonoTimitos: another point is that you inherit relationship.country, but dont give it a def __init__(self):16:50
udonoTimitos:  with super(Country, self).__init__()16:51
udonoTimitos: but dont know if it is needed16:51
udonoafk16:51
cedkudono: no need if you don't change __init__ function16:52
Timitosudono: i don´t think that this is needed as i never had problems.16:52
Timitoscedk: udono: bechamel: lets stop that for today. i will do it with a selection now. but i am sure that we will have this problem again later.16:53
udonoTimitos: why problem? Are you unshure about extending selections?16:54
Timitosudono: i was not talking from selections when i was talking from my problem16:55
udonoTimitos: ok16:55
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1049:31619c60bcbc trytond/trytond/osv/osv.py: Add OPERATORS in osv17:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1050:45d57a9d0dc0 trytond/trytond/osv/orm.py: Handle _rpc_allowed for inherit fields also17:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 79:5b09968565c7 product/uom.py:17:13
CIA-52tryton: Fix search for xmlrpc17:13
CIA-52tryton: Add keywords uom.category for search clause17:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 10:df6f02667031 sale/ (sale.py sale.xml): Add sale_uom on product and use it as default value for sale lines17:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 11:4660141c059e sale/sale.py: Add default_currency_digits for issue40217:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 217:104219e99b90 stock/packing.py: Remove unused quote on domain17:13
CIA-52tryton: ced roundup * #402/currency_digits not working for new sale order before saving: [chatting] Fix with changeset 4660141c059e17:13
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 94:efe4f4df5f2f purchase/ (purchase.py purchase.xml): Add purchase_uom on product and use it as default value for purchase lines17:31
-!- udono(n=udono@dynamic-unidsl-85-197-19-186.westend.de) has joined #tryton17:42
cedkudono: did you work on the order attribute for selection field ?18:28
udonocedk: not now, its on my todo18:28
cedkudono: because I need it, so i will do it18:30
udonocedk: :-)18:30
udonocedk: ToDo done ;-)18:30
udonocedk: But iam initerested in your solution for my other problem: Nested lists like menus... but this take a while, too. Because I need to learn more about treemodel and liststore...18:33
cedkudono: for object there is the _order variable18:34
udonocedk: and?18:35
udonocedk: for me it is enough to have an attribule sort=True|False in fields.Selection18:35
udonocedk: But I dont know if the actual sort expression sorts german Umlauts and french accents well...18:37
CIA-52tryton: Timitos roundup * #404/many2many widget needs improvement because of the new button: [new] in the selection windows of the many2many widget is a new button implemented. this new button cannot be used when the table has only one rec ...18:47
-!- Gedd(n=ged@77.109.116.78) has joined #tryton19:48
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1051:3cbc2157372d trytond/trytond/osv/ (fields.py orm.py): Add sort attribute on Selection field19:49
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 797:6f16b1dd2da6 tryton/tryton/gui/window/view_form/view/ (form_gtk/selection.py list_gtk/parser.py): Handle sort attribute on Selection field19:49
-!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has left #tryton20:24
udonocedk: Is there a way to get a field from an inherited view shown for the Search? I try it with select=1 in the field definition and with select="1" in the view definition of the inherited view, but it seems not to work...20:31
cedkudono: you must add select="1" by inheritage on the view20:32
cedkudono: tree20:32
udonocedk: thanks20:33
Timitoscedk: i have some problems with exporting a translation of our custom account chart module. in the export there is the res_id column missing completely. but i did the export from a complete new db. how can this happen?20:55
udonoTimitos: is there an xml_id instead?21:05
Timitosudono: no. i think i found the problem. i have ids that can be converted to an int. as i see this is not possible or something like that.21:06
udonoTimitos: If they are int, then they need to have no "" around...21:09
Timitosudono: ok. i will change the module21:09
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 798:6206c0796065 tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py:22:25
CIA-52tryton: Open search window in many2many even if there is only one result if there is22:25
CIA-52tryton: no text in the entry for issue40422:25
CIA-52tryton: ced roundup * #404/many2many widget needs improvement because of the new button: [resolved] Fix with changeset 6206c079606522:26
udonobechamel: did the active field has a special hidden function, only to show active=True in search. Or is it with other bolean fields the same?22:42
-!- udono(n=udono@dynamic-unidsl-85-197-19-186.westend.de) has joined #tryton22:44
bechameludono: yes there is an implict mecanism behind active22:49
udonobechamel: is it possible to use it for other binary fields?22:50
bechameludono: i don't think so22:51
bechameludono: what do you want to achieve ?22:51
udonobechamel: Partys can be marked as "informal", that means they are just for information, like the tryton-chat... normal partys are "legal" = not informal, they can be used in busines transactions... but if I think about, a domain could be better...22:53
bechameludono: what you can do is to add a domain on the act_window of your menuitem22:54
udonobechamel: ah, ok, then only the items which fit the domain are shown. So I can make menuentrys like All Partys and Legal Partys, This is good! Thanks22:56
udonobechamel: did you read my documentation about fields.Selection?22:58
bechameludono: yes there are such menuitems in account_invoice/invoice.xml22:58
bechameludono: yes but i started to work on something else22:59
bechameludono: is it ok for you if i modify your text to match the more formal style of the rest of the doc ?23:00
udonobechamel: No Problem, but let the jokes inside ;-)23:01
udonobye all23:04
bechameludono: bye23:04
-!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has left #tryton23:09

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