IRC logs of #tryton for Thursday, 2009-07-23 #tryton log beginning Thu Jul 23 00:00:02 CEST 2009
bechamelvengfulsquirrel: cedk: I think something like, 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:
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:
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
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
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
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
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/ 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( has left #tryton01:02
vengfulsquirrelsolved -- "('parent', 'child_of', globals().get('_parent_warehouse') and [globals().get('_parent_warehouse').id] or [])"01:04
-!- ikks_(n=ikks@ has joined #tryton01:52
-!- yangoon( has joined #tryton05:20
-!- _TiN_( has joined #tryton06:33
-!- Timitos(n=timitos@ has joined #tryton07:15
-!- sharkcz( has joined #tryton07:17
-!- paepke( has joined #tryton08:19
-!- carlos(n=carlos@ has joined #tryton08:44
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:27
-!- bechamel( has joined #tryton09:37
-!- ikks(n=ikks@ 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@ has joined #tryton10:38
CIA-4C?dric Krier <> default * 1895:f6000d6fe70d trytond/ (5 files in 3 dirs): Add strftime to ir.lang to handle locale's format for issue111110:53
CIA-4ced roundup * #1111/locale is not working on Language Dateformat %B: [resolved] Fixed with changeset f6000d6fe70d10:53
-!- ikks(n=ikks@ has joined #tryton11:02
CIA-4C?dric Krier <> default * 1365:9c126a04e521 tryton/ (CHANGELOG tryton/ tryton/gui/ Add "Change Accelerators" option for issue106511:04
CIA-4ced roundup * #1065/Patch: Stop accidentially change the accelerator keys in Tryton client: [resolved] Applied in changeset 9c126a04e52111:04
-!- enlightx( has joined #tryton11:20
-!- ikks_(n=ikks@ has joined #tryton11:35
udonoHey cedk, thank you for appling 9c126a04e521.12:00
-!- enlightx( has joined #tryton12:00
-!- ctp( has joined #tryton12:34
-!- ctp_(n=quassel@ has joined #tryton12:35
-!- _TiN_( has joined #tryton14:26
-!- enlightx( has joined #tryton15:14
-!- woakas(n=woakas@ has joined #tryton15:23
-!- yangoon1( has joined #tryton15:48
CIA-4C?dric Krier <> default * 1366:80f6155b676e tryton/ (bin/tryton
CIA-4Use Clearlooks as theme for MacOS bundle17:07
CIA-4Remove shell script in for issue110017:07
CIA-4ced roundup * #1100/Patch: code cleanup for client [resolved] Some applies in changeset 80f6155b676e17:07
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton17:09
-!- enlightx( has joined #tryton17:26
-!- carlos(n=carlos@ has joined #tryton18:52
-!- juanfer(n=juanfer@ has joined #tryton18:53
-!- paepke( has joined #tryton18:54
-!- carlos(n=carlos@ has joined #tryton18:54
-!- carlos(n=carlos@ has joined #tryton18:57
-!- vengfulsquirrel( 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-4ced roundup * #742/stock.packing.out: list_price for inventory_moves?: [closed] No news since 3 months, closing.19: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-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
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( 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-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
-!- juanfer(n=juanfer@ 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
-!- juanfer(n=juanfer@ has joined #tryton21:51

Generated by 2.11.0 by Marius Gedminas - find it at!