IRC logs of #tryton for Friday, 2011-01-28

chat.freenode.net #tryton log beginning Fri Jan 28 00:00:03 CET 2011
-!- saxa(~sasa@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton00:21
-!- kwmiebach1(~ad@xdsl-87-79-56-93.netcologne.de) has left #tryton00:34
-!- okko(~okko@203.106.205.138) has joined #tryton01:54
-!- ikks(~ikks@190.158.120.51) has joined #tryton03:57
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton04:00
-!- FWiesing(~franz@mail.tryton.at) has left #tryton04:10
-!- heg(~heg@75-202.62-188.cust.bluewin.ch) has joined #tryton04:15
-!- yangoon(~mathiasb@p549F5F79.dip.t-dialin.net) has joined #tryton05:18
-!- ikks(~ikks@190.158.120.51) has joined #tryton06:29
-!- Vladimirek(~vladimir@bband-dyn213.178-41-22.t-com.sk) has joined #tryton08:04
-!- Lo-lan-do(~roland@mirexpress.internal.placard.fr.eu.org) has joined #tryton08:41
-!- paepke(~paepke@p4FEB2332.dip0.t-ipconnect.de) has joined #tryton08:42
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton09:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:26
-!- enlightx(~enlightx@host88-74-dynamic.30-79-r.retail.telecomitalia.it) has joined #tryton09:31
-!- GasbaKid(~GasbaKid@41.96.78.41) has joined #tryton09:58
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton10:08
-!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton10:44
-!- elbenfreund(~elbenfreu@p54B94825.dip.t-dialin.net) has joined #tryton10:45
-!- elbenfreund(~elbenfreu@p54B94825.dip.t-dialin.net) has left #tryton10:45
-!- GasbaKid(~GasbaKid@41.96.78.41) has joined #tryton11:20
-!- Lo-lan-do(~roland@mirexpress.internal.placard.fr.eu.org) has joined #tryton11:21
-!- heg(~heg@226-200.62-188.cust.bluewin.ch) has joined #tryton11:35
-!- nicoe(~nicoe@2001:6f8:3aa:0:217:f2ff:fef3:4e9) has joined #tryton11:42
-!- Timitos(~kp@88.217.184.172) has joined #tryton11:49
-!- paepke(~paepke@p4FEB2332.dip0.t-ipconnect.de) has joined #tryton12:24
-!- elbenfreund(~elbenfreu@p54B94825.dip.t-dialin.net) has joined #tryton12:31
-!- heg(~heg@52-207.62-188.cust.bluewin.ch) has joined #tryton12:46
-!- elbenfreund(~elbenfreu@p54B94825.dip.t-dialin.net) has joined #tryton12:48
-!- kwmiebach(~ad@xdsl-87-79-63-92.netcologne.de) has joined #tryton13:02
-!- paepke(~paepke@p4FEB01F9.dip0.t-ipconnect.de) has joined #tryton14:03
-!- enlightx(~enlightx@host88-74-dynamic.30-79-r.retail.telecomitalia.it) has joined #tryton14:08
-!- paepke(~paepke@p4FEB01F9.dip0.t-ipconnect.de) has left #tryton14:13
-!- trifon(~trifon@ool-18bf5c35.dyn.optonline.net) has joined #tryton15:11
-!- bechamel`(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton15:17
-!- woakas(~woakas@200.106.202.91) has joined #tryton15:41
-!- pepeu(~manuel@201.155.193.192) has joined #tryton15:47
Lo-lan-doCan I add or edit views from the UI or do I need to write XML files on the server?16:21
Lo-lan-doI'd like to have a view for open supplier invoices that displays the amount still to pay instead of (or in addition to) the amount to pay today.16:23
Lo-lan-doI have a feeling this should be doable with a view extension, but I haven't found how to actually display the new view.16:25
cedkLo-lan-do: it is from "Administration>User Interface>Views"16:34
cedkLo-lan-do: but it requires some dev level16:34
Lo-lan-doI have defined a account.invoice_perso view there, inheriting from account.invoice, and tweaked the XML there.16:35
cedkLo-lan-do: that should work16:41
-!- sharkcz(~sharkcz@2001:15c0:6747:160:250:43ff:fe3c:3b5d) has joined #tryton16:43
Lo-lan-doYeah, but how do I display that view then?16:43
cedkLo-lan-do: what do you mean by "inheriting" ?16:46
Lo-lan-docedk: I'm not sure, actually.  I thought since my custom view was just a slight change in account.invoice, the rest of its properties should be inherited.16:47
Lo-lan-doBut even without inheritance, my question remains: how do I display a view?  It probably needs to be registered somewhere in the UI, but I don't know how do do that registration.16:48
-!- z0dman(~andres-va@gponr9-fija-203-7-69.iusacell.net) has joined #tryton16:49
Lo-lan-doI'm not afraid to write Python if needed, or whatever, but I really need a starting point :-/16:52
cedkLo-lan-do: you can read http://code.google.com/p/tryton/wiki/ViewsAndActions16:53
cedkLo-lan-do: the xml just define creation of record16:53
cedkLo-lan-do: so you can do the same from the client16:53
Lo-lan-doI've read that, yes.  My view is defined.  But how do I *display* it?16:55
Lo-lan-do(I can switch to French if it helps :-)16:55
cedkLo-lan-do: you must put the view in an "action windows"16:57
cedkLo-lan-do: and then link the action to a menuitem16:57
Lo-lan-doAh-ha!  Sounds like a plan.  Let me try that :-)16:58
Lo-lan-doYay, it works! Thank you so much :-)17:00
Lo-lan-doNext question: can I have a view display something that's not stored in the model?17:13
Lo-lan-doIn my case, for supplier invoices, I'd like to display the amount that remains to be paid after partial payments.17:15
Lo-lan-doAh, maybe with a different model that defines an additional "Function"-type field.17:17
Lo-lan-doBlah.  amount_to_pay does have that information.  No need for hacks :-)17:21
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton17:25
Lo-lan-doWould you guys accept a patch adding a searcher to account.invoice.amount_to_pay?18:06
Lo-lan-doActually, forget that, I'm not sure I'd use it myself :-)18:08
cedkLo-lan-do: why not but it will be difficult :-)18:09
Lo-lan-doMore than the searcher for total_amount?18:10
cedkLo-lan-do: yes18:11
Lo-lan-doAh, yes.  I'd need to reimplement the get_amount_to_pay() logic in SQL, right?18:11
cedkLo-lan-do: yes18:12
Lo-lan-doFair enough.  Oh well.18:12
-!- essich(~essich@188.174.147.30) has joined #tryton18:13
-!- essich(~essich@188.174.147.30) has left #tryton18:14
-!- heffer(~felix@hyperion.fetzig.org) has joined #tryton18:34
-!- heffer(~felix@fedora/heffer) has joined #tryton18:34
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton20:11
-!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton20:21
-!- nicoe(~nicoe@200.122-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton20:22
-!- enlightx(~enlightx@dynamic-adsl-94-34-226-200.clienti.tiscali.it) has joined #tryton21:05
-!- kwmiebach(~ad@xdsl-87-79-176-45.netcologne.de) has joined #tryton21:07
-!- gremly(~gremly@200.106.202.91) has joined #tryton21:15
-!- paepke(~paepke@p4FEB01F9.dip0.t-ipconnect.de) has joined #tryton21:28
-!- FWiesing(~franz@mail.tryton.at) has joined #tryton21:37
-!- gremly(~gremly@200.106.202.91) has joined #tryton21:50
-!- paepke(~paepke@p4FEB01F9.dip0.t-ipconnect.de) has left #tryton21:57
-!- JamesPharaoh(~james@173.51.219.87.dynamic.jazztel.es) has joined #tryton21:59
-!- gremly(~gremly@190.127.102.216) has joined #tryton22:23
-!- gremly(~gremly@190.127.102.216) has joined #tryton22:24
-!- gremly(~gremly@190.127.102.216) has joined #tryton22:39

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