IRC logs of #tryton for Sunday, 2017-08-06 #tryton log beginning Sun Aug 6 00:00:01 CEST 2017
-!- kstenger1( has joined #tryton00:14
-!- d33pb00k-GK1wmSU(~Pyatibrat@ has joined #tryton00:40
-!- d33pb00k-GK1wmSU(~Pyatibrat@ has left #tryton00:40
orpheanif i want to implement some polymorphism within tryton e.g. on the product model would the recommended 'trytonic' way of doing that be to create a seperate model in another module with as simple one2one relationship and maybe some cross model update triggers or something?01:09
orpheanbut then say i wanted to override, say, the price when viewed as a product to be read only id have to mess with the product module itself and idk if its going to slam the database too hard to check whether a product is an instance of any of my "subclasses" to evaluate what functionality should change01:14
orpheancould get messy pretty quick01:15
orpheanthis is how you've done it with companies / employees being essentially subclasses of party right?01:18
orpheanand banks01:19
cedkorphean: no, we do not do polymorphism01:40
cedkorphean: you can do it at Python level but it will not be reflected in database01:43
orpheanyea so it would be better to modify the product model to accommodate for the funny cost mechanism and extract the other functionality of the product to a special model in another module?01:47
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:00
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:36
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton04:17
-!- Alex_Bkash(671a7011@gateway/web/freenode/ip. has joined #tryton09:41
Alex_Bkash File "/usr/local/lib/python2.7/dist-packages/trytond/modules/product/", line 16, in <module>     from import ( ImportError: No module named company.model09:42
Alex_Bkash  /usr/local/lib/python2.7/dist-packages/trytond/modules/company  ------> ls result-->  company.pyc  company.xml  cron.pyc  cron.xml  __init__.pyc  letter.odt  locale  party.pyc  tests  tryton.cfg  view09:43
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:52
Alex_Bkash File "/usr/local/lib/python2.7/dist-packages/trytond/modules/product/", line 16, in <module>     from import ( ImportError: No module named company.model10:20
Alex_Bkash /usr/local/lib/python2.7/dist-packages/trytond/modules/company  ------> ls result-->  company.pyc  company.xml  cron.pyc  cron.xml  __init__.pyc  letter.odt  locale  party.pyc  tests  tryton.cfg  view10:21
cedkAlex_Bkash: wrong versions10:25
Alex_Bkashtrytond version is trytond 4.5.010:27
Alex_BkashI am actually trying to incorporate a HR_Payroll module10:27
cedkAlex_Bkash: it is not a released version as the odd number indicate10:28
cedkAlex_Bkash: you are using development version, so you must keep it up to date10:28
Alex_Bkashi am adding modules ---> company  country  currency  party  product10:32
Alex_Bkasheach have a tryton.cfg --> [tryton] version=4.5.010:33
cedkAlex_Bkash: does not mean it is the last version10:37
-!- Telesight( has joined #tryton10:38
Alex_Bkashok. maybe some other dependencies causing errors. like nereid10:58
Alex_Bkashcedk: is there any official payroll module for tryton ??10:59
cedkAlex_Bkash: you are using development version, you must always update everything to the same time11:12
Alex_Bkashyeah i got it cedk . thanks11:14
-!- udono(~udono@ has joined #tryton11:14
Alex_Bkashcedk: I am actually in a very primitive stage of learning tryton. I hope im not bothering too much11:16
Alex_Bkashen_US.json not found for web client (sao)11:36
Alex_Bkashsvg images not showingup in browser. both firefox and chrome12:00
cedkAlex_Bkash: there is no translation for English by default12:33
cedkAlex_Bkash: but on trunk it should be en.json not en_US.json12:34
cedkAlex_Bkash: for the svg images, it is strange. browsers should support them12:34
Alex_Bkashi have just created two blank json files for en_US.json and en.json12:59
Alex_Bkashbut svg images not showing, evenif i can rightclick and open svg(svg codes) in new tab13:00
-!- orphean(~Orphean@ has joined #tryton13:30
-!- Alex_Bkash(671a7011@gateway/web/freenode/ip. has joined #tryton13:58
-!- csotelo(~csotelo@2001:1388:49c6:f9a5:a328:3589:be40:bafd) has joined #tryton14:02
Alex_Bkashchrome Version 60.0.3112.78 (Official Build) (64-bit)14:11
Alex_Bkashcedk: is there any official HR/payroll module? Thanks14:13
plaeswould it be possible to add <prev> <next> links in the docs?14:16
plaeswell, these docs:
plaesthese docs come from trytond docs?14:19
-!- http_GK1wmSU(~deep-book@ has joined #tryton14:53
-!- http_GK1wmSU(~deep-book@ has left #tryton14:56
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton15:19
-!- alexbodn(~alex@ has joined #tryton15:41
-!- thaneor( has joined #tryton15:58
cedkplaes: here is what we use to generate the doc
cedkplaes: it could probably be improved18:12
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton18:33
-!- Alex_Bkash(675ccc05@gateway/web/freenode/ip. has joined #tryton18:43
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20:12
-!- udono( has joined #tryton20:46
plaescedk: not mirrored to github?20:59
-!- pokoli_( has joined #tryton21:03
cedkplaes: no21:04
-!- giesen_(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton21:07
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- thaneor(~ldlc6@ has joined #tryton22:11
orpheanis there a reason that working hours is defined on the company rather than the employee22:33
orpheandifferent companies have different employees on different employment contracts right?22:34
orpheanwould it be sensible to refactor this somehow?22:35
orpheanalso i noticed there is no current official "contract" module22:40
orpheanthough there is a request for implementation on the issue tracker22:40
orpheanbut then when looking at the implementation it is more about real contractual document definition rather than simply tracking information about contracts that would be defined in external files22:43
orpheanin general are lead tryton devs open to heavy refactoring of things like that or is it better to just role a bespoke module internally for your own organisation?22:46
orpheansomething id rather not do22:47
cedkorphean: working hours is on company because it is about the definition of what is a day of work22:52
cedkorphean: it does not change normaly inside the company, but any way it is only a convention about duration22:53
cedkin general, we are open to changes but it must be well justified22:56
cedkand it should include migration22:56
-!- silwol(silwolmatr@gateway/shell/ has joined #tryton23:16
-!- fmorato[m](fmoratomat@gateway/shell/ has joined #tryton23:17
-!- sim6(sim6matrix@gateway/shell/ has joined #tryton23:20

Generated by 2.11.0 by Marius Gedminas - find it at!