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

chat.freenode.net #tryton log beginning Thu Jul 23 00:00:02 CEST 2009
bechamelvengfulsquirrel: 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 trick00:07
cedkbechamel: I'm not sure because you select every warehouse with your query00:11
vengfulsquirrelYeah 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/00:12
vengfulsquirrelI mean move.from_location I think.00:13
cedkvengfulsquirrel: it must work but if you have a deep tree with location, it can be slow00:13
vengfulsquirrelYeah I think its only like 4 or 5 iterations depending.00:14
bechamelcedk: yes you are right, maybe one should plan to add some aggregate parameters to the search method :)00:14
cedkvengfulsquirrel: if it is possible to construct a search with left-right, it will be very fast as there will be only 1 query to database00:14
vengfulsquirrelI have another question though about child_of, is it recursive? So more like descendant_of ?00:15
bechamelcedk: vengfulsquirrel: what about "order=['right'], limit=1" ?00:15
cedkoups, I think bechamel query is right00:15
cedkand it will return only one warehouse00:15
vengfulsquirrelIs current the location I'm searching from ?00:16
cedkvengfulsquirrel: yes00:16
vengfulsquirrelYes to both questions?00:16
cedkvengfulsquirrel: yes both00:17
vengfulsquirrelcedk, 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/00:26
vengfulsquirrelFor some reason location brings up nothing in the gui.00:26
bechamelvengfulsquirrel: you talk about the location field on the sale_location object ?00:35
vengfulsquirrelYes00:36
bechamelvengfulsquirrel: is it working if you remove the domain on the location ?00:36
bechamelvengfulsquirrel: actually chidl_of [] shouldn't return anything00:37
vengfulsquirrelbechamel: Yes it works if I take that part of the domain off.00:39
vengfulsquirrelbechamel: Shouldn't warehouse be set if I am editing the warehouse and then try to create a sale location relation ?00:40
vengfulsquirrelSince there is a back reference to warehouse in the one2many.00:40
vengfulsquirrel*on stock.location00:40
bechamelvengfulsquirrel: actually is a bit more tricky than that00:44
bechamelvengfulsquirrel: are00:45
bechamelwoops00:45
bechamelvengfulsquirrel: is the sale_locations visible on the location form ?00:45
bechamelvengfulsquirrel: or are you using a new view to show only the sale_location model ?00:46
vengfulsquirrelbechamel: http://paste.pocoo.org/show/130201/00:46
vengfulsquirrelI have warehouse there but it does not show when editing from the warehouse.00:47
vengfulsquirrelShould I do this differently ?00:47
bechamelvengfulsquirrel: yes it was made on purpose00:47
vengfulsquirrelYeah that makes sense unless maybe its invisible and not getting set.00:48
cedkHi, it seems that there is a FreeBSD ports for Tryton http://www.freshports.org/finance/trytond/00:48
bechamelvengfulsquirrel: i think your domain should work when creating record directly on the sale_location model00:48
vengfulsquirrelbechamel: Okay so maybe make a menu item for Warehouse Sale Locations and don't extend the locations form ?00:49
bechamelvengfulsquirrel: 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 131200:49
bechamelvengfulsquirrel: maybe there is a way to combine both00:50
bechamelvengfulsquirrel: 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" form00:51
bechamelvengfulsquirrel: 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 ?)00:54
vengfulsquirrelAre you sure its not get the invoice on the parent form ?00:54
bechamelthe parent form is the invoice00:56
bechameltime to sleep here bye01:01
vengfulsquirrelbechamel: Okay thanks for the help, talk to you later01:02
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has left #tryton01:02
vengfulsquirrelsolved -- "('parent', 'child_of', globals().get('_parent_warehouse') and [globals().get('_parent_warehouse').id] or [])"01:04
-!- ikks_(n=ikks@186.97.51.221) has joined #tryton01:52
-!- yangoon(n=mathiasb@p549F3041.dip.t-dialin.net) has joined #tryton05:20
-!- _TiN_(n=TiN@201-213-85-3.net.prima.net.ar) has joined #tryton06:33
-!- Timitos(n=timitos@88.217.184.172) has joined #tryton07:15
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton07:17
-!- paepke(n=paepke@mail.metaldyne-nue.de) has joined #tryton08:19
-!- carlos(n=carlos@87.221.156.255) has joined #tryton08:44
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:27
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has joined #tryton09:37
-!- ikks(n=ikks@190.102.200.2) has joined #tryton10:07
Timitoscedk: 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.10:16
bechamelTimitos: no it's not possible on list view10:18
Timitosbechamel: ok. thx.10:18
-!- carlos(n=carlos@87.221.156.255) has joined #tryton10:38
CIA-4C?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 issue111110:53
CIA-4http://hg.tryton.org/trytond/rev/f6000d6fe70d10:53
CIA-4ced roundup * #1111/locale is not working on Language Dateformat %B: [resolved] Fixed with changeset f6000d6fe70d10:53
CIA-4http://bugs.tryton.org/roundup/issue111110:53
-!- ikks(n=ikks@190.120.143.15) has joined #tryton11:02
CIA-4C?dric Krier <ced@b2ck.com> default * 1365:9c126a04e521 tryton/ (CHANGELOG tryton/config.py tryton/gui/main.py): Add "Change Accelerators" option for issue106511:04
CIA-4http://hg.tryton.org/tryton/rev/9c126a04e52111:04
CIA-4ced roundup * #1065/Patch: Stop accidentially change the accelerator keys in Tryton client: [resolved] Applied in changeset 9c126a04e52111:04
CIA-4http://bugs.tryton.org/roundup/issue106511:04
-!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton11:20
-!- ikks_(n=ikks@190.102.205.136) has joined #tryton11:35
udonoHey cedk, thank you for appling 9c126a04e521.12:00
-!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton12:00
-!- ctp(n=quassel@brsg-d9bee5ae.pool.mediaWays.net) has joined #tryton12:34
-!- ctp_(n=quassel@217.190.229.174) has joined #tryton12:35
-!- _TiN_(n=TiN@201-213-85-3.net.prima.net.ar) has joined #tryton14:26
-!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton15:14
-!- woakas(n=woakas@190.144.69.234) has joined #tryton15:23
-!- yangoon1(n=mathiasb@p549F7333.dip.t-dialin.net) has joined #tryton15:48
CIA-4C?dric Krier <ced@b2ck.com> default * 1366:80f6155b676e tryton/ (bin/tryton setup.py):17:07
CIA-4Use Clearlooks as theme for MacOS bundle17:07
CIA-4Remove shell script in setup.py for issue110017:07
CIA-4http://hg.tryton.org/tryton/rev/80f6155b676e17:07
CIA-4ced roundup * #1100/Patch: code cleanup for client setup.py: [resolved] Some applies in changeset 80f6155b676e17:07
CIA-4http://bugs.tryton.org/roundup/issue110017:07
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton17:09
-!- enlightx(n=enlightx@ip-100-175.sn2.eutelia.it) has joined #tryton17:26
-!- carlos(n=carlos@87.221.156.255) has joined #tryton18:52
-!- juanfer(n=juanfer@190.144.69.234) has joined #tryton18:53
-!- paepke(n=paepke@p5B32F39B.dip.t-dialin.net) has joined #tryton18:54
-!- carlos(n=carlos@87.221.156.255) has joined #tryton18:54
-!- carlos(n=carlos@87.221.156.255) has joined #tryton18:57
-!- vengfulsquirrel(n=ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton19:15
CIA-4ced roundup * #1020/Module description is to brief: stock_location_sequence: [resolved] It is like any sequence in Tryton. It is for sorting.19:16
CIA-4http://bugs.tryton.org/roundup/issue102019:16
CIA-4ced roundup * #742/stock.packing.out: list_price for inventory_moves?: [closed] No news since 3 months, closing.19:19
CIA-4http://bugs.tryton.org/roundup/issue74219:19
CIA-4ced roundup * #975/Size of forms for new records: [resolved] Fixed with the "Save Width/Height" option fro the changeset 07c38eec9b4e19:22
CIA-4http://bugs.tryton.org/roundup/issue97519:22
CIA-4ced roundup * #583/Account invoce: Sequence for PRO FORMA missing.: I think it should be done in a new module to keep account_invoice light.19:24
CIA-4http://bugs.tryton.org/roundup/issue58319:24
vengfulsquirrelIs it possible to programmatically email reports from the server?19:32
cedkvengfulsquirrel: you can but for now Tryton doesn't handle email server configuration19:33
-!- enlightx(n=enlightx@host-84-220-83-253.cust-adsl.tiscali.it) has joined #tryton19:56
CIA-4ced roundup * #1093/Improve extendibility of stock.inventory:20:01
CIA-4Here is a first patch that follow some ideas from yours:20:01
CIA-4http://codereview.appspot.com/9708520:01
CIA-4http://bugs.tryton.org/roundup/issue109320:01
CIA-4casaxa 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 ...21:32
CIA-4http://bugs.tryton.org/roundup/issue58321:32
-!- juanfer(n=juanfer@190.144.69.234) has joined #tryton21:38
CIA-4udono roundup * #583/Account invoce: Sequence for PRO FORMA missing.:21:45
CIA-4Could 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?21:45
CIA-4So ...21:45
CIA-4http://bugs.tryton.org/roundup/issue58321:45
-!- juanfer(n=juanfer@190.144.69.234) has joined #tryton21:51

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