IRC logs of #tryton for Friday, 2015-01-23

chat.freenode.net #tryton log beginning Fri Jan 23 00:00:01 CET 2015
-!- digitalsatori(~Thunderbi@101.87.135.73) has joined #tryton00:34
-!- yangoon1(~mathiasb@p549F3043.dip0.t-ipconnect.de) has joined #tryton06:01
-!- marius__(~marius@v100.nfq.lt) has joined #tryton07:14
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton08:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:56
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton09:15
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton09:15
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton09:48
-!- digitalsatori(~Thunderbi@101.87.135.73) has joined #tryton10:07
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton10:22
pobstetain a class A I attribute x One2Many. How to recover when creating a new enregistrment x, the id of the class A?10:27
pokolipobsteta: the value will be assigned to the target field10:44
pobstetapokoli: yes i know, it will be assigned when you click on save button, but i want have this value before click, when the record is created ?10:54
pokolipobsteta: on the client side? and what do you want to do with this value?10:55
pobstetapokoli: yes on the client side. I want to know on create the len of x attribute ?10:57
pokolipobsteta: just make your function field an on_change_with_one2many field and will be updated every time the one2many is changed11:00
pobstetapokoli: it will be updated on change, but not on create ?11:01
pokolipobsteta: assign a default value of 011:02
pobstetapokoli: have you an example ? For me it don't work !11:27
pokolipobsteta: can you upload your code?11:29
pobstetapokoli: i want to konw, when i create a new evolution, how many evolution exist ! http://pastebin.com/8R0j6BBa11:35
pokolipobsteta: it should be something like this http://pastebin.com/s053DVHB11:40
pobstetapokoli: it's ok but i want the number_of_evolutions attribute not in emplacement class but in evol_emplacement ?11:48
-!- kstenger(~karla@200.124.209.158) has joined #tryton11:50
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton11:50
pokolipobsteta: you can access them from the evolutions if you want, but it's an attribute of emplacement :)11:51
Hamsterbauis it possible to change localization of a module "on the fly"?11:56
Hamsterbaui tried by changing locale file but nothing happens :((11:57
pobstetapokoli: i work with tryton 2.8, @fields.depends('evolution') don't work ?11:59
pokoliHamsterbau: locale file is imported into ir.translation model. Can you explain  what you are trying? it sounds a little bit strange11:59
pokolipobsteta: sorry, it's 3.4 code, you have to fill the depends attribute on de field,11:59
-!- senchan(2eea5104@gateway/web/freenode/ip.46.234.81.4) has joined #tryton12:02
senchanhello to all12:02
Hamsterbaui want to add a missing translation of a module :)12:02
Hamsterbaujust try to change some localizations locally on my tryton server :D12:03
HamsterbauGOOOOOOOOODMORNING VIIIIEEEETNAAAAAM ;D12:03
senchananyone here have experience with nereid?12:05
-!- mariomop(~quassel@host188.186-108-167.telecom.net.ar) has joined #tryton12:05
cedkHamsterbau: http://code.google.com/p/tryton/wiki/HowtoTranslate12:10
Hamsterbaui tried to call "Update localizations" from the client, without success - now i will try to update the changed module :)12:13
pokolisenchan: a little bit experience here :)12:17
cedksenchan: I got for flask-tryton12:21
senchansorry went for breakfast :D I've seen someone make a webshop with nereid...we wanna make something similar, but with partner access...is there a limit to the number of users that can manage their own products on our service? I hope question is not too nooby12:32
senchansince I got the idea the ERP part is only for internal use (inside a company)...this would be more external12:33
pokolisenchan: you should have a look at https://github.com/openlabs/nereid-webshop12:35
pokolisenchan: and for the partner part i don't know anything existing, so you should develop it, so you put the limits you want (or None)12:36
senchanoh yes..cool, so we should basdically build a new tryton module that shows only certain information, etc, right?12:36
pokolisenchan: you should adapt nereid-webshop to your needs, customize templates, and then develop the partner accesss part with your needs12:37
pokolisenchan: and the same can be done with flask-tryton if you want12:38
senchanthanks pokoli, this will be very helpful12:38
pokolisenchan: you're welcome. Feel free to ask if you have more doubts, we will try to help as much as possible12:39
senchanmuch obliged12:39
-!- udono(~udono@p50938317.dip0.t-ipconnect.de) has joined #tryton12:47
-!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton13:40
-!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has left #tryton13:40
-!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton13:40
-!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has left #tryton13:41
pobstetapokoli: thanks, it's ok ! But now i want when i create a new evol_emplacement, that the number_of_evolutions was a default attribute of evol_emplacement ?13:46
pokolipobsteta: don't understand13:47
pobstetapokoli: just look at this pastebin http://pastebin.com/G9h85QxU, compteur attribute don't work naturally ?13:53
-!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton13:55
marius__pobsteta, why would you write non-english text into code?14:02
pokolipobsteta: you want to save the number of records?14:02
pokoliso first has a 1, second has a 2, and etc14:03
pokolipobsteta: what i will do is use a default value for it, that returns current number + 114:03
pokolipobsteta: to put current number, you have to put Eval('numer_of_components') in lines context, and return it from default value on lines14:04
pokolibut maybe it's worth to find a generic solution for all models to avoid to save the values14:04
pobstetapokoli: yes i want save in each evol_emplacement the number of records for each emplacement when evol_emplacement is create ?14:07
pokolipobsteta: but what's the objective of this?14:09
pokolipobsteta: if you want to order them you can use a sequence14:09
pobstetapokoli: no it's not a sequence because the user can change the value, by default the value is the sequence of creation but not for all time ?14:14
-!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton14:19
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton14:24
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton15:06
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton15:06
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton15:06
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton15:07
pokolipobsteta: but what happens when the user changes de value?15:17
pokolipobsteta: you will order the xxx2Many based on that field?15:18
pobstetapokoli: i have an other attribute integer number_evolution2, and number_evolution2 = max(number_evolution, compteur)15:28
pokolipobsteta: why you want to attributes?15:31
pokolipobsteta: i'm just trying to understand which is the objective of this field15:32
pobstetapokoli: it's ok. I managed to do what I wanted16:59
-!- digitalsatori(~Thunderbi@114.92.210.36) has joined #tryton17:02
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:04
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton17:30
-!- sunny_dealmeida(~quassel@203.115.76.29) has joined #tryton18:59
-!- TheCowboy`(~TheCowboy@98.191.208.111) has joined #tryton19:03
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton20:08
-!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has left #tryton20:29
-!- jcros(~Thunderbi@251.171.125.78.rev.sfr.net) has joined #tryton20:59
-!- jcros1(~Thunderbi@251.171.125.78.rev.sfr.net) has joined #tryton21:01
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton21:17
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton21:52
-!- uranus(~uranus@ip72-192-133-197.sd.sd.cox.net) has joined #tryton22:06
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has left #tryton22:11
-!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton22:29
-!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton23:00

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