IRC logs of #tryton for Thursday, 2009-07-23

chat.freenode.net #tryton log beginning Thu Jul 23 00:00:02 CEST 2009
2009-07-23 00:07 <bechamel> vengfulsquirrel: cedk: I think something like location_obj.search(cursor, user, [('left', '<', current.left), ('right', '>', current.right), ('type', '=', 'warehouse')], context=context) and then loop on the results to get the one with the smallest value of right should do the trick
2009-07-23 00:11 <cedk> bechamel: I'm not sure because you select every warehouse with your query
2009-07-23 00:12 <vengfulsquirrel> Yeah I thought maybe I was just missing some simple operator or something, that's fine though. I'm just doing this: http://paste.pocoo.org/show/130189/
2009-07-23 00:13 <vengfulsquirrel> I mean move.from_location I think.
2009-07-23 00:13 <cedk> vengfulsquirrel: it must work but if you have a deep tree with location, it can be slow
2009-07-23 00:14 <vengfulsquirrel> Yeah I think its only like 4 or 5 iterations depending.
2009-07-23 00:14 <bechamel> cedk: yes you are right, maybe one should plan to add some aggregate parameters to the search method :)
2009-07-23 00:14 <cedk> vengfulsquirrel: if it is possible to construct a search with left-right, it will be very fast as there will be only 1 query to database
2009-07-23 00:15 <vengfulsquirrel> I have another question though about child_of, is it recursive? So more like descendant_of ?
2009-07-23 00:15 <bechamel> cedk: vengfulsquirrel: what about "order=['right'], limit=1" ?
2009-07-23 00:15 <cedk> oups, I think bechamel query is right
2009-07-23 00:15 <cedk> and it will return only one warehouse
2009-07-23 00:16 <vengfulsquirrel> Is current the location I'm searching from ?
2009-07-23 00:16 <cedk> vengfulsquirrel: yes
2009-07-23 00:16 <vengfulsquirrel> Yes to both questions?
2009-07-23 00:17 <cedk> vengfulsquirrel: yes both
2009-07-23 00:26 <vengfulsquirrel> cedk, bechamel: Maybe I will try the faster query once I can get the data into the db. Is there a reason this would not work: http://paste.pocoo.org/show/130190/
2009-07-23 00:26 <vengfulsquirrel> For some reason location brings up nothing in the gui.
2009-07-23 00:35 <bechamel> vengfulsquirrel: you talk about the location field on the sale_location object ?
2009-07-23 00:36 <vengfulsquirrel> Yes
2009-07-23 00:36 <bechamel> vengfulsquirrel: is it working if you remove the domain on the location ?
2009-07-23 00:37 <bechamel> vengfulsquirrel: actually chidl_of [] shouldn't return anything
2009-07-23 00:39 <vengfulsquirrel> bechamel: Yes it works if I take that part of the domain off.
2009-07-23 00:40 <vengfulsquirrel> bechamel: Shouldn't warehouse be set if I am editing the warehouse and then try to create a sale location relation ?
2009-07-23 00:40 <vengfulsquirrel> Since there is a back reference to warehouse in the one2many.
2009-07-23 00:40 <vengfulsquirrel> *on stock.location
2009-07-23 00:44 <bechamel> vengfulsquirrel: actually is a bit more tricky than that
2009-07-23 00:45 <bechamel> vengfulsquirrel: are
2009-07-23 00:45 <bechamel> woops
2009-07-23 00:45 <bechamel> vengfulsquirrel: is the sale_locations visible on the location form ?
2009-07-23 00:46 <bechamel> vengfulsquirrel: or are you using a new view to show only the sale_location model ?
2009-07-23 00:46 <vengfulsquirrel> bechamel: http://paste.pocoo.org/show/130201/
2009-07-23 00:47 <vengfulsquirrel> I have warehouse there but it does not show when editing from the warehouse.
2009-07-23 00:47 <vengfulsquirrel> Should I do this differently ?
2009-07-23 00:47 <bechamel> vengfulsquirrel: yes it was made on purpose
2009-07-23 00:48 <vengfulsquirrel> Yeah that makes sense unless maybe its invisible and not getting set.
2009-07-23 00:48 <cedk> Hi, it seems that there is a FreeBSD ports for Tryton http://www.freshports.org/finance/trytond/
2009-07-23 00:48 <bechamel> vengfulsquirrel: i think your domain should work when creating record directly on the sale_location model
2009-07-23 00:49 <vengfulsquirrel> bechamel: Okay so maybe make a menu item for Warehouse Sale Locations and don't extend the locations form ?
2009-07-23 00:49 <bechamel> vengfulsquirrel: if you work on the location view, you need to use domains that look like the one on the invoice line, see account_invoice/invoice.py line 1312
2009-07-23 00:50 <bechamel> vengfulsquirrel: maybe there is a way to combine both
2009-07-23 00:51 <bechamel> vengfulsquirrel: when editing a one2many, the client doesn't know the value of the foreing key that support the relation, but he knows the values that are available on the "parent" form
2009-07-23 00:54 <bechamel> vengfulsquirrel: on the invoice line, _parent_invoice means "use the parent form which is linked to the current form trough the invoice field" ( cedk: is it correct ?)
2009-07-23 00:54 <vengfulsquirrel> Are you sure its not get the invoice on the parent form ?
2009-07-23 00:56 <bechamel> the parent form is the invoice
2009-07-23 01:01 <bechamel> time to sleep here bye
2009-07-23 01:02 <vengfulsquirrel> bechamel: Okay thanks for the help, talk to you later
2009-07-23 01:02 -!- bechamel(n=user@host-85-201-74-27.brutele.be) has left #tryton
2009-07-23 01:04 <vengfulsquirrel> solved -- "('parent', 'child_of', globals().get('_parent_warehouse') and [globals().get('_parent_warehouse').id] or [])"
2009-07-23 01:52 -!- ikks_(n=ikks@186.97.51.221) has joined #tryton
2009-07-23 05:20 -!- yangoon(n=mathiasb@p549F3041.dip.t-dialin.net) has joined #tryton
2009-07-23 06:33 -!- _TiN_(n=TiN@201-213-85-3.net.prima.net.ar) has joined #tryton
2009-07-23 07:15 -!- Timitos(n=timitos@88.217.184.172) has joined #tryton
2009-07-23 07:17 -!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2009-07-23 08:19 -!- paepke(n=paepke@mail.metaldyne-nue.de) has joined #tryton
2009-07-23 08:44 -!- carlos(n=carlos@87.221.156.255) has joined #tryton
2009-07-23 09:27 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2009-07-23 09:37 -!- bechamel(n=user@host-85-201-74-27.brutele.be) has joined #tryton
2009-07-23 10:07 -!- ikks(n=ikks@190.102.200.2) has joined #tryton
2009-07-23 10:16 <Timitos> cedk: bechamel: hi. i would like to forward a date value in an editable list view from one record to the next new record. is this possible? the date depends always on the value of the record entered as last one in the editbale list view.
2009-07-23 10:18 <bechamel> Timitos: no it's not possible on list view
2009-07-23 10:18 <Timitos> bechamel: ok. thx.
2009-07-23 10:38 -!- carlos(n=carlos@87.221.156.255) has joined #tryton
2009-07-23 10:53 <CIA-4> C?dric Krier <ced@b2ck.com> default * 1895:f6000d6fe70d trytond/ (5 files in 3 dirs): Add strftime to ir.lang to handle locale's format for issue1111
2009-07-23 10:53 <CIA-4> http://hg.tryton.org/trytond/rev/f6000d6fe70d
2009-07-23 10:53 <CIA-4> ced roundup * #1111/locale is not working on Language Dateformat %B: [resolved] Fixed with changeset f6000d6fe70d
2009-07-23 10:53 <CIA-4> http://bugs.tryton.org/roundup/issue1111
2009-07-23 11:02 -!- ikks(n=ikks@190.120.143.15) has joined #tryton
2009-07-23 11:04 <CIA-4> C?dric Krier <ced@b2ck.com> default * 1365:9c126a04e521 tryton/ (CHANGELOG tryton/config.py tryton/gui/main.py): Add "Change Accelerators" option for issue1065
2009-07-23 11:04 <CIA-4> http://hg.tryton.org/tryton/rev/9c126a04e521
2009-07-23 11:04 <CIA-4> ced roundup * #1065/Patch: Stop accidentially change the accelerator keys in Tryton client: [resolved] Applied in changeset 9c126a04e521
2009-07-23 11:04 <CIA-4> http://bugs.tryton.org/roundup/issue1065
2009-07-23 11:20 -!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton
2009-07-23 11:35 -!- ikks_(n=ikks@190.102.205.136) has joined #tryton
2009-07-23 12:00 <udono> Hey cedk, thank you for appling 9c126a04e521.
2009-07-23 12:00 -!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton
2009-07-23 12:34 -!- ctp(n=quassel@brsg-d9bee5ae.pool.mediaWays.net) has joined #tryton
2009-07-23 12:35 -!- ctp_(n=quassel@217.190.229.174) has joined #tryton
2009-07-23 14:26 -!- _TiN_(n=TiN@201-213-85-3.net.prima.net.ar) has joined #tryton
2009-07-23 15:14 -!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton
2009-07-23 15:23 -!- woakas(n=woakas@190.144.69.234) has joined #tryton
2009-07-23 15:48 -!- yangoon1(n=mathiasb@p549F7333.dip.t-dialin.net) has joined #tryton
2009-07-23 17:07 <CIA-4> C?dric Krier <ced@b2ck.com> default * 1366:80f6155b676e tryton/ (bin/tryton setup.py):
2009-07-23 17:07 <CIA-4> Use Clearlooks as theme for MacOS bundle
2009-07-23 17:07 <CIA-4> Remove shell script in setup.py for issue1100
2009-07-23 17:07 <CIA-4> http://hg.tryton.org/tryton/rev/80f6155b676e
2009-07-23 17:07 <CIA-4> ced roundup * #1100/Patch: code cleanup for client setup.py: [resolved] Some applies in changeset 80f6155b676e
2009-07-23 17:07 <CIA-4> http://bugs.tryton.org/roundup/issue1100
2009-07-23 17:09 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2009-07-23 17:26 -!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton
2009-07-23 18:52 -!- carlos(n=carlos@87.221.156.255) has joined #tryton
2009-07-23 18:53 -!- juanfer(n=juanfer@190.144.69.234) has joined #tryton
2009-07-23 18:54 -!- paepke(n=paepke@p5B32F39B.dip.t-dialin.net) has joined #tryton
2009-07-23 18:54 -!- carlos(n=carlos@87.221.156.255) has joined #tryton
2009-07-23 18:57 -!- carlos(n=carlos@87.221.156.255) has joined #tryton
2009-07-23 19:15 -!- vengfulsquirrel(n=ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2009-07-23 19:16 <CIA-4> ced roundup * #1020/Module description is to brief: stock_location_sequence: [resolved] It is like any sequence in Tryton. It is for sorting.
2009-07-23 19:16 <CIA-4> http://bugs.tryton.org/roundup/issue1020
2009-07-23 19:19 <CIA-4> ced roundup * #742/stock.packing.out: list_price for inventory_moves?: [closed] No news since 3 months, closing.
2009-07-23 19:19 <CIA-4> http://bugs.tryton.org/roundup/issue742
2009-07-23 19:22 <CIA-4> ced roundup * #975/Size of forms for new records: [resolved] Fixed with the "Save Width/Height" option fro the changeset 07c38eec9b4e
2009-07-23 19:22 <CIA-4> http://bugs.tryton.org/roundup/issue975
2009-07-23 19:24 <CIA-4> ced roundup * #583/Account invoce: Sequence for PRO FORMA missing.: I think it should be done in a new module to keep account_invoice light.
2009-07-23 19:24 <CIA-4> http://bugs.tryton.org/roundup/issue583
2009-07-23 19:32 <vengfulsquirrel> Is it possible to programmatically email reports from the server?
2009-07-23 19:33 <cedk> vengfulsquirrel: you can but for now Tryton doesn't handle email server configuration
2009-07-23 19:56 -!- enlightx(n=enlightx@host-84-220-83-253.cust-adsl.tiscali.it) has joined #tryton
2009-07-23 20:01 <CIA-4> ced roundup * #1093/Improve extendibility of stock.inventory:
2009-07-23 20:01 <CIA-4> Here is a first patch that follow some ideas from yours:
2009-07-23 20:01 <CIA-4> http://codereview.appspot.com/97085
2009-07-23 20:01 <CIA-4> http://bugs.tryton.org/roundup/issue1093
2009-07-23 21:32 <CIA-4> casaxa roundup * #583/Account invoce: Sequence for PRO FORMA missing.: Just to add, a proforma invoice is many times used also as a customs document , when you send some goods like samples, and you put them real value ...
2009-07-23 21:32 <CIA-4> http://bugs.tryton.org/roundup/issue583
2009-07-23 21:38 -!- juanfer(n=juanfer@190.144.69.234) has joined #tryton
2009-07-23 21:45 <CIA-4> udono roundup * #583/Account invoce: Sequence for PRO FORMA missing.:
2009-07-23 21:45 <CIA-4> Could it be a good idea to completely factor out PRO FORMA stuff out of the account_invoice module to a new module account_invoice_proforma?
2009-07-23 21:45 <CIA-4> So ...
2009-07-23 21:45 <CIA-4> http://bugs.tryton.org/roundup/issue583
2009-07-23 21:51 -!- juanfer(n=juanfer@190.144.69.234) has joined #tryton

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