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

chat.freenode.net #tryton log beginning Tue Oct 7 00:00:01 CEST 2008
2008-10-07 01:11 -!- ikks(n=igor@190.12.156.178) has joined #tryton
2008-10-07 05:19 -!- yangoon(n=mathiasb@p549F536E.dip.t-dialin.net) has joined #tryton
2008-10-07 07:49 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-10-07 08:04 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 1075:6a08bdc9c72d trytond/trytond/ (ir/lang.xml web_service/db.py): Add es_ES language
2008-10-07 08:35 -!- GeE(n=gzuerche@host2.raptus.com) has joined #tryton
2008-10-07 09:12 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-10-07 09:12 <gadaga> hi
2008-10-07 09:51 <udono> hi all
2008-10-07 09:55 <udono> Is 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.
2008-10-07 09:59 <cedk> udono: I think you must prevent to change the type
2008-10-07 10:04 <udono> cedk: 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...
2008-10-07 10:05 <udono> cedk: My childs are Many2Many
2008-10-07 10:06 <cedk> udono: I think you must add a states={'readonly': "bool(childs)"}
2008-10-07 10:06 <cedk> udono: this will set the type in readonly as soon as there is a child defined
2008-10-07 10:07 <udono> cedk: this is a good solution for the client, but what about XMLRPC will it fail?
2008-10-07 10:09 <cedk> udono: you must also add a _constraint
2008-10-07 10:10 <udono> cedk: ah, ok, this is the way.
2008-10-07 10:24 <udono> cedk: 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...
2008-10-07 10:25 <cedk> udono: why are the childs readonly ?
2008-10-07 10:26 <udono> cedk: Because I like to prevent users for giving childs to party_type = person. so the childs state is "readonly": "type != 'organization'"
2008-10-07 10:27 <udono> cedk: This works ok. There is just the rare case in changing party_type organisation with defined childs to person before saving the record.
2008-10-07 10:28 <cedk> udono: this will be prevent, if you set party_type readonly when there is child
2008-10-07 10:28 <udono> cedk: BTW the state states={'readonly': "bool(childs)"} is just updated on saving, not on changing the one2many. So it doesnt help.
2008-10-07 10:29 <udono> cedk: BTW the state states={'readonly': "bool(childs)"} is just updated on saving, not on changing the one2many. So it doesnt help.
2008-10-07 10:29 <cedk> udono: no, it works before the save
2008-10-07 10:29 <cedk> udono: you can see it on invoice, once you enter a line the currency become readonly
2008-10-07 10:29 <udono> cedk: sorry, one2many is wrong, many2many
2008-10-07 10:30 <cedk> udono: I will try, because if it doesn't work, it is a bug
2008-10-07 10:33 -!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton
2008-10-07 10:33 <udono> cedk: Another try: the state states={'readonly': "bool(childs)"} is just updated on saving, not on changing (add/delete) the many2many.
2008-10-07 10:35 <udono> cedk: Should I create an issue?
2008-10-07 10:40 <cedk> udono: no need, I check it
2008-10-07 10:46 <CIA-52> tryton: 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 many2many
2008-10-07 10:46 <cedk> udono: this changeset fix the issue
2008-10-07 10:46 <udono> cedk: Thanks
2008-10-07 10:48 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-10-07 10:56 <udono> cedk: Yes, it works, and my problem from above disapears. Thanks again
2008-10-07 10:58 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-10-07 10:58 <udono> bechamel: 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?
2008-10-07 10:59 <cedk> udono: there is not yet any example
2008-10-07 10:59 <bechamel> udono: i don't there is an example yet
2008-10-07 11:00 <cedk> udono: we don't yet find a good use for that :-)
2008-10-07 11:00 <udono> cedk: I have one :-)
2008-10-07 11:00 <cedk> udono: but simply add the button in the tree view like in the form view
2008-10-07 11:01 <udono> ACTION never added Buttons anywhere in Tryton...
2008-10-07 11:01 <udono> ACTION needs to learn how to use buttons
2008-10-07 11:01 <cedk> udono: you can look in the invoice.xml or sale/purchase.xml
2008-10-07 11:02 <udono> cedk: ok. Buttons are combined with actions, I think...
2008-10-07 11:03 <cedk> udono: some are linked to workflow, some to object method and some to ir.action
2008-10-07 11:05 <udono> cedk: I see,
2008-10-07 11:07 <udono> cedk: 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...
2008-10-07 11:08 <cedk> udono: I think you must link your button to a wizard
2008-10-07 11:08 <cedk> udono: but i don't know if it works well on one2many field
2008-10-07 11:08 -!- Gedd(n=ged@77.109.113.49) has joined #tryton
2008-10-07 11:10 <udono> cedk: ok, I do research
2008-10-07 11:11 <cedk> udono: because on one2many, we must save all the record when pressing the button and not only the one2many record selected
2008-10-07 11:24 <udono> cedk: ok. Is there a known issue about this?
2008-10-07 11:29 <cedk> udono: I don't know because I have never try it
2008-10-07 11:31 <udono> cedk: ok, I will try this evening
2008-10-07 11:32 <yangoon> bechamel: hi bechamel! I suppose you are the programmer of stock supply, correct?
2008-10-07 11:33 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 817:18ff06374e2c tryton/ (share/tryton/tryton.glade tryton/common/common.py):
2008-10-07 11:33 <CIA-52> tryton: Remove glade for sur_3b
2008-10-07 11:33 <CIA-52> tryton: Fix typo in sur
2008-10-07 11:34 <yangoon> I have a src "Create Purchase Request: Missing Payment Term" which according to translation table belongs to module "create_purchase", which doesn't exist
2008-10-07 11:35 <yangoon> I suppose the src comes from module stock_supply
2008-10-07 11:37 <bechamel> yangoon: hi
2008-10-07 11:37 <bechamel> yangoon: i check
2008-10-07 11:38 <cedk> bechamel: I find it, I fix it
2008-10-07 11:38 <bechamel> cedk: ok
2008-10-07 11:39 <yangoon> thx
2008-10-07 11:40 <yangoon> cedk: can I just turn manually module to stock_supply (if that is the correct module)?
2008-10-07 11:42 <cedk> yangoon: no, because the id of the view is wrong
2008-10-07 11:43 <CIA-52> tryton: 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 " ...
2008-10-07 11:45 <CIA-52> tryton: 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.
2008-10-07 11:54 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 55:e919272fe04a stock_supply/purchase_request.xml: Fix id for stock.purchase_request.create_purchase.ask view record
2008-10-07 11:54 <cedk> yangoon: this changeset fix the id
2008-10-07 11:55 <yangoon> cedk: thx
2008-10-07 11:55 <cedk> yangoon: you must delete first the translation with the wrong module and update
2008-10-07 12:13 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 818:579438918b20 tryton/tryton/common/common.py: Convert selection value into unicode for issue416
2008-10-07 12:13 <CIA-52> tryton: ced roundup * #416/KeyError: 'Vorgemerkte Installationen / Aktualisierungen durchf\xc3\xbchren': [resolved] Must be fixed with changeset 579438918b20
2008-10-07 12:17 -!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton
2008-10-07 12:26 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 221:6bdd3e49d7e5 account/fiscalyear.py: Fix delete fiscalyear for issue415
2008-10-07 12:26 <CIA-52> tryton: ced roundup * #415/Cannot delete fiscal year: [resolved] Fix with changeset 6bdd3e49d7e5
2008-10-07 12:30 <CIA-52> tryton: matb roundup * #417/Translation: updates for de_DE: [new] please import new changes for de_DE into repos
2008-10-07 12:47 -!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton
2008-10-07 12:48 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 123:614b32f519de account_invoice/invoice.py: Use _error_messages for _constraint on fiscal year for issue414
2008-10-07 12:48 <CIA-52> tryton: ced roundup * #414/Translation: untranslated item: [resolved] Fix with changeset 614b32f519de
2008-10-07 12:51 <CIA-52> tryton: 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.
2008-10-07 12:52 <CIA-52> tryton: ced roundup * #384/Error: strptime() parsing error: Any news?
2008-10-07 13:23 -!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has joined #tryton
2008-10-07 13:24 -!- tekknokrat(n=gthieleb@port-87-193-170-219.static.qsc.de) has left #tryton
2008-10-07 13:35 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 222:393c4fa04363 account/move.py:
2008-10-07 13:35 <CIA-52> tryton: Fix line creation on centralised journal with move without centralised line
2008-10-07 13:35 <CIA-52> tryton: for issue382
2008-10-07 13:35 <CIA-52> tryton: ced roundup * #382/AttributeError: 'BrowseRecordNull' object has no attribute 'debit': [resolved] Fix with changeset 393c4fa04363
2008-10-07 13:36 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 819:4b312070d744 tryton/tryton/gui/window/view_form/model/group.py: Remove unused variable
2008-10-07 15:36 -!- ikks(n=igotam@www.gfc.edu.co) has joined #tryton
2008-10-07 16:34 -!- Brutus(n=marolahy@static-120-146.blueline.mg) has joined #tryton
2008-10-07 16:36 <Brutus> Hi all
2008-10-07 16:36 <cedk> Brutus: hi
2008-10-07 18:57 <CIA-52> tryton: 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/ ...
2008-10-07 19:47 -!- ikks(n=igotam@www.gfc.edu.co) has joined #tryton
2008-10-07 19:48 <ikks> Hi, I'm about to send the csv files.
2008-10-07 19:48 <ikks> Is it better to file an issue per file or I can send the whole in a bunch?
2008-10-07 20:33 -!- ikks(n=igotam@www.gfc.edu.co) has joined #tryton
2008-10-07 20:36 <ikks> sorry, went disconnected, I didn't see if anyone told me anything about sending translations
2008-10-07 20:37 <cedk> ikks: follow this also for translation: http://code.google.com/p/tryton/wiki/HowtoContribute
2008-10-07 20:38 <ikks> Ok, one issue per file. thanks cedk
2008-10-07 20:43 <yangoon> ikks: you don't need open an issue for each file, you can have a look at https://bugs.tryton.org/roundup/issue417
2008-10-07 20:47 <ikks> I guess that for ir, res, webdav, workflow It would be fine to have a single issue
2008-10-07 20:47 <ikks> but for the modules maybe it's best to have independent issues
2008-10-07 20:47 <ikks> ACTION reading 417
2008-10-07 20:48 <ikks> I see, a single patch for each module
2008-10-07 20:51 <ikks> I have to go for now, But I hope to be publishing the patches today/nite
2008-10-07 20:51 <ikks> thanks
2008-10-07 21:07 <CIA-52> tryton: 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 ...
2008-10-07 21:16 <CIA-52> tryton: 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. ...
2008-10-07 21:31 <CIA-52> tryton: 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 ...
2008-10-07 21:39 <CIA-52> tryton: 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 ...
2008-10-07 21:43 <CIA-52> tryton: matb roundup * #422/KeyError: u'Aktuelle Sicht \xdcbersetzen': [chatting] induced by: Plugins/Execute a plugin/Aktuelle Sicht übersetzen(=Translate view)
2008-10-07 22:15 -!- ikks(n=igor@www.gfc.edu.co) has joined #tryton

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