IRC logs of #tryton for Wednesday, 2017-07-05

chat.freenode.net #tryton log beginning Wed Jul 5 00:00:01 CEST 2017
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton00:03
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton00:14
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:45
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton01:02
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton01:03
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton01:44
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton01:53
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton02:37
-!- thaneor(~ldlc6@r179-25-100-172.dialup.adsl.anteldata.net.uy) has joined #tryton02:49
-!- csotelo(~csotelo@2001:1388:49c7:2502:8abb:2393:b42f:eb9b) has joined #tryton02:49
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton02:59
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton03:01
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton03:36
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton04:29
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:55
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:02
-!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton08:24
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:00
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:05
-!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton09:06
-!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton09:22
-!- rpit(~rpit@2a02:908:e671:9f80:56ee:75ff:fe0d:d3c7) has joined #tryton09:30
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:24
-!- flachtassekasse(~flachtass@5.104.149.54) has joined #tryton11:40
flachtassekasseis there something else i need to allow, aside the key for the chronos app?. I got this Error: https://pastebin.com/2R5m7BF311:55
cedkflachtassekasse: you have to select your employee11:58
flachtassekassecedk: the list in the chronos app is empty, but i have 4 in the datebase.12:11
cedkflachtassekasse: maybe not linked to your user12:16
cedkflachtassekasse: or you have tried to access the application before validating the key12:16
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton12:34
-!- mariomop(~quassel@181.110.164.227) has joined #tryton12:39
alexbodngood afternoon friends13:05
alexbodn 13:05
alexbodni created a record in a function / method, and updated (with write) a few fields. the record could be retrieved by search, with the correct fields values, after the function ends. in the same function i also appended an m2m record by orm, and set an m2o field to a retrieved record. these relation seem correct during the function, but vanish after the function ends. may i need some cache flush?13:16
cedkalexbodn: did you call .save ?13:18
alexbodncedk, i didn't call save. is save a method of the created record, or of other object?13:20
cedkalexbodn: it is a method to store the modification made on an instance13:25
alexbodncedk, user.groups.append only adds records to 'res.user-res.group'. will user.save() catch it?13:26
cedkalexbodn: depends if it is in proteus or with ORM13:29
alexbodnorrm, cedk13:30
-!- smarro(~sebastian@cust-213-46-13-200.trynet.com.ar) has joined #tryton13:40
-!- flachtassekasse(~flachtass@5.104.149.54) has joined #tryton14:02
-!- smarro(~sebastian@cust-102-46-13-200.trynet.com.ar) has joined #tryton14:13
alexbodncedk, first of all, user.save worked ok, thanks.14:40
-!- thaneor1(~ldlc6@179.26.80.206) has joined #tryton14:50
alexbodncedk, only one thing i seem to miss. how could an m2o field be assigned. User.language in this case14:55
cedkalexbodn: user.language = language14:59
alexbodncedk, i tryed that. obviously my right language was not of the correct type. langs = self.Language.search([('code', '=', 'en_US')]); user.language = langs[0] if langs else None. the error: The value of the field "Language" on "User" is not valid according to its domain.15:03
alexbodnthe search returned a correct list15:03
cedkalexbodn: only translatable language can be assigned15:06
alexbodnok, i'll refine the search15:07
alexbodncedk, no lang is translatable in my db15:10
alexbodnin ir_lang15:11
alexbodni have build the db with en_US and fr_FR15:11
alexbodneven after updating the en_US record in ir_lang to translatable, the error message remained the same.15:16
flachtassekassecedk: employee is linked to my user, and i validated before.15:19
-!- kstenger(~karla@r190-134-142-25.dialup.adsl.anteldata.net.uy) has joined #tryton15:20
cedkflachtassekasse: in chronos settings15:20
flachtassekassecedk: i create the application key with chronos, then i use the tryton client and validate the key. and then i try to select the employee in chronos, but the list is empty.15:29
flachtassekassecedk: the user is linked to the employee.15:30
-!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton15:30
rmuis there some example of the syntax of PYSON statements in the states attribute in form elements of views15:33
rmusomething like states="{'invisible': Eval('type').in_(['service'])}" does not work any more15:34
flachtassekassecedk: a test with proteus: https://pastebin.com/yjyrZW4H15:34
cedkflachtassekasse: it could be a cache issue, it is 1 hour15:37
cedkrmu: you must use http://doc.tryton.org/4.4/trytond/doc/ref/models/models.html#trytond.model.ModelView.view_attributes15:39
cedkflachtassekasse: it may happen if you close the key management in chronos when the key was not yet validated15:40
rmucedk: you mean like http://hg.tryton.org/modules/sale/file/tip/product.py#l91 ?15:45
rmucedk: should i try and improve documentation. it seems the client expects some internal representation that is not for the user/developer to write15:46
cedkrmu: yes15:49
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton16:06
-!- kstenger(~karla@r190-134-142-25.dialup.adsl.anteldata.net.uy) has joined #tryton17:35
-!- flachtassekasse(~flachtass@p5DD1973C.dip0.t-ipconnect.de) has joined #tryton17:44
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton17:58
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton18:05
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton18:21
-!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton18:24
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:09
-!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton19:46
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton20:03
-!- udono1(~udono@078-058-210-188.ip-addr.inexio.net) has joined #tryton20:23
-!- udono(~udono@078-058-210-188.ip-addr.inexio.net) has joined #tryton20:27
-!- smarro(~sebastian@cust-162-46-13-200.trynet.com.ar) has joined #tryton20:37
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton20:59
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton21:12
-!- lukio(~lukio@iplan.gcoop.com.ar) has left #tryton21:38
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:00
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton22:40
-!- kstenger1(~karla@r190-134-49-98.dialup.adsl.anteldata.net.uy) has joined #tryton23:14

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