IRC logs of #tryton for Tuesday, 2008-10-07

chat.freenode.net #tryton log beginning Tue Oct 7 00:00:01 CEST 2008
-!- ikks(n=igor@190.12.156.178) has joined #tryton01:11
-!- yangoon(n=mathiasb@p549F536E.dip.t-dialin.net) has joined #tryton05:19
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton07:49
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 1075:6a08bdc9c72d trytond/trytond/ (ir/lang.xml web_service/db.py): Add es_ES language08:04
-!- GeE(n=gzuerche@host2.raptus.com) has joined #tryton08:35
-!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton09:12
gadagahi09:12
udonohi all09:51
udonoIs there an easy way to delete all childs from a record? Background. I have Party Types Person and Organization. All partys with type Organization could have childs. Partys with Type Person should not have childs. When changing a party with type Organization and with some childs  defined TO a party with type Person, all the childs need to be deleted.09:55
cedkudono: I think you must prevent to change the type09:59
udonocedk: yes, but when I create a new party I define the type, after this I define the childs, all without saving explicitely. I dont know how to prevent the type change in this stage. I just need to clear the childs, when Party_type=person, to be shure that persons do not have childs...10:04
udonocedk: My childs are Many2Many10:05
cedkudono: I think you must add a states={'readonly': "bool(childs)"}10:06
cedkudono: this will set the type in readonly as soon as there is a child defined10:06
udonocedk: this is a good solution for the client, but what about XMLRPC will it fail?10:07
cedkudono: you must also add a _constraint10:09
udonocedk: ah, ok, this is the way.10:10
udonocedk: Thank you, this went in a good direction, But now I have the problem, that someone can not delete the childs, because they are readonly.... I think I must browse the one2many party_rel table to find the childs and delete them from there...10:24
cedkudono: why are the childs readonly ?10:25
udonocedk: Because I like to prevent users for giving childs to party_type = person. so the childs state is "readonly": "type != 'organization'"10:26
udonocedk: This works ok. There is just the rare case in changing party_type organisation with defined childs to person before saving the record.10:27
cedkudono: this will be prevent, if you set party_type readonly when there is child10:28
udonocedk: BTW the state states={'readonly': "bool(childs)"} is just updated on saving, not on changing the one2many. So it doesnt help.10:28
udonocedk: BTW the state states={'readonly': "bool(childs)"} is just updated on saving, not on changing the one2many. So it doesnt help.10:29
cedkudono: no, it works  before the save10:29
cedkudono: you can see it on invoice, once you enter a line the currency become readonly10:29
udonocedk: sorry,  one2many is wrong, many2many10:29
cedkudono: I will try, because if it doesn't work, it is a bug10:30
-!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton10:33
udonocedk: Another try: the state states={'readonly': "bool(childs)"} is just updated on saving, not on changing (add/delete) the many2many.10:33
udonocedk: Should I create an issue?10:35
cedkudono: no need, I check it10:40
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 816:d0265ba567ed tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py: Set value after add/remove on many2many10:46
cedkudono: this changeset fix the issue10:46
udonocedk: Thanks10:46
-!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton10:48
udonocedk: Yes, it works, and my problem from above disapears. Thanks again10:56
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton10:58
udonobechamel: some days before you told me there are buttons possible in a tree view. Is there an example in a module, where I can learn?10:58
cedkudono: there is not yet any example10:59
bechameludono: i don't there is an example yet10:59
cedkudono: we don't yet find a good use for that :-)11:00
udonocedk: I have one :-)11:00
cedkudono: but simply add the button in the tree view like in the form view11:00
udonoACTION never added Buttons anywhere in Tryton...11:01
udonoACTION needs to learn how to use buttons11:01
cedkudono: you can look in the invoice.xml or sale/purchase.xml11:01
udonocedk: ok. Buttons are combined with actions, I think...11:02
cedkudono: some are linked to workflow, some to object method and some to ir.action11:03
udonocedk: I see,11:05
udonocedk: so it could be possible to use Buttons in combination with fields.Reference in a model like res.request for something like "Open" and "Edit", to directly open a referenced resource or directly edit it...11:07
cedkudono: I think you must link your button to a wizard11:08
cedkudono: but i don't know if it works well on one2many field11:08
-!- Gedd(n=ged@77.109.113.49) has joined #tryton11:08
udonocedk: ok, I do research11:10
cedkudono: because on one2many, we must save all the record when pressing the button and not only the one2many record selected11:11
udonocedk: ok. Is there a known issue about this?11:24
cedkudono: I don't know because I have never try it11:29
udonocedk: ok, I will try this evening11:31
yangoonbechamel: hi bechamel! I suppose you are the programmer of stock supply, correct?11:32
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 817:18ff06374e2c tryton/ (share/tryton/tryton.glade tryton/common/common.py):11:33
CIA-52tryton: Remove glade for sur_3b11:33
CIA-52tryton: Fix typo in sur11:33
yangoonI have a src "Create Purchase Request: Missing Payment Term" which according to translation table belongs to module "create_purchase", which doesn't exist11:34
yangoonI suppose the src comes from module stock_supply11:35
bechamelyangoon: hi11:37
bechamelyangoon: i check11:37
cedkbechamel: I find it, I fix it11:38
bechamelcedk: ok11:38
yangoonthx11:39
yangooncedk: can I just turn manually module to stock_supply (if that is the correct module)?11:40
cedkyangoon: no, because the id of the view is wrong11:42
CIA-52tryton: Timitos roundup * #416/KeyError: 'Vorgemerkte Installationen / Aktualisierungen durchf\xc3\xbchren': [new] Traceback (most recent call last): File "/tryton/gui/main.py", line 660, in _sig_child_call res = wid.handlers[button_name]() File " ...11:43
CIA-52tryton: Timitos roundup * #416/KeyError: 'Vorgemerkte Installationen / Aktualisierungen durchf\xc3\xbchren': [chatting] i tried to install modules in a new db. this happens when i try to start installation action with action button from menu bar.11:45
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 55:e919272fe04a stock_supply/purchase_request.xml: Fix id for stock.purchase_request.create_purchase.ask view record11:54
cedkyangoon: this changeset fix the id11:54
yangooncedk: thx11:55
cedkyangoon: you must delete first the translation with the wrong module and update11:55
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 818:579438918b20 tryton/tryton/common/common.py: Convert selection value into unicode for issue41612:13
CIA-52tryton: ced roundup * #416/KeyError: 'Vorgemerkte Installationen / Aktualisierungen durchf\xc3\xbchren': [resolved] Must be fixed with changeset 579438918b2012:13
-!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton12:17
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 221:6bdd3e49d7e5 account/fiscalyear.py: Fix delete fiscalyear for issue41512:26
CIA-52tryton: ced roundup * #415/Cannot delete fiscal year: [resolved] Fix with changeset 6bdd3e49d7e512:26
CIA-52tryton: matb roundup * #417/Translation: updates for de_DE: [new] please import new changes for de_DE into repos12:30
-!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton12:47
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 123:614b32f519de account_invoice/invoice.py: Use _error_messages for _constraint on fiscal year for issue41412:48
CIA-52tryton: ced roundup * #414/Translation: untranslated item: [resolved] Fix with changeset 614b32f519de12:48
CIA-52tryton: ced roundup * #411/Translation: account/create date not translated: [resolved] create_date is a technical field, it must not be displayed. You must create your own field.12:51
CIA-52tryton: ced roundup * #384/Error: strptime() parsing error: Any news?12:52
-!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has joined #tryton13:23
-!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has left #tryton13:24
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 222:393c4fa04363 account/move.py:13:35
CIA-52tryton: Fix line creation on centralised journal with move without centralised line13:35
CIA-52tryton: for issue38213:35
CIA-52tryton: ced roundup * #382/AttributeError: 'BrowseRecordNull' object has no attribute 'debit': [resolved] Fix with changeset 393c4fa0436313:35
CIA-52tryton: C?dric Krier <ced@b2ck.com> default * 819:4b312070d744 tryton/tryton/gui/window/view_form/model/group.py: Remove unused variable13:36
-!- ikks(n=igotam@www.gfc.edu.co) has joined #tryton15:36
-!- Brutus(n=marolahy@static-120-146.blueline.mg) has joined #tryton16:34
BrutusHi all16:36
cedkBrutus: hi16:36
CIA-52tryton: matb roundup * #418/Reconcile Lines: AttributeError: 'NoneType' object has no attribute 'set_text': [new] Happens when quitting form Reconcile Lines with a new line opened, but nothing entered: Traceback (most recent call last): File "/tryton/ ...18:57
-!- ikks(n=igotam@www.gfc.edu.co) has joined #tryton19:47
ikksHi, I'm about to send the csv files.19:48
ikksIs it better to file an issue per file or I can send the whole in a bunch?19:48
-!- ikks(n=igotam@www.gfc.edu.co) has joined #tryton20:33
ikkssorry, went disconnected, I didn't see if anyone told me anything about sending translations20:36
cedkikks: follow this also for translation: http://code.google.com/p/tryton/wiki/HowtoContribute20:37
ikksOk, one issue per file. thanks cedk20:38
yangoonikks: you don't need open an issue for each file, you can have a look at https://bugs.tryton.org/roundup/issue41720:43
ikksI guess that for ir, res, webdav, workflow It would be fine to have a single issue20:47
ikksbut for the modules maybe it's best to have independent issues20:47
ikksACTION reading 41720:47
ikksI see, a single patch for each module20:48
ikksI have to go for now, But I hope to be publishing the patches today/nite20:51
ikksthanks20:51
CIA-52tryton: matb roundup * #419/client: column width not reducable under text length: [new] One time you have touched the header of a column to set the width, it jumps immediately to the text length of the column header. While this ...21:07
CIA-52tryton: matb roundup * #420/column width of search forms: [new] When opening search forms via F2 or search button, the custom column width of those forms is not remembered as usually for "normal" forms. ...21:16
CIA-52tryton: matb roundup * #421/Sale: exception when printing invalid form: [new] Created a new sale, forgot to insert payment term, pressed button print: Traceback (most recent call last): File "/trytond/netsvc.py", li ...21:31
CIA-52tryton: matb roundup * #422/KeyError: u'Aktuelle Sicht \xdcbersetzen': [new] Seems to be the same as issue 416. But either fix is not sufficient or it is other issue (with rev > 821): Traceback (most recent call last ...21:39
CIA-52tryton: matb roundup * #422/KeyError: u'Aktuelle Sicht \xdcbersetzen': [chatting] induced by: Plugins/Execute a plugin/Aktuelle Sicht ├╝bersetzen(=Translate view)21:43
-!- ikks(n=igor@www.gfc.edu.co) has joined #tryton22:15

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