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

chat.freenode.net #tryton log beginning Tue Sep 30 00:00:01 CEST 2008
2008-09-30 03:55 -!- ikks(n=igor@190.12.156.178) has joined #tryton
2008-09-30 05:18 -!- yangoon(n=mathiasb@p549F5A5E.dip.t-dialin.net) has joined #tryton
2008-09-30 08:23 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-09-30 09:05 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-09-30 10:19 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 792:661150a2fab6 tryton/MANIFEST.in: Add svg files in MANIFEST
2008-09-30 10:19 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 793:57e9786acdb2 tryton/setup.py: Use setuptools
2008-09-30 10:28 -!- Gedd(n=ged@ip-80-236-194-22.dsl.scarlet.be) has joined #tryton
2008-09-30 10:31 <CIA-52> tryton: 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( ...
2008-09-30 10:34 <CIA-52> tryton: 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 xp
2008-09-30 10:41 <CIA-52> tryton: 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 ...
2008-09-30 10:45 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1046:00da67ad4f4c trytond/ (MANIFEST.in setup.py): Use setuptools
2008-09-30 10:46 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 50:ca17de199563 gentoo-overlay/app-office/trytond/ (Manifest trytond-9999.ebuild): Remove genshi dependency
2008-09-30 10:46 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 51:4f30da4904a0 gentoo-overlay/app-office/tryton/ (Manifest tryton-9999.ebuild): Add egenix-mx-base dependency
2008-09-30 10:49 <CIA-52> tryton: 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_record
2008-09-30 11:05 -!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton
2008-09-30 11:16 -!- ChanServ(ChanServ@services.) has joined #tryton
2008-09-30 11:16 -!- udono(n=udono@dynamic-unidsl-85-197-23-24.westend.de) has joined #tryton
2008-09-30 11:16 -!- yangoon(n=mathiasb@p549F5A5E.dip.t-dialin.net) has joined #tryton
2008-09-30 11:16 -!- Gedd(n=ged@ip-80-236-194-22.dsl.scarlet.be) has joined #tryton
2008-09-30 11:16 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-09-30 11:16 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-09-30 11:16 -!- b52laptop(n=b52lapto@41.249.250.195) has joined #tryton
2008-09-30 11:21 -!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has joined #tryton
2008-09-30 11:55 -!- udono(n=udono@dynamic-unidsl-85-197-23-24.westend.de) has joined #tryton
2008-09-30 11:55 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1047:422c512c3f3d trytond/trytond/ (modules/__init__.py pooler.py tools/convert.py): Improve sempahore on pooler for issue401
2008-09-30 11:55 <CIA-52> tryton: ced roundup * #401/Exception: ('UserError', 'Constraint Error', u'Das Modell kann nicht mehrfach vergeben werden!', 'Traceback (most recent call la...: [resolved] Fixed with changeset 422c512c3f3d
2008-09-30 11:55 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 794:52114fb19932 tryton/tryton/rpc.py: Improve semaphore on rpc.execute
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 0:6ec8f6a1c665 sale/ (8 files): Initial commit of sale module
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1:efab9ecbc181 sale/ (sale.py sale.xml): Fix for new domain evaluation
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 2:4cd305d3cd27 sale/ (sale.py sale.xml): Fix typo
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 3:9a57464edbe3 sale/sale.py: Improve fields function on sale to use the same BrowseRecordList
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 4:30a76464373a sale/sale.py: Use new product.default_uom.category keyword to search on uom
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 5:71068d1ab5fc sale/sale.py:
2008-09-30 12:13 <CIA-52> tryton: Improve readonly states on currency
2008-09-30 12:13 <CIA-52> tryton: Set readonly only if there is a currency set
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 6:e2ab67a8f5d7 sale/sale.py: Improve on_change_with_amount if there is no currency
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 7:610a9ca80fe5 sale/sale.py: Add check for delete invoice that comes from a sale
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 8:64f5f2294e8b sale/ (COPYRIGHT LICENSE): Use GPLv3
2008-09-30 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 9:916ada5482cf sale/setup.py: Fix setup classifiers and license
2008-09-30 12:15 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 0:30b81d8b96e6 analytic_sale/ (7 files): Initial commit of analytic sale module
2008-09-30 12:15 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1:0fc43baf39da analytic_sale/ (COPYRIGHT LICENSE): Use GPLv3
2008-09-30 12:15 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 2:ab0a1de8c001 analytic_sale/setup.py: Fix setup classifiers and license
2008-09-30 12:19 -!- udono(n=udono@dynamic-unidsl-85-197-23-24.westend.de) has joined #tryton
2008-09-30 12:54 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 136:e23927ebfb10 relationship/ (MANIFEST.in setup.py): Use setuptools
2008-09-30 12:54 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1048:9faa155d04a3 trytond/setup.py: Remove unused import
2008-09-30 14:15 <CIA-52> tryton: 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/issue256
2008-09-30 15:54 <Timitos> cedk: i still have some problems with my custom field in relationship.country. overriding of check_xml_record did not help.
2008-09-30 15:54 <Timitos> cedk: i think the problem has to do with the object relationship.country but i don´t find the problem
2008-09-30 15:55 <Timitos> cedk: if i add my code to country.py in relationship module everything seems to be ok
2008-09-30 15:58 <Timitos> cedk: 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?
2008-09-30 15:59 <cedk> Timitos: no
2008-09-30 16:00 <Timitos> cedk: 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?
2008-09-30 16:04 <udono> Timitos: isnt it possible to provide the data via XML?
2008-09-30 16:04 <udono> Timitos: IC it is not possible...
2008-09-30 16:04 <cedk> Timitos: no, the server will try to put the default value when creating the column in the database
2008-09-30 16:05 <Timitos> cedk: but i think that this does not work with object relationship.country. this would explain my problems
2008-09-30 16:06 <Timitos> cedk: perhaps check_xml_record is the problem in this case?
2008-09-30 16:06 <cedk> Timitos: perhaps the default value can not be executed
2008-09-30 16:06 <cedk> Timitos: copy/paste the code somewhere
2008-09-30 16:07 <Timitos> cedk: i will check first
2008-09-30 16:08 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 795:74e792803ed0 tryton/tryton/gui/window/view_form/model/record.py:
2008-09-30 16:08 <CIA-52> tryton: Don't call on_whange_with if the field is the same than the one that comes to
2008-09-30 16:08 <CIA-52> tryton: change
2008-09-30 16:13 <udono> The 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...
2008-09-30 16:13 <udono> Timitos:
2008-09-30 16:14 <Timitos> udono: ced wrote this: no, the server will try to put the default value when creating the column in the database
2008-09-30 16:14 <cedk> if the default function is callable when creating the field
2008-09-30 16:15 <udono> Timitos: The problem is before using default values...
2008-09-30 16:15 <cedk> it is in sql_db.py line 381
2008-09-30 16:17 <udono> Timitos: Did it work when you delete all records in the table relationship_countrys?
2008-09-30 16:17 <Timitos> udono: i will try
2008-09-30 16:19 <udono> cedk: 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 table
2008-09-30 16:21 <udono> cedk: Timitos needs an SQL default in the table, I think...
2008-09-30 16:23 <CIA-52> tryton: 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 ...
2008-09-30 16:23 <cedk> udono: I just test and when you add a column there is no "not null" constraint
2008-09-30 16:23 <CIA-52> tryton: 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 handled
2008-09-30 16:24 <CIA-52> tryton: ced roundup * #403/res = self.cursor.execute(sql, params): [need-eg] need more information
2008-09-30 16:26 <udono> cedk: ...even when you say required=True?
2008-09-30 16:27 <Timitos> cedk: i tried the function and it seems to work. this is my code: http://paste.pocoo.org/show/86592/
2008-09-30 16:28 <cedk> udono: it is added after
2008-09-30 16:28 <udono> cedk: ok
2008-09-30 16:30 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 796:814f495eaeca tryton/tryton/gui/window/view_form/view/form.py: Fix set_cursor for last widget
2008-09-30 16:30 <udono> Timitos: forgotten name_get?! Ok, I learned more...
2008-09-30 16:31 <cedk> Timitos: I think your problem comes from the when the field tradezone is created, the table tax_zone is empty
2008-09-30 16:31 <cedk> Timitos: so there is no default value
2008-09-30 16:32 <Timitos> cedk: i added some values in the xml. is this not enough?
2008-09-30 16:32 <udono> Timitos: yes I first started to say, put the country.xml as the last entry in __tryton__py
2008-09-30 16:32 <cedk> Timitos: but as I told to udono 1-2 days ago, are you sure that tradezone must not be a Selection field
2008-09-30 16:33 <cedk> Timitos: no the table are first created before the xml
2008-09-30 16:35 <Timitos> cedk: if i make trade zone as a selection field i cannot create new trade zones. there are many trade zones in the world i think
2008-09-30 16:36 <Timitos> cedk: 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 correct
2008-09-30 16:38 <Timitos> cedk: 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.country
2008-09-30 16:38 <Timitos> to=two
2008-09-30 16:39 <cedk> Timitos: what is the use of trade zone ?
2008-09-30 16:40 <cedk> Timitos: I'm really sure that the field must be a selection because I see this kind of code: [('name', '=', "Third Country")]
2008-09-30 16:43 <Timitos> cedk: 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 this
2008-09-30 16:44 <cedk> Timitos: I don't know why you have id instead of name, but many2one field is used in many places without this problems
2008-09-30 16:47 <bechamel> cedk, Timitos : for the id problem: is there a 'name' field on the tax_zone table (and if not, is there _rec_name) ?
2008-09-30 16:48 <Timitos> bechamel: http://paste.pocoo.org/show/86592/
2008-09-30 16:50 <udono> Timitos: another point is that you inherit relationship.country, but dont give it a def __init__(self):
2008-09-30 16:51 <udono> Timitos: with super(Country, self).__init__()
2008-09-30 16:51 <udono> Timitos: but dont know if it is needed
2008-09-30 16:51 <udono> afk
2008-09-30 16:52 <cedk> udono: no need if you don't change __init__ function
2008-09-30 16:52 <Timitos> udono: i don´t think that this is needed as i never had problems.
2008-09-30 16:53 <Timitos> cedk: 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.
2008-09-30 16:54 <udono> Timitos: why problem? Are you unshure about extending selections?
2008-09-30 16:55 <Timitos> udono: i was not talking from selections when i was talking from my problem
2008-09-30 16:55 <udono> Timitos: ok
2008-09-30 17:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1049:31619c60bcbc trytond/trytond/osv/osv.py: Add OPERATORS in osv
2008-09-30 17:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1050:45d57a9d0dc0 trytond/trytond/osv/orm.py: Handle _rpc_allowed for inherit fields also
2008-09-30 17:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 79:5b09968565c7 product/uom.py:
2008-09-30 17:13 <CIA-52> tryton: Fix search for xmlrpc
2008-09-30 17:13 <CIA-52> tryton: Add keywords uom.category for search clause
2008-09-30 17:13 <CIA-52> tryton: 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 lines
2008-09-30 17:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 11:4660141c059e sale/sale.py: Add default_currency_digits for issue402
2008-09-30 17:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 217:104219e99b90 stock/packing.py: Remove unused quote on domain
2008-09-30 17:13 <CIA-52> tryton: ced roundup * #402/currency_digits not working for new sale order before saving: [chatting] Fix with changeset 4660141c059e
2008-09-30 17:31 <CIA-52> tryton: 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 lines
2008-09-30 17:42 -!- udono(n=udono@dynamic-unidsl-85-197-19-186.westend.de) has joined #tryton
2008-09-30 18:28 <cedk> udono: did you work on the order attribute for selection field ?
2008-09-30 18:28 <udono> cedk: not now, its on my todo
2008-09-30 18:30 <cedk> udono: because I need it, so i will do it
2008-09-30 18:30 <udono> cedk: :-)
2008-09-30 18:30 <udono> cedk: ToDo done ;-)
2008-09-30 18:33 <udono> cedk: 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...
2008-09-30 18:34 <cedk> udono: for object there is the _order variable
2008-09-30 18:35 <udono> cedk: and?
2008-09-30 18:35 <udono> cedk: for me it is enough to have an attribule sort=True|False in fields.Selection
2008-09-30 18:37 <udono> cedk: But I dont know if the actual sort expression sorts german Umlauts and french accents well...
2008-09-30 18:47 <CIA-52> tryton: 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 ...
2008-09-30 19:48 -!- Gedd(n=ged@77.109.116.78) has joined #tryton
2008-09-30 19:49 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1051:3cbc2157372d trytond/trytond/osv/ (fields.py orm.py): Add sort attribute on Selection field
2008-09-30 19:49 <CIA-52> tryton: 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 field
2008-09-30 20:24 -!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has left #tryton
2008-09-30 20:31 <udono> cedk: 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...
2008-09-30 20:32 <cedk> udono: you must add select="1" by inheritage on the view
2008-09-30 20:32 <cedk> udono: tree
2008-09-30 20:33 <udono> cedk: thanks
2008-09-30 20:55 <Timitos> cedk: 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?
2008-09-30 21:05 <udono> Timitos: is there an xml_id instead?
2008-09-30 21:06 <Timitos> udono: 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.
2008-09-30 21:09 <udono> Timitos: If they are int, then they need to have no "" around...
2008-09-30 21:09 <Timitos> udono: ok. i will change the module
2008-09-30 22:25 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 798:6206c0796065 tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py:
2008-09-30 22:25 <CIA-52> tryton: Open search window in many2many even if there is only one result if there is
2008-09-30 22:25 <CIA-52> tryton: no text in the entry for issue404
2008-09-30 22:26 <CIA-52> tryton: ced roundup * #404/many2many widget needs improvement because of the new button: [resolved] Fix with changeset 6206c0796065
2008-09-30 22:42 <udono> bechamel: 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?
2008-09-30 22:44 -!- udono(n=udono@dynamic-unidsl-85-197-19-186.westend.de) has joined #tryton
2008-09-30 22:49 <bechamel> udono: yes there is an implict mecanism behind active
2008-09-30 22:50 <udono> bechamel: is it possible to use it for other binary fields?
2008-09-30 22:51 <bechamel> udono: i don't think so
2008-09-30 22:51 <bechamel> udono: what do you want to achieve ?
2008-09-30 22:53 <udono> bechamel: 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...
2008-09-30 22:54 <bechamel> udono: what you can do is to add a domain on the act_window of your menuitem
2008-09-30 22:56 <udono> bechamel: 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! Thanks
2008-09-30 22:58 <udono> bechamel: did you read my documentation about fields.Selection?
2008-09-30 22:58 <bechamel> udono: yes there are such menuitems in account_invoice/invoice.xml
2008-09-30 22:59 <bechamel> udono: yes but i started to work on something else
2008-09-30 23:00 <bechamel> udono: is it ok for you if i modify your text to match the more formal style of the rest of the doc ?
2008-09-30 23:01 <udono> bechamel: No Problem, but let the jokes inside ;-)
2008-09-30 23:04 <udono> bye all
2008-09-30 23:04 <bechamel> udono: bye
2008-09-30 23:09 -!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has left #tryton

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