IRC logs of #tryton for Sunday, 2017-08-06

chat.freenode.net #tryton log beginning Sun Aug 6 00:00:01 CEST 2017
2017-08-06 00:14 -!- kstenger1(~karla@r186-49-249-145.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-08-06 00:40 -!- d33pb00k-GK1wmSU(~Pyatibrat@23.27.18.240) has joined #tryton
2017-08-06 00:40 -!- d33pb00k-GK1wmSU(~Pyatibrat@23.27.18.240) has left #tryton
2017-08-06 01:09 <orphean> if 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?
2017-08-06 01:14 <orphean> but 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 change
2017-08-06 01:15 <orphean> could get messy pretty quick
2017-08-06 01:18 <orphean> this is how you've done it with companies / employees being essentially subclasses of party right?
2017-08-06 01:19 <orphean> and banks
2017-08-06 01:40 <cedk> orphean: no, we do not do polymorphism
2017-08-06 01:43 <cedk> orphean: you can do it at Python level but it will not be reflected in database
2017-08-06 01:47 <orphean> yea 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?
2017-08-06 02:00 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-06 02:35 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-06 02:36 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-06 04:17 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-08-06 09:41 -!- Alex_Bkash(671a7011@gateway/web/freenode/ip.103.26.112.17) has joined #tryton
2017-08-06 09:42 <Alex_Bkash> File "/usr/local/lib/python2.7/dist-packages/trytond/modules/product/product.py", line 16, in <module> from trytond.modules.company.model import ( ImportError: No module named company.model
2017-08-06 09:43 <Alex_Bkash> /usr/local/lib/python2.7/dist-packages/trytond/modules/company ------> ls result--> company.py company.pyc company.xml cron.py cron.pyc cron.xml __init__.py __init__.pyc letter.odt locale party.py party.pyc tests tryton.cfg view
2017-08-06 09:52 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-06 10:20 <Alex_Bkash> File "/usr/local/lib/python2.7/dist-packages/trytond/modules/product/product.py", line 16, in <module> from trytond.modules.company.model import ( ImportError: No module named company.model
2017-08-06 10:21 <Alex_Bkash> /usr/local/lib/python2.7/dist-packages/trytond/modules/company ------> ls result--> company.py company.pyc company.xml cron.py cron.pyc cron.xml __init__.py __init__.pyc letter.odt locale party.py party.pyc tests tryton.cfg view
2017-08-06 10:25 <cedk> Alex_Bkash: wrong versions
2017-08-06 10:27 <Alex_Bkash> trytond version is trytond 4.5.0
2017-08-06 10:27 <Alex_Bkash> I am actually trying to incorporate a HR_Payroll module
2017-08-06 10:28 <cedk> Alex_Bkash: it is not a released version as the odd number indicate
2017-08-06 10:28 <cedk> Alex_Bkash: you are using development version, so you must keep it up to date
2017-08-06 10:32 <Alex_Bkash> i am adding modules ---> company country currency party product
2017-08-06 10:33 <Alex_Bkash> each have a tryton.cfg --> [tryton] version=4.5.0
2017-08-06 10:37 <cedk> Alex_Bkash: does not mean it is the last version
2017-08-06 10:38 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-08-06 10:58 <Alex_Bkash> ok. maybe some other dependencies causing errors. like nereid
2017-08-06 10:59 <Alex_Bkash> cedk: is there any official payroll module for tryton ??
2017-08-06 11:12 <cedk> Alex_Bkash: you are using development version, you must always update everything to the same time
2017-08-06 11:14 <Alex_Bkash> yeah i got it cedk . thanks
2017-08-06 11:14 -!- udono(~udono@185.22.140.131) has joined #tryton
2017-08-06 11:16 <Alex_Bkash> cedk: I am actually in a very primitive stage of learning tryton. I hope im not bothering too much
2017-08-06 11:36 <Alex_Bkash> en_US.json not found for web client (sao)
2017-08-06 12:00 <Alex_Bkash> svg images not showingup in browser. both firefox and chrome
2017-08-06 12:33 <cedk> Alex_Bkash: there is no translation for English by default
2017-08-06 12:34 <cedk> Alex_Bkash: but on trunk it should be en.json not en_US.json
2017-08-06 12:34 <cedk> Alex_Bkash: for the svg images, it is strange. browsers should support them
2017-08-06 12:59 <Alex_Bkash> i have just created two blank json files for en_US.json and en.json
2017-08-06 13:00 <Alex_Bkash> but svg images not showing, evenif i can rightclick and open svg(svg codes) in new tab
2017-08-06 13:30 -!- orphean(~Orphean@31.192.224.224) has joined #tryton
2017-08-06 13:58 -!- Alex_Bkash(671a7011@gateway/web/freenode/ip.103.26.112.17) has joined #tryton
2017-08-06 13:59 <cedk> Alex_Bkash: https://caniuse.com/#search=svg
2017-08-06 14:02 -!- csotelo(~csotelo@2001:1388:49c6:f9a5:a328:3589:be40:bafd) has joined #tryton
2017-08-06 14:11 <Alex_Bkash> chrome Version 60.0.3112.78 (Official Build) (64-bit)
2017-08-06 14:13 <Alex_Bkash> cedk: is there any official HR/payroll module? Thanks
2017-08-06 14:15 <plaes> o/
2017-08-06 14:16 <plaes> would it be possible to add <prev> <next> links in the tryton.org docs?
2017-08-06 14:17 <plaes> well, these docs: http://doc.tryton.org/4.4/trytond/doc/index.html
2017-08-06 14:19 <plaes> these docs come from trytond docs?
2017-08-06 14:53 -!- http_GK1wmSU(~deep-book@119.81.19.251) has joined #tryton
2017-08-06 14:56 -!- http_GK1wmSU(~deep-book@119.81.19.251) has left #tryton
2017-08-06 15:19 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-08-06 15:41 -!- alexbodn(~alex@213.57.190.189) has joined #tryton
2017-08-06 15:58 -!- thaneor(~ldlc6@r179-25-36-8.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-08-06 18:12 <cedk> plaes: here is what we use to generate the doc http://hg.tryton.org/doc.tryton.org/
2017-08-06 18:12 <cedk> plaes: it could probably be improved
2017-08-06 18:33 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-08-06 18:43 -!- Alex_Bkash(675ccc05@gateway/web/freenode/ip.103.92.204.5) has joined #tryton
2017-08-06 20:12 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-08-06 20:46 -!- udono(~udono@008-058-210-188.ip-addr.inexio.net) has joined #tryton
2017-08-06 20:59 <plaes> cedk: not mirrored to github?
2017-08-06 21:03 -!- pokoli_(~pokoli@mail.koolpi.com) has joined #tryton
2017-08-06 21:04 <cedk> plaes: no
2017-08-06 21:07 -!- giesen_(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton
2017-08-06 22:01 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton
2017-08-06 22:11 -!- thaneor(~ldlc6@179.26.143.187) has joined #tryton
2017-08-06 22:33 <orphean> is there a reason that working hours is defined on the company rather than the employee
2017-08-06 22:34 <orphean> different companies have different employees on different employment contracts right?
2017-08-06 22:35 <orphean> would it be sensible to refactor this somehow?
2017-08-06 22:40 <orphean> also i noticed there is no current official "contract" module
2017-08-06 22:40 <orphean> though there is a request for implementation on the issue tracker
2017-08-06 22:43 <orphean> but 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 files
2017-08-06 22:46 <orphean> in 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?
2017-08-06 22:47 <orphean> something id rather not do
2017-08-06 22:52 <cedk> orphean: working hours is on company because it is about the definition of what is a day of work
2017-08-06 22:53 <cedk> orphean: it does not change normaly inside the company, but any way it is only a convention about duration
2017-08-06 22:56 <cedk> in general, we are open to changes but it must be well justified
2017-08-06 22:56 <cedk> and it should include migration
2017-08-06 23:16 -!- silwol(silwolmatr@gateway/shell/matrix.org/x-vqmhdnzehadrkrue) has joined #tryton
2017-08-06 23:17 -!- fmorato[m](fmoratomat@gateway/shell/matrix.org/x-hybfvjskilhrwodl) has joined #tryton
2017-08-06 23:20 -!- sim6(sim6matrix@gateway/shell/matrix.org/x-rfcbboguravenune) has joined #tryton

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