chat.freenode.net #tryton log beginning Mon Jun 24 00:00:01 CEST 2013 | ||
2013-06-24 16:39 <oscar_> Which is the difference between | ||
2013-06-24 16:40 <oscar_> for example | ||
2013-06-24 16:45 <oscar_> party = Party() | ||
2013-06-24 16:56 <cedk> oscar_: that's pretty slow | ||
2013-06-24 16:57 <oscar_> ok, what's is better party = Party; party.name = ABC or Party.create([{name: ABC}])? | ||
2013-06-24 17:01 <oscar_> Sorry, ok, what's is better party = Party; party.name = ABC; party.save() or Party.create([{name: ABC}])? | ||
2013-06-24 17:47 <cedk> oscar_: depend of your goal | ||
2013-06-24 17:49 <oscar_> cedk: just I want to create new record, but I don't understand the difference between both methods | ||
2013-06-24 17:50 <cedk> oscar_: one is in two steps, the other in one | ||
2013-06-24 18:03 <cedk> oscar_: indeed I would say it depends if you want to return the instance to allow further customisation or not | ||
2013-06-24 18:04 <oscar_> cedk: Thanks I understand | ||
2013-06-24 20:47 <rpit> hi, how can I put an image, company.logo, to a report. I tried with 'native' company.logo and StringIO(company.logo), but Tryton at some point always trys to encode the image and ends up in an encoding error. Is there a way? I'm using Tryton 2.6, Relatorio 0.5.7 and Genshi 0.6? |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!