IRC logs of #tryton for Thursday, 2017-08-10 #tryton log beginning Thu Aug 10 00:00:01 CEST 2017
2017-08-10 00:32 -!- kstenger1( has joined #tryton
2017-08-10 02:51 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-10 02:57 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-10 03:35 -!- csotelo(~csotelo@2001:1388:49c6:f9a5:a328:3589:be40:bafd) has joined #tryton
2017-08-10 04:06 -!- zmijunkie1( has joined #tryton
2017-08-10 04:28 -!- orphean_(~Orphean@ has joined #tryton
2017-08-10 04:45 -!- orphean(~Orphean@ has joined #tryton
2017-08-10 04:47 -!- orphean_(~Orphean@ has joined #tryton
2017-08-10 07:00 -!- Timitos( has joined #tryton
2017-08-10 07:51 -!- savumies( has joined #tryton
2017-08-10 08:25 -!- dmollerm( has joined #tryton
2017-08-10 09:15 -!- savumies( has joined #tryton
2017-08-10 09:19 <savumies> Yesterday kstenger suggested me to use Eval('M2Ofield', {}).get('state', None)) but when I do I get an error: 'int' object has no attribute 'get'. And I did set the depends=['M2Ofield']
2017-08-10 09:20 <savumies> What am I missing?
2017-08-10 09:44 <pokoli> savumies: you should probably add a function field that returns the Many2ONe state
2017-08-10 09:45 <pokoli> savumies:
2017-08-10 09:45 <pokoli> savumies:
2017-08-10 09:45 <pokoli> savumies:
2017-08-10 09:46 <pokoli> savumies: as the Function field is defined via on_change_with it will be update automatically by the client when changing the value of the Many2One field
2017-08-10 09:53 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-10 09:58 <savumies> pokoli: thank you. btw, what is the _parent_invoice in the depends? It is not defined anywhere I could find.
2017-08-10 09:58 <savumies>
2017-08-10 09:59 <savumies> I have seen the same in the sale module. This is bugging me.
2017-08-10 10:01 <pokoli> savumies: parent is used to use the parent record on a One2Many field
2017-08-10 10:02 <pokoli> savumies: so _parent_invoice.state is the "state" of the record that points the invoice field. But it's only loaded when used on a One2Many
2017-08-10 10:06 <cedk> better to add it to the documentation
2017-08-10 10:28 -!- thaneor( has joined #tryton
2017-08-10 10:41 -!- nicoe( has joined #tryton
2017-08-10 11:04 <savumies> wow. That is great!
2017-08-10 11:05 <savumies> created issue6711
2017-08-10 12:04 -!- sisalp( has joined #tryton
2017-08-10 12:11 -!- notizblock( has joined #tryton
2017-08-10 13:00 -!- mariomop(~quassel@ has joined #tryton
2017-08-10 13:10 -!- zmijunkie( has joined #tryton
2017-08-10 13:49 -!- tbruyere( has joined #tryton
2017-08-10 13:52 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2017-08-10 13:52 <LordVan> hi
2017-08-10 13:52 -!- smarro(~sebastian@ has joined #tryton
2017-08-10 14:14 <LordVan> If i want to - later - also publish my custom module is there a specific naming scheme i should use?
2017-08-10 14:15 <LordVan> (i've sseen trytond-module_name and also devname-trytond-module_name and others
2017-08-10 14:18 <cedk> LordVan: trytond prefix is reserved for standard module
2017-08-10 14:19 <LordVan> cedk, ok good to know. thanks
2017-08-10 14:19 <LordVan> i did not see that in the docs anywhere .. but maybe i overlooked it
2017-08-10 14:20 <LordVan> I think the first thing I will do is write something similar to mds_party_fieldaddon (but slightly different)
2017-08-10 14:20 <LordVan> as I want seperate first name, last name , title, academic title fields
2017-08-10 14:20 <cedk> LordVan: it should not be in the doc, it is practice and trademark management
2017-08-10 14:22 <LordVan> fair enough :)
2017-08-10 14:22 <LordVan> i don't want to step on anyone's toes, so that is why i asked ;)
2017-08-10 14:22 <LordVan> I mean as long as i only have it locally it doesn't matter, but I thought I'd probably publish it too
2017-08-10 14:23 <LordVan> btw there's no online (already generated) version of this is there? :
2017-08-10 14:23 <LordVan> (i keep having to sort it out on different machines haha)
2017-08-10 14:23 <cedk> LordVan: should read:
2017-08-10 14:24 <LordVan> cedk, i like that ^^
2017-08-10 14:25 <cedk> LordVan: and
2017-08-10 14:26 <cedk> LordVan: also I personaly think that publishing specific modules is not a good practice
2017-08-10 14:27 <cedk> I think it generates confusion
2017-08-10 14:27 <LordVan> well i think for the german speaking countries those things are mostly useful I think - but i know it is not generic of course
2017-08-10 14:27 <cedk> it is better to have only published modules that can be really reused
2017-08-10 14:28 <LordVan> agreed
2017-08-10 14:28 <LordVan> i do not intend to push the other module(s) I will need for our production/project requirements as they are too specific anyway
2017-08-10 14:28 <LordVan> (or maybe only as examples for others if I am happy enough with them)
2017-08-10 14:29 <LordVan> but e.g. the module where we want to be able to specify the (customer) expected delivery date for a product does feel like it could be useful to someone else too (if I don't make it part of the bigger one)
2017-08-10 14:32 <LordVan> cedk, but yes i know (from previous dev projects as well) that the topic of names (esp. if you include titles,.. ) is a tricky one
2017-08-10 14:33 <LordVan> that said unfortunately just one "name" field as tryton has by default is not going to work for us i think
2017-08-10 14:36 <LordVan> cedk, just curious, but do you know if a lot of tryton installs use "just" that one name field, or if there are many that add things like "first name", "title" ,... seperately?
2017-08-10 14:38 <cedk> LordVan: I convince all my customers that it is the *right* design
2017-08-10 14:39 <LordVan> cedk, wow .. you seem to be good at convincing ^^
2017-08-10 14:39 <LordVan> the thing is, how would you handle something like how to address people (Mr. / Mrs / Ms ) and possibly academic titles ?
2017-08-10 14:39 <LordVan> having them always in the name seems a bit much to me tbh
2017-08-10 14:40 <LordVan> when generating invoices for example
2017-08-10 14:41 <LordVan> would you put all that in the one name field ? like (german example) : "Herr Ing, Dr. (FH) Max Hans Mustermann"
2017-08-10 14:41 <LordVan> ?
2017-08-10 14:43 -!- udono( has joined #tryton
2017-08-10 14:47 -!- tbruyere( has joined #tryton
2017-08-10 14:53 <LordVan> btw
2017-08-10 14:53 <LordVan> are the "identifiers" on a party intended only for tax identifiers? (ie not for other company related numbers given out by governments) ?
2017-08-10 14:54 <LordVan> like company register numbers
2017-08-10 14:56 -!- tbruyere( has joined #tryton
2017-08-10 14:57 <LordVan> cedk, btw after thinking about it some more i do agree about the "name" field. You do have a point (minus the issue of academic title / how to address people (Mr/Mrs/Ms/..) )
2017-08-10 15:02 -!- tbruyere( has joined #tryton
2017-08-10 15:10 <savumies> LordVan: Instead of publishing a more specific module you could just make it available through bitbucket or github. That way it serves as example if someone needs something similar.
2017-08-10 15:11 <LordVan> yes
2017-08-10 15:11 <LordVan> savumies, i was thinking e.g. if i make a module to add salutation that is generic enough for anyone to use imho - and another one maybe for academic (or whatever) title
2017-08-10 15:12 <pokoli> LordVan: identifiers are intended for any kind of party identifier. Tax is on of the possible types :)
2017-08-10 15:14 <LordVan> pokoli, thanks - in the code i read things like get_tax_identifier which is why i wasn't sure if it was meant for toher identifiers too
2017-08-10 15:20 <cedk> LordVan: The title is a property of a party so I would store it in a field
2017-08-10 15:21 <cedk> LordVan: but you probably will need a method that combine it with the name depending of the locales
2017-08-10 15:21 <LordVan> cedk, yes - i was thinking for simplicity maybe One2Many for the title like Mr/Mrs/miss/ .. and a plain text field for academic title (too many variations imho)
2017-08-10 15:22 <LordVan> cedk, yes the combining method would be needed too
2017-08-10 15:22 <LordVan> and probably gender (if the party is a person and not a company)
2017-08-10 15:23 <cedk> LordVan: gender is usually not needed for business
2017-08-10 15:23 <LordVan> cedk, I was only thinking maybe instead of salutation, but yes the salutation would (in case of german at least) specify the genter too
2017-08-10 15:24 <LordVan> though i think for japanese one would maybe need it seperately sometimes
2017-08-10 15:26 <cedk> LordVan: I think Japanese is probably the most complicate one as they have difference word depending on the relationship between the interlocutors
2017-08-10 15:26 <LordVan> yes exqactly
2017-08-10 15:26 <LordVan> cedk, i gave it as an example as I am studying it ;)
2017-08-10 15:26 <LordVan> but i do not need it for business (yet at least haha)
2017-08-10 15:26 -!- Telesight( has joined #tryton
2017-08-10 15:27 <cedk> LordVan: having title in standard module will require a lot of research to ensure to have a solution that works world wide
2017-08-10 15:28 <LordVan> cedk, i agree - though I wonder if the academic title was "just" a text field that would be pretty generic i think (maybe not the order where one would put it when writing a letter of course)
2017-08-10 15:28 <LordVan> salutation is the more complicated part imho
2017-08-10 15:35 -!- smarro(~sebastian@ has joined #tryton
2017-08-10 15:38 -!- kstenger( has joined #tryton
2017-08-10 15:43 -!- csotelo_at_work(~csotelo@ has joined #tryton
2017-08-10 15:43 -!- zmijunkie( has joined #tryton
2017-08-10 15:52 -!- tbruyere( has joined #tryton
2017-08-10 16:38 -!- mrichez( has joined #tryton
2017-08-10 17:55 -!- JosDzG(~Thunderbi@ has joined #tryton
2017-08-10 18:13 -!- JosDzG(~Thunderbi@ has joined #tryton
2017-08-10 18:51 -!- JosDzG(~Thunderbi@ has joined #tryton
2017-08-10 21:09 -!- mariomop(~quassel@ has joined #tryton
2017-08-10 21:41 -!- JosDzG(~Thunderbi@ has joined #tryton
2017-08-10 22:00 -!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton
2017-08-10 22:19 -!- JosDzG(~Thunderbi@ has joined #tryton
2017-08-10 22:29 -!- thaneor1( has joined #tryton
2017-08-10 22:42 -!- JosDzG(~Thunderbi@ has joined #tryton
2017-08-10 22:54 -!- smarro(~sebastian@ has joined #tryton
2017-08-10 23:28 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2017-08-10 23:36 -!- kstenger( has joined #tryton
2017-08-10 23:40 -!- apostatize(visavis@gateway/vpn/mullvad/x-zslqdxzafntdzawl) has joined #tryton

Generated by 2.17.3 by Marius Gedminas - find it at!