IRC logs of #tryton for Thursday, 2015-07-09

chat.freenode.net #tryton log beginning Thu Jul 9 00:00:01 CEST 2015
2015-07-09 00:19 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-07-09 01:32 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-07-09 02:35 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-07-09 05:04 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 05:18 -!- digitalsatori1(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 05:52 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 06:40 -!- frispete(~frispete@p54A91EB2.dip0.t-ipconnect.de) has joined #tryton
2015-07-09 07:00 -!- yangoon1(~mathiasb@p549F09EF.dip0.t-ipconnect.de) has joined #tryton
2015-07-09 07:24 -!- sunny_dealmeida(~quassel@203.76.189.239) has joined #tryton
2015-07-09 07:33 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-09 07:38 -!- nicoe(~nicoe@2a02:a03f:3089:9d00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-07-09 07:55 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-07-09 07:58 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 08:14 -!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton
2015-07-09 09:15 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-07-09 09:19 -!- rpit(~rpit@2a02:908:e670:6ac0:847e:c54c:f0ea:61f0) has joined #tryton
2015-07-09 09:25 -!- bechamel(~Adium@109.131.46.232) has joined #tryton
2015-07-09 09:45 -!- Timitos(~kpreisler@2001:4c50:34c:9d00:ae7b:a1ff:feaf:55f0) has joined #tryton
2015-07-09 09:54 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 10:07 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-07-09 10:33 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 10:37 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 10:55 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 11:07 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-07-09 11:08 <Jitesh_Nair> how to assign a Many2One variable
2015-07-09 11:08 <Jitesh_Nair> iam trying to assign a product to purchase.product_supplier instance
2015-07-09 11:09 <Jitesh_Nair> but iam getting assertion error
2015-07-09 11:09 <Jitesh_Nair> http://dpaste.com/2VYKQ05
2015-07-09 11:11 <Jitesh_Nair> http://dpaste.com/1WP7ARJ
2015-07-09 11:12 <Jitesh_Nair> the second one was without a iterator
2015-07-09 11:13 <pokoli> Jitesh_Nair: product_supplier.product = product
2015-07-09 11:13 <pokoli> Jitesh_Nair: you are tryting to assing a tuple to a Many2one
2015-07-09 11:13 <Jitesh_Nair> ya the second example does it
2015-07-09 11:13 <pokoli> Jitesh_Nair: how do you get product?
2015-07-09 11:13 <pokoli> xE
2015-07-09 11:13 <Jitesh_Nair> please check the second one
2015-07-09 11:14 <Jitesh_Nair> searching the product
2015-07-09 11:14 <pokoli> Jitesh_Nair: search always return a list
2015-07-09 11:14 <pokoli> Jitesh_Nair: so you have to pick the first instance
2015-07-09 11:14 <Jitesh_Nair> yup i unpacked it
2015-07-09 11:14 <Jitesh_Nair> and then assigned it
2015-07-09 11:14 <pokoli> Jitesh_Nair: so it seems that it's not unpacekd
2015-07-09 11:15 <Jitesh_Nair> i also tried to assign the id
2015-07-09 11:15 <Jitesh_Nair> lemme show you
2015-07-09 11:15 <pokoli> product, = Product.search([], limit=1)
2015-07-09 11:16 <Jitesh_Nair> http://dpaste.com/3M23MR6
2015-07-09 11:16 <Jitesh_Nair> product = self.Product.search([('code', '=', code), ('description', '=', 'Stock'),
2015-07-09 11:16 <Jitesh_Nair> ('type', '=', 'goods')])[-1]
2015-07-09 11:17 <Jitesh_Nair> product = self.Product.search([('code', '=', code), ('description', '=', 'Stock'),('type', '=', 'goods')])[-1]
2015-07-09 11:17 <Jitesh_Nair> when i was using proteus all i had to do was use a .new() function
2015-07-09 11:17 <pokoli> Jitesh_Nair: can I see the full code?
2015-07-09 11:18 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 11:18 <Jitesh_Nair> http://dpaste.com/0P7AA58
2015-07-09 11:20 <Jitesh_Nair> since i could not understand what was happening in .new() of proteus i had to create the instance and assign them
2015-07-09 11:20 <pokoli> Jitesh_Nair: product it's a many2one to product.template, so you have to use the template instead of the product
2015-07-09 11:22 <Jitesh_Nair> ohh i missed that...
2015-07-09 11:25 <Jitesh_Nair> pokoli, it has so many dependency , when using new() i dint have to pass the company or product(actually no company is created for the supplier), is there any way to do the same skipping in this method?
2015-07-09 11:26 <pokoli> Jitesh_Nair: nor product, nor party have company field
2015-07-09 11:26 <pokoli> Jitesh_Nair: but product supplier has, as the prices may be diferent between companies
2015-07-09 11:27 <Jitesh_Nair> so does proteus create a company when we call the new() function
2015-07-09 11:27 <Jitesh_Nair> because when i was using proteus i dint pass any company to the supplier
2015-07-09 11:29 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 11:44 <Jitesh_Nair> pokoli, it worked thanks
2015-07-09 11:45 <pokoli> Jitesh_Nair: you're welcome
2015-07-09 12:13 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-09 13:49 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-07-09 14:05 -!- FvD(~Thunderbi@ip95-153-64-186.ct.co.cr) has joined #tryton
2015-07-09 14:40 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-07-09 15:09 -!- Timitos(~kpreisler@77.47.6.170.dynamic.cablesurf.de) has joined #tryton
2015-07-09 16:45 -!- VaticanCameos(~pritishc@182.68.172.234) has joined #tryton
2015-07-09 17:12 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-09 17:28 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-07-09 18:33 -!- FvD(~Thunderbi@ip95-153-64-186.ct.co.cr) has joined #tryton
2015-07-09 19:25 -!- sunny_dealmeida(~quassel@203.76.189.239) has joined #tryton
2015-07-09 20:34 -!- nineinchnick(~jwas@109.231.22.187) has joined #tryton
2015-07-09 22:19 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-07-09 22:30 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-07-09 23:18 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-07-09 23:49 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton

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