IRC logs of #tryton for Thursday, 2013-06-06

chat.freenode.net #tryton log beginning Thu Jun 6 00:00:02 CEST 2013
2013-06-06 09:41 <iamnoob> hi, im tryting to do a simple python print of a field, inside the on_changed event of a many2many field.. but i keep on having a error.. --> AttributeError: 'sr.sr' Model has no attribute 'inputby': {'division': Pool().get('req.requnit')(2), 'pendingsr': [Pool().get('sr.srdetails')(1)], 'totalamount': '0.00'}
2013-06-06 09:43 <iamnoob> i already put it inside the fields on_changed['inputby'], and the field inputby is there, on an on_changed event of a many2one field im not having this problem,
2013-06-06 09:47 <cedk> iamnoob: such issue comes when the field value is not sent by the client
2013-06-06 09:48 <cedk> iamnoob: could be it is not in on_change list or in depends
2013-06-06 09:53 <iamnoob> cedk: thanks got it
2013-06-06 12:01 -!- RAU(~cstec@AGrenoble-651-1-506-138.w82-122.abo.wanadoo.fr) has left #tryton
2013-06-06 14:06 <_droid> hi, im trying to delete a product of mine but fail at it. I get the message: Could not delete "Product" records because they are used on field "Product" of "Product Location".
2013-06-06 14:06 <_droid> any ideas why?
2013-06-06 14:06 <_droid> or can someone point me to the right direction?
2013-06-06 14:09 <bechamel`> _droid: probably because there is a default stock locations defined for this product
2013-06-06 14:14 <_droid> bechamel`: yes that is true, how do I remove it??
2013-06-06 14:25 <bechamel`> _droid: remove the Product Location record that contains the record you want to remove
2013-06-06 14:29 <_droid> bechamel`: sry got dc, did you say something??
2013-06-06 14:31 <bechamel`> _droid: yes: "remove the Product Location record that contains the record you want to remove"
2013-06-06 14:44 <_droid> bechamel`: i went to locations, but there is no record. I'm new to tryton so excuse my noobishness :), could you elaborate a little more?
2013-06-06 14:48 <bechamel`> _droid: from reading the code I see that the default locations are shown on the product view itself
2013-06-06 14:50 <_droid> bechamel`: well at Products->"my product"->Default Locations
2013-06-06 14:50 <_droid> bechamel`: yes
2013-06-06 14:52 <bechamel`> _droid: actually you must first delete the default locations lines (save the form) and then delete the product
2013-06-06 14:53 <bechamel`> _droid: which is kind of counter-intuitive :(
2013-06-06 14:55 <_droid> bechamel`: @ Locations, there is nothing listed and when I try to delete the default location of the Product, as you described, I get this message: Could not delete "Product" records because they are used on field "Product" of "Product Location".
2013-06-06 14:56 <giedrius> hi guys, is it possible to change rec_name of object on single many2one relation?
2013-06-06 14:59 <bechamel`> _droid: you try to delete a default location and you get an error message about the product ?
2013-06-06 15:00 <_droid> bechamel`: yes
2013-06-06 15:01 <_droid> bechamel`: I went to Products->"my product"->Default Locations in order to delete the record of that location and I get the error message
2013-06-06 15:06 <bechamel`> _droid: open the product form, delete the location line(s) at the bottom, *save the form* and then try to delete it.
2013-06-06 15:09 <_droid> bechamel`: ahhh, ok. My mistake, I used ctrl+d to delete the record didn't took notice of a paper shredder on the right hand side thank you for your patience
2013-06-06 15:20 <_droid> ok, i'm now at Products->Categories->Categories and want to delete (with ctrl+d) a record and I get an application error message. http://pastebin.com/HegcR2ge
2013-06-06 15:20 <_droid> Did I do something wrong??
2013-06-06 15:22 <bechamel`> _droid: no error message on the client ?
2013-06-06 15:22 <_droid> bechamel`: the message is in the pastebin link
2013-06-06 15:42 <cedk> bechamel`, _droid: I think an ondelete='CASCADE' is missing
2013-06-06 15:44 <bechamel`> cedk: yes
2013-06-06 21:07 <Telesight> I wondered if the documents in the filestore are encrypted?
2013-06-06 21:09 <cedk> Telesight: no
2013-06-06 21:09 <Telesight> Ok thanks, that is pitty ;-)
2013-06-06 21:19 <Telesight> A question about the permissionsystem of version 2.8: If I create a new user and put this user in a new created group and this group has no rights at all, the user can still enter data and see things ... I expected the user can do nothing untill I give the group rights.
2013-06-06 21:27 <Telesight> Does a user get some bottomline rights or so?
2013-06-06 21:37 <Telesight> Anybody an idea?

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!