IRC logs of #tryton for Wednesday, 2017-02-22

chat.freenode.net #tryton log beginning Wed Feb 22 00:00:01 CET 2017
2017-02-22 00:34 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-22 00:44 -!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has joined #tryton
2017-02-22 01:52 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-22 03:58 -!- woakas2(~woakas@static.15.240.46.78.clients.your-server.de) has joined #tryton
2017-02-22 07:21 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-02-22 07:53 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-22 08:53 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-02-22 08:58 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-02-22 08:59 -!- udono(~udono@075-058-210-188.ip-addr.inexio.net) has joined #tryton
2017-02-22 09:06 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-22 09:09 <pokoli> alexbodn: you can develop a module that extends the product one by adding the company. That should do the trick without forking
2017-02-22 09:09 <pokoli> alexbodn: the idea is that you don't have to fork anything, but extend by developing custom modules
2017-02-22 09:32 -!- thaneor(~ldlc6@r167-56-170-211.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-02-22 09:37 -!- janem(~stianaurd@cm-84.210.170.111.getinternet.no) has joined #tryton
2017-02-22 10:20 -!- rpit(~rpit@aftr-37-24-151-21.unity-media.net) has joined #tryton
2017-02-22 10:36 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-02-22 11:31 -!- janem(~stianaurd@cm-84.210.170.111.getinternet.no) has joined #tryton
2017-02-22 12:21 -!- mariomop(~quassel@host49.186-108-113.telecom.net.ar) has joined #tryton
2017-02-22 12:37 -!- mariomop(~quassel@host49.186-108-113.telecom.net.ar) has joined #tryton
2017-02-22 12:53 -!- smarro(~sebastian@cust-102-46-13-200.trynet.com.ar) has joined #tryton
2017-02-22 12:56 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-22 13:29 -!- janem(~stianaurd@cm-84.210.170.111.getinternet.no) has joined #tryton
2017-02-22 13:31 <mrichez> hi, need some help about fields_get method ? fields_get(['field_name'])['field_name']['selection'] or saw also with ['string'] in place of ['selection'] . Is 'string' for any field type ?
2017-02-22 13:44 <pokoli> mrichez: sorry but I don't understand your question :$
2017-02-22 13:44 <pokoli> mrichez: fields_get returns the field defintion of each field of the model
2017-02-22 13:44 -!- mamcode(~mamcode@201.209.41.227) has joined #tryton
2017-02-22 13:44 <pokoli> mrichez: fields_get(['field_name'])['field_name']['selection'] returns the selection values of the field_name of the model
2017-02-22 13:45 <pokoli> mrichez: and if you use string it returns the field string (in the user language)
2017-02-22 13:45 <mrichez> pokoli: ok
2017-02-22 13:46 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-22 13:46 <mrichez> pokoli: i'm trying to understand https://bugs.tryton.org/issue6206
2017-02-22 13:47 <pokoli> mrichez: wow that was a patch for a very nice person :P
2017-02-22 13:47 <pokoli> mrichez: on configuration modules we define a field that has exactly the same selection values as on the target module
2017-02-22 13:48 <pokoli> mrichez: with this patch, instead of defining the allowed options on both modles (configuration and sale), we define only in one
2017-02-22 13:48 <pokoli> mrichez: and the configuration selection is read from the target field definition
2017-02-22 13:48 <mrichez> pokoli: cedric suggest me to apply this patch for my different states defined on the parent and to get them on the lines with a function field
2017-02-22 13:49 <pokoli> mrichez: because on you case, you have a parent_state field on lines, which mimics the state of the parent record
2017-02-22 13:50 <pokoli> mrichez: so you have to read the selection values from the parent field definition
2017-02-22 13:50 <mrichez> pokoli: exactly
2017-02-22 13:52 <pokoli> mrichez: and that is done with: Model.fields_get(['field_name'])['field_name']['selection']
2017-02-22 13:52 <mrichez> pokoli: yes
2017-02-22 13:53 <pokoli> mrichez: replacing Model and field_name with correct values
2017-02-22 13:59 <alexbodn> thanks pokoli. i'm just getting in slowly, so i'm concerned not to break things ;)
2017-02-22 13:59 <pokoli> alexbodn: just break, but break it on your local database :)
2017-02-22 14:03 <pokoli> alexbodn: learning by breaking and fixing :P
2017-02-22 14:03 <alexbodn> one good reason to use sqlite, pokoli ;)
2017-02-22 14:03 <mrichez> pokoli: thanks!
2017-02-22 14:19 -!- smarro(~sebastian@cust-226-46-13-200.trynet.com.ar) has joined #tryton
2017-02-22 14:36 -!- alexbodn(~alex@213.57.190.189) has joined #tryton
2017-02-22 15:14 <pokoli> mrichez: you're welcome :)
2017-02-22 15:17 <mrichez> another question about states: in a lot of tryton's modules, there is a method on_change_with_xxx_state, inside we test if there's a self.xxx and returning self.xxx.state
2017-02-22 15:18 <mrichez> what about if self.xxx is false ?
2017-02-22 15:19 <mrichez> method is linked to a selection inside a function field
2017-02-22 15:20 -!- csotelo_at_work(~csotelo@179.43.99.44) has joined #tryton
2017-02-22 15:20 <pokoli> alexbodn: use the backend you prefer, but sqlite is a good choice for testing. On the other hand, I will recomend PostgreSQL for production
2017-02-22 15:21 <mrichez> for example here : http://hg.tryton.org/modules/purchase/file/tip/purchase.py#l1207
2017-02-22 15:22 <pokoli> mrichez: normally it should be defined, otherwise a default value should be define
2017-02-22 15:22 <pokoli> mrichez: following your example, purchase is a required field for purchase_lines
2017-02-22 15:22 <pokoli> mrichez: and as example of the default value, you can have a look at https://bugs.tryton.org/issue6226
2017-02-22 15:22 <mrichez> pokoli: so the if test is unnecessary ?
2017-02-22 15:23 <pokoli> mrichez: no, because for on_change the purchase must have a none value
2017-02-22 15:23 <pokoli> s/must/may
2017-02-22 15:24 <pokoli> mrichez: in this case all the fields will be readonly until you set a purchase value on the line, as the state will != 'draft'
2017-02-22 15:25 <pokoli> mrichez: in python, a function that does not execute a return statement always return None
2017-02-22 15:25 <mrichez> pokoli: but None is not defined in the state selection ?
2017-02-22 15:25 <pokoli> mrichez: yes, but this will be a temporal value
2017-02-22 15:27 <mrichez> pokoli: ?
2017-02-22 15:28 <pokoli> mrichez: the value will be updated via on_change when the purchase is set
2017-02-22 15:28 <pokoli> mrichez: IIRC, all the fields have a None default value
2017-02-22 15:44 <mrichez> pokoli: thanks ! :-)
2017-02-22 16:38 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-22 16:42 -!- kstenger(~karla@r190-134-202-96.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-02-22 18:18 <janem> Hi all, is there any module available that sends invoices by email server-side?
2017-02-22 18:30 <cedk> janem: there is this that could interrest you: https://bugs.tryton.org/issue5835
2017-02-22 18:35 <janem> cedk: yeah, that sounds like what I'm looking for. Just have to wait then I guess :) Thanks though. Just trying out Tryton for a couple of days, debating if I should use it instead of Odoo for my next customer project.
2017-02-22 18:37 <nicoe> janem: you should (I may be biased :D)
2017-02-22 18:38 <janem> nicoe: I am new to ERP systems in general, we built something for a client from scratch, which ended up much like an ERP, just led me to realize that it's wise to find a solid base, as many of the chalanges are very bussiness generic
2017-02-22 18:40 <janem> Odoo seemed promissing, but very messy, and they dont handle the commercial/opensource very well it seems..
2017-02-22 18:44 <janem> I am also wondering how "big" Tryton is, how many developers are there? By my googling it doesnt seem like there is to much traction on the project. I find some things, but I would expect an open source erp to attract more developers/project.
2017-02-22 18:45 <janem> This is just a loose thought after googling a few days about different Tryton stuff.
2017-02-22 18:58 <cedk> janem: we are mainly a community of people doing things not talking
2017-02-22 18:58 <janem> cedk: fair enough, and I dont mean to insult the project. It's just that I am interested in learning more about it and the state of it
2017-02-22 18:59 <cedk> janem: I did not take it as an insult
2017-02-22 19:00 <cedk> janem: if you compare with Odoo, their goal is to attract (and lock) as much as possible users
2017-02-22 19:01 <cedk> but here we have mainly companies that install Tryton to their customers (often unfortnuatly rebranded)
2017-02-22 19:01 <janem> cedk: Yeah, thats the feeling I got too.
2017-02-22 19:03 <janem> cedk: I see. I will try to create a module and fiddle around with it. Just got my docker image up and running. I'll start digging in the documentation :)
2017-02-22 19:05 <cedk> janem: major difference with Odoo is that Tryton migrates from version to version
2017-02-22 19:05 <cedk> while Odoo requires a contract
2017-02-22 19:06 <janem> cedk: I saw the discuss on the dockerimage btw.. I think it's more the docker way to have everything included in the image, database and all, ready to test/launch
2017-02-22 19:06 <janem> cedk: to me that's more the docker way
2017-02-22 19:06 <cedk> this is just because we are a collectif that build a software so we share
2017-02-22 19:06 <janem> cedk: yeah, I'm definetly not choosing Odoo to build on, could offer it for a client ootb for very simple accounting stuff.
2017-02-22 19:07 <cedk> janem: strange because docker are not persistant but you should want to persist the database?
2017-02-22 19:07 <janem> cedk: thats easy to fix.. I just installed postgresql, changed user to root, and in the entrypoint.sh checks if a empty database dir is mounted or not
2017-02-22 19:07 <janem> cedk: works like a charm
2017-02-22 19:08 <janem> cedk: I use it for many projects/services we deliver
2017-02-22 19:10 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-02-22 19:11 <janem> cedk: it just checks if a dir "/data/database/" is mounted, if it is, and its empty, delete original postgres data folder, symlink it, and run the trytond-admin command
2017-02-22 19:11 <janem> cedk: if it exsistes, and is not empty, just sym link and do nothing else.. persistense
2017-02-22 19:25 <janem> cedk: I guess also the /var/lib/tryton directory should be mounted as well
2017-02-22 19:37 <janem> cedk: I'll be more then happy to share my image once I have time to clean it.
2017-02-22 19:43 <alexbodn> pokoli, of course for testing :)
2017-02-22 19:48 -!- smarro(~sebastian@cust-127-46-13-200.trynet.com.ar) has joined #tryton
2017-02-22 20:17 -!- sleepdead(~morato@189-12-129-136.user.veloxzone.com.br) has joined #tryton
2017-02-22 20:37 <sleepdead> hey guys, i'm new to tryton and trying to learn its way. Is there a recommended way of running production? (Besides PostgreSQL)
2017-02-22 21:07 <cedk> sleepdead: not really
2017-02-22 21:08 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-22 21:14 <cedk> sleepdead: indeed the best is to use what you already know
2017-02-22 21:28 -!- smarro(~sebastian@cust-123-46-13-200.trynet.com.ar) has joined #tryton
2017-02-22 21:34 -!- thaneor1(~ldlc6@179.26.129.131) has joined #tryton
2017-02-22 21:43 <sleepdead> cedk Thanks. I started tryton with uwsgi and it was using 200MB with python2 and 350MB with pypy. That's RAM. Are these numbers expected?
2017-02-22 22:35 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-22 22:37 -!- janem(~stianaurd@cm-84.210.170.111.getinternet.no) has joined #tryton
2017-02-22 23:12 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton
2017-02-22 23:33 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2017-02-22 23:39 -!- janem(~stianaurd@cm-84.210.170.111.getinternet.no) has joined #tryton
2017-02-22 23:58 -!- trilliji(~trilliji@cpe-67-255-39-42.stny.res.rr.com) has joined #tryton

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