IRC logs of #tryton for Tuesday, 2009-06-30 #tryton log beginning Tue Jun 30 00:00:02 CEST 2009
-!- ikks(n=ikks@ has joined #tryton00:21
-!- vengfulsquirrel( has joined #tryton00:34
-!- bechamel( has left #tryton00:37
-!- CIA-68(n=CIA@ has joined #tryton00:46
-!- digitalsatori(n=tony@ has joined #tryton03:01
-!- gremly(n=gremly@ has joined #tryton04:18
-!- gremly(n=gremly@ has joined #tryton04:32
-!- digitalsatori(n=tony@ has joined #tryton04:52
-!- yangoon( has joined #tryton04:56
-!- ikks_(n=ikks@ has joined #tryton05:13
-!- yangoon( has joined #tryton05:18
-!- udono( has joined #tryton06:44
-!- enlightx(n=enlightx@ has joined #tryton07:55
-!- enlightx(n=enlightx@ has left #tryton07:55
-!- sharkcz( has joined #tryton07:58
-!- carlos( has joined #tryton08:25
-!- enlightx(n=enlightx@ has joined #tryton08:41
-!- paepke( has joined #tryton09:12
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:27
-!- enlightx_(n=enlightx@ has joined #tryton09:28
CIA-68vengfulsquirrel roundup * #1093/Improve extendibility of stock.inventory: [new] I have a few issues with the existing stock.inventory model they mostly center around making it so that the inventory model can be extended ...09:40
CIA-68ced roundup * #1093/Improve extendibility of stock.inventory: [chatting] Could you please put the patch on Rietveld as describes in
CIA-68vengfulsquirrel roundup * #1093/Improve extendibility of stock.inventory:10:09
CIA-68Oops missed the new rules, here you go:10:09
vengfulsquirrelcedk: So as to not pollute the mailing list I'm asking you in here, if you had the time could generate this changeset for mac:  adce5f2ccb3f just for tryton not trytond ?  If I have the matching trytond code running somewhere else with extensions that won't matter right, like its going off the files and not changesets or anything ?10:23
cedkvengfulsquirrel: ok10:25
vengfulsquirrelcedk: Got it, thanks a lot.10:52
-!- cristi_an(i=5bbf82c4@gateway/web/freenode/x-c16273980102bee4) has joined #tryton11:49
cristi_anshort poll : which on eis using mac here ,and wich one windows  or linux12:20
-!- cristi_an(i=5bbf82c4@gateway/web/freenode/x-c16273980102bee4) has left #tryton12:22
udonoACTION thinks: quick poll12:24
-!- enlightx(n=enlightx@ has joined #tryton12:29
-!- sharkcz( has joined #tryton12:40
-!- bechamel( has joined #tryton12:46
-!- sharkcz_( has joined #tryton13:00
-!- enlightx(n=enlightx@ has joined #tryton13:19
-!- cedk_( has joined #tryton14:06
-!- cedk_( has joined #tryton14:16
-!- _TiN_(n=TiN@ has joined #tryton14:21
-!- carlos( has joined #tryton14:38
-!- enlightx(n=enlightx@ has joined #tryton14:43
CIA-68Bertrand Chenal <> default * 165:a0f95e33c274 company/doc/index.rst: Added doc14:46
CIA-68Bertrand Chenal <> default * 2:127eba4d101b project_plan/work.xml:14:46
CIA-68Improve work view:14:46
CIA-68- put allocations in a tab14:46
CIA-68- move constraint dates on top of other dates14:46
CIA-68matb roundup * #1094/Content lost on log archive?:14:59
CIA-68[new] There seems to be content lost on the IRC log:14:59
CIA-68I wanted to refer to an earlier discussion, but ...14:59
CIA-68matb roundup * #1095/Translation of language attributes: [new] As pointed out previously, we should find a clear differentiation between the display of language selection and language attributes of objec ...15:13
-!- woakas(n=woakas@ has joined #tryton15:19
CIA-68ced roundup * #1094/Content lost on log archive?: [invalid] It happens: connection lost, client crash, etc.15:36
-!- Timitos(n=timitos@ has joined #tryton16:11
-!- paepke( has joined #tryton17:08
-!- enlightx(n=enlightx@ has joined #tryton17:31
-!- Timitos(n=timitos@ has left #tryton17:34
-!- Timitos(n=timitos@ has joined #tryton17:34
-!- vengfulsquirrel( has joined #tryton17:50
vengfulsquirrelWhen extending a model is it possible to call the overridden method of a specific instance of that model?18:18
udonovengfulsquirrel: how do you like to specify an instance of the model? Do you have some example?18:21
vengfulsquirreludono:  Like say for example calling the method that existed in an official tryton module's model before I override it in my own module's model.  Say stock.inventory.complete_lines for example, could I override that in a module and then call the original ?  Like some kind of super() usage.18:24
udonovengfulsquirrel: yes, this work18:25
udonoACTION looking for an example18:25
carlosreturn super(Period, self).create(cursor, user, vals, context=context)18:27
carlosthat's what is used in for account_invoice module18:28
carlosto override Period.create method defined in the account modules18:28
vengfulsquirreludono: Hmm okay yeah forgot about that but I guess what confuses me is how is the order of the inheritance chain determined if multiple extensions are changing the base module.  So like say there is a third extension so I have BaseModel.create, FirstExtensionToBaseModel.create, SecondExtensionToBaseModel.create, is there anyway to know what order super will resolve those?18:31
carlosvengfulsquirrel: that's a good question, and something I was wondering too :-P18:34
udonovengfulsquirrel: I don't think there is a sequence. But afaik the goal is to run thru the whole inheritance chain, and pick/change what you need.18:34
udonovengfulsquirrel: this means when you overwrite a method you need to return with super...18:35
vengfulsquirreludono:but for example what if I want to replace what the first extension did with a new method but still call to the base method ?  Like skip a step in the inheritance tree.18:36
vengfulsquirrelOr I guess I wouldn't know who was second or third anyways18:37
udonovengfulsquirrel: I don't know how to do. This maybe cedk has a solution for this.18:38
vengfulsquirrelI think I've avoided needing it so far just curious because I'm sure its going to come up.18:39
carlosyeah, I wondered the same thing when overriding the invoice report18:42
udonovengfulsquirrel: But it is in any case not easy, because you do not know about other modules which are in the super chain. You can't control what you don't know.18:42
carlosfor some reason, it works as I expect it to work, however it's not the same code, given that it's the xml code, so it doesn't mean it should work in the same way than python code inheritance18:43
carlosudono: I was wondering whether it may use the dependency definition inside file18:44
carlosbut I didn't have time (yet) to check it18:45
udonocarlos: I expect the dependency tree build-up in the super chain, but do not know, too. But anyway there will be dependencies on the same level, you can not know which is first, I guess.18:48
cedkyes, it is the dependencies from and if there is some at the same level, it must be alphabetic order18:50
-!- gremly(n=gremly@ has joined #tryton18:51
vengfulsquirrelsuper resolves across the dependencies in ?18:51
carlosstill, it's not reliable, given that you don't know the custom modules someone may have, so I think is better if you don't skip any super call...18:52
cedkvengfulsquirrel: no, it is the way Tryton instanciates models18:53
vengfulsquirreloh okay18:53
-!- cedric_b( has joined #tryton19:52
-!- essich( has joined #tryton20:08
cedkvengfulsquirrel: hi, I suppose that your patch is because you create a lot of location (one per product)?20:50
vengfulsquirrelyes but the functionality in the patch doesn't implement that specifically it just allows the core tryton module to be extended by another module that implements that20:51
vengfulsquirrelI don't think there will be many companies that do inventory one location at a time though.20:52
cedkvengfulsquirrel: I need to think about that. Because in Tryton location is a place on which you compute stock quantities20:53
vengfulsquirrelcedk: Yes but I use a tree of views where the root is the main storage zone and all leaves are STORAGE but all non-leaves are VIEW, so it kind of makes more sense when you think about it that way.20:54
vengfulsquirrelSo like if you had a building with storage shelves you'd take inventory usually on the entire building not each shelf.20:55
vengfulsquirrelbut you'd still want to know that the product was at a certain shelf20:56
cedkvengfulsquirrel: you must encode per location the quantities20:56
vengfulsquirrelyes so the quantities are only assigned to the leaf nodes of the tree20:56
vengfulsquirrelso like warehouse A has bin 1, the quantity is at location == A - 1 of type storage, but location A - 1 is a child of warehouse A of type view20:57
vengfulsquirrelit seems to work for me20:57
cedkvengfulsquirrel: I understand20:57
cedkvengfulsquirrel: but it is difficult to have a good design for both cases20:58
vengfulsquirrelYes but it supports both now, and the current design cannot support both.20:58
vengfulsquirrelbut yes I think the only other solution is just create a seperate module that is compeltely different20:58
cedkI don't know20:58
cedkvengfulsquirrel: we had developped a module to create all inventories21:04
cedkI find it is a simplier solution21:05
cedkwe will publish it soon21:05
vengfulsquirrelWhat do you mean all inventories?21:08
essichcedk: Hi, I'm nearly finished writing helper scripts for Windows installation download.21:12
essichcedk: What about adding a mercurial-repos 'helper-scripts' to maintain them?21:13
essichcedk: could go there, too21:13
vengfulsquirrelcedk: gotta run, I'll talk to you about it tomorrow, thanks for looking at it21:19
essichudono: IC.21:32
essichcedk: may I please have write-access to this repos?21:32
-!- bechamel( has joined #tryton22:19
-!- bechamel( has left #tryton23:29 * r672 /wiki/ Renamed page23:59 * r673 /wiki/ Edited wiki page through web user interface.23:59 * r674 /wiki/ Deleting wiki page BuilingRPMs.23:59 * r675 /wiki/ Edited wiki page through web user interface.23:59

Generated by 2.11.0 by Marius Gedminas - find it at!