IRC logs of #tryton for Thursday, 2017-08-10 #tryton log beginning Thu Aug 10 00:00:01 CEST 2017
-!- kstenger1( has joined #tryton00:32
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:51
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:57
-!- csotelo(~csotelo@2001:1388:49c6:f9a5:a328:3589:be40:bafd) has joined #tryton03:35
-!- zmijunkie1( has joined #tryton04:06
-!- orphean_(~Orphean@ has joined #tryton04:28
-!- orphean(~Orphean@ has joined #tryton04:45
-!- orphean_(~Orphean@ has joined #tryton04:47
-!- Timitos( has joined #tryton07:00
-!- savumies( has joined #tryton07:51
-!- dmollerm( has joined #tryton08:25
-!- savumies( has joined #tryton09:15
savumiesYesterday 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']09:19
savumiesWhat am I missing?09:20
pokolisavumies: you should probably add a function field that returns the Many2ONe state09:44
pokolisavumies: 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 field09:46
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:53
savumiespokoli: thank you. btw, what is the _parent_invoice in the depends? It is not defined anywhere I could find.09:58
savumiesI have seen the same in the sale module. This is bugging me.09:59
pokolisavumies: parent is used to use the parent record on a One2Many field10:01
pokolisavumies: so _parent_invoice.state is the "state" of the record that points the invoice field. But it's only loaded when used on a One2Many10:02
cedkbetter to add it to the documentation10:06
-!- thaneor( has joined #tryton10:28
-!- nicoe( has joined #tryton10:41
savumieswow. That is great!11:04
savumiescreated issue671111:05
-!- sisalp( has joined #tryton12:04
-!- notizblock( has joined #tryton12:11
-!- mariomop(~quassel@ has joined #tryton13:00
-!- zmijunkie( has joined #tryton13:10
-!- tbruyere( has joined #tryton13:49
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton13:52
-!- smarro(~sebastian@ has joined #tryton13:52
LordVanIf i want to - later - also publish my custom module is there a specific naming scheme i should use?14:14
LordVan(i've sseen trytond-module_name and also devname-trytond-module_name and others14:15
cedkLordVan: trytond prefix is reserved for standard module14:18
LordVancedk, ok good to know. thanks14:19
LordVani did not see that in the docs anywhere .. but maybe i overlooked it14:19
LordVanI think the first thing I will do is write something similar to mds_party_fieldaddon (but slightly different)14:20
LordVanas I want seperate first name, last name , title, academic title fields14:20
cedkLordVan: it should not be in the doc, it is practice and trademark management14:20
LordVanfair enough :)14:22
LordVani don't want to step on anyone's toes, so that is why i asked ;)14:22
LordVanI mean as long as i only have it locally it doesn't matter, but I thought I'd probably publish it too14:22
LordVanbtw there's no online (already generated) version of this is there? :
LordVan(i keep having to sort it out on different machines haha)14:23
cedkLordVan: should read:
LordVancedk, i like that ^^14:24
cedkLordVan: and
cedkLordVan: also I personaly think that publishing specific modules is not a good practice14:26
cedkI think it generates confusion14:27
LordVanwell i think for the german speaking countries those things are mostly useful I think - but i know it is not generic of course14:27
cedkit is better to have only published modules that can be really reused14:27
LordVani do not intend to push the other module(s) I will need for our production/project requirements as they are too specific anyway14:28
LordVan(or maybe only as examples for others if I am happy enough with them)14:28
LordVanbut 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)14:29
LordVancedk, but yes i know (from previous dev projects as well) that the topic of names (esp. if you include titles,.. ) is a tricky one14:32
LordVanthat said unfortunately just one "name" field as tryton has by default is not going to work for us i think14:33
LordVancedk, 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?14:36
cedkLordVan: I convince all my customers that it is the *right* design14:38
LordVancedk, wow .. you seem to be good at convincing ^^14:39
LordVanthe thing is, how would you handle something like how to address people (Mr. / Mrs / Ms  ) and possibly academic titles ?14:39
LordVanhaving them always in the name seems a bit much to me tbh14:39
LordVanwhen generating invoices for example14:40
LordVanwould you put all that in the one name field ? like (german example) : "Herr Ing, Dr. (FH) Max Hans Mustermann"14:41
-!- udono( has joined #tryton14:43
-!- tbruyere( has joined #tryton14:47
LordVanare the "identifiers" on a party intended only for tax identifiers? (ie not for other company related numbers given out by governments) ?14:53
LordVanlike company register numbers14:54
-!- tbruyere( has joined #tryton14:56
LordVancedk, 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/..) )14:57
-!- tbruyere( has joined #tryton15:02
savumiesLordVan: 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.15:10
LordVansavumies, 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) title15:11
pokoliLordVan: identifiers are intended for any kind of party identifier. Tax is on of the possible types :)15:12
LordVanpokoli, 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 too15:14
cedkLordVan: The title is a property of a party so I would store it in a field15:20
cedkLordVan: but you probably will need a method that combine it with the name depending of the locales15:21
LordVancedk, 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)15:21
LordVancedk, yes the combining method would be needed too15:22
LordVanand probably gender (if the party is a person and not a company)15:22
cedkLordVan: gender is usually not needed for business15:23
LordVancedk, I was only thinking maybe instead of salutation, but yes the salutation would (in case of german at least) specify the genter too15:23
LordVanthough i think for japanese one would maybe need it seperately sometimes15:24
cedkLordVan: I think Japanese is probably the most complicate one as they have difference word depending on the relationship between the interlocutors15:26
LordVanyes exqactly15:26
LordVancedk, i gave it as an example as I am studying it ;)15:26
LordVanbut i do not need it for business (yet at least haha)15:26
-!- Telesight( has joined #tryton15:26
cedkLordVan: having title in standard module will require a lot of research to ensure to have a solution that works world wide15:27
LordVancedk, 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)15:28
LordVansalutation is the more complicated part imho15:28
-!- smarro(~sebastian@ has joined #tryton15:35
-!- kstenger( has joined #tryton15:38
-!- csotelo_at_work(~csotelo@ has joined #tryton15:43
-!- zmijunkie( has joined #tryton15:43
-!- tbruyere( has joined #tryton15:52
-!- mrichez( has joined #tryton16:38
-!- JosDzG(~Thunderbi@ has joined #tryton17:55
-!- JosDzG(~Thunderbi@ has joined #tryton18:13
-!- JosDzG(~Thunderbi@ has joined #tryton18:51
-!- mariomop(~quassel@ has joined #tryton21:09
-!- JosDzG(~Thunderbi@ has joined #tryton21:41
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:00
-!- JosDzG(~Thunderbi@ has joined #tryton22:19
-!- thaneor1( has joined #tryton22:29
-!- JosDzG(~Thunderbi@ has joined #tryton22:42
-!- smarro(~sebastian@ has joined #tryton22:54
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton23:28
-!- kstenger( has joined #tryton23:36
-!- apostatize(visavis@gateway/vpn/mullvad/x-zslqdxzafntdzawl) has joined #tryton23:40

Generated by 2.11.0 by Marius Gedminas - find it at!