IRC logs of #tryton for Wednesday, 2018-01-17

chat.freenode.net #tryton log beginning Wed Jan 17 00:00:01 CET 2018
2018-01-17 01:55 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-01-17 02:10 -!- csotelo(~csotelo@190.232.106.209) has joined #tryton
2018-01-17 04:07 -!- thaneor1(~ldlc6@r179-25-98-160.dialup.adsl.anteldata.net.uy) has joined #tryton
2018-01-17 05:24 -!- giesen(~ggiesen@ego.giesen.me) has joined #tryton
2018-01-17 06:43 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2018-01-17 06:56 -!- _2cadz(~2cadz@82.64.14.213) has joined #tryton
2018-01-17 07:24 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2018-01-17 08:37 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton
2018-01-17 08:48 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2018-01-17 08:59 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2018-01-17 09:09 -!- rpit(~rpit@ip-109-41-193-171.web.vodafone.de) has joined #tryton
2018-01-17 09:46 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2018-01-17 09:56 -!- jmousset(~jeremy@176.158.167.193) has joined #tryton
2018-01-17 10:09 -!- rpit1(~rpit@ip-109-40-1-123.web.vodafone.de) has joined #tryton
2018-01-17 10:12 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-01-17 10:18 -!- Artem(5d491808@gateway/web/freenode/ip.93.73.24.8) has joined #tryton
2018-01-17 10:19 -!- Artem_Braga18(5d491808@gateway/web/freenode/ip.93.73.24.8) has joined #tryton
2018-01-17 10:22 -!- Artem_Braga18(5d491808@gateway/web/freenode/ip.93.73.24.8) has left #tryton
2018-01-17 10:40 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2018-01-17 10:44 -!- swayf_(~swayf@ipbcc14f49.dynamic.kabel-deutschland.de) has joined #tryton
2018-01-17 11:27 -!- csotelo(~csotelo@181.64.241.209) has joined #tryton
2018-01-17 12:06 -!- mariomop(~quassel@181.93.205.215) has joined #tryton
2018-01-17 12:48 -!- artem(5d491808@gateway/web/freenode/ip.93.73.24.8) has joined #tryton
2018-01-17 13:25 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2018-01-17 13:25 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2018-01-17 13:27 <LordVan> Hi. quick question: is the stock module intended to be used for articles "only" or is it also likely to be useful for other materials and management of an inventory of those (in our case metal sheets which are rarely ever sold as a whole)
2018-01-17 13:31 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton
2018-01-17 13:31 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2018-01-17 13:43 <pokoli> LordVan: you can use any type of material as far as you create a product for it
2018-01-17 13:43 <pokoli> LordVan: for example you can manage the stock on non sallable products
2018-01-17 13:43 <LordVan> ok not really what i was looking for i think
2018-01-17 13:44 <LordVan> since we are talking about a lot of different sizes and materials
2018-01-17 13:44 <LordVan> and most probably one-off and short lived
2018-01-17 13:48 <LordVan> cna't be cluttering up the articles with that much stuff
2018-01-17 13:48 <LordVan> that needs to be separate
2018-01-17 13:51 -!- catonano(~user@151.50.129.145) has joined #tryton
2018-01-17 13:53 <LordVan> just for curiousity: how easy would it be to create a "clone" of stock that doesn't use articles/variants, but something else completely?
2018-01-17 14:08 <pokoli> LordVan: not sure to understand what kind of material you want to track
2018-01-17 14:08 <LordVan> metal sheets mostly
2018-01-17 14:08 <LordVan> different sizes (and maybe shapes) , ..
2018-01-17 14:09 <pokoli> LordVan: Not sure if using the size as unit of measure will be ok for your side
2018-01-17 14:09 <LordVan> well maybe ^^
2018-01-17 14:09 <Timitos> LordVan: maybe you could do it with stock_lot. you could define the correct measurements of the part on the lot
2018-01-17 14:10 <LordVan> hm
2018-01-17 14:10 <LordVan> i shall have a look
2018-01-17 14:10 <pokoli> LordVan: the question is: once you have separated shapes of diferent sizes, you can join them?
2018-01-17 14:10 <LordVan> well 90% would be rectangular
2018-01-17 14:10 <LordVan> just a few might be L-shaped or sth
2018-01-17 14:11 <LordVan> but that could be just like a tickbox for "( ) not rectangle" and then add a comment - or maybe a pic
2018-01-17 14:11 <pokoli> LordVan: if you want to get the measure of every shape, you should use the lot and add the size on it.
2018-01-17 14:11 <LordVan> but i need to be able to filter by location, type of material, thickness, .. - but also would want some sort of spreatsheet type bulk- import/edit
2018-01-17 14:11 <LordVan> hm
2018-01-17 14:12 <pokoli> LordVan: and when moving one shape you must say which lot is (so the system knows the concrete shape you are moving)
2018-01-17 14:12 <LordVan> hmm
2018-01-17 14:13 <LordVan> seems probably a bit too complicated
2018-01-17 14:13 <pokoli> LordVan: the complexity is proportional to the level of detail you want to store on tryton
2018-01-17 14:14 <LordVan> yes which is why i was thinking just a marker for "not rectangular"/"partly damaged" to indicate that one needs tor ead comments or look @ an attached pic
2018-01-17 14:14 <LordVan> would be enough
2018-01-17 14:14 <pokoli> LordVan: if you use one lot for each shape, you can add pics as attachments to the lot
2018-01-17 14:15 <LordVan> hmm
2018-01-17 14:18 <LordVan> i shall install that .. one question though: i still need to set up articles?
2018-01-17 14:19 <Timitos> yes, but you can use one product for a group of similar parts
2018-01-17 14:20 <LordVan> ah
2018-01-17 14:20 <pokoli> LordVan: for example you can use an article for each type of material
2018-01-17 14:21 <LordVan> like create one article for "Metal Sheets" and then variants for the different types of material and lots with that?
2018-01-17 14:24 <Timitos> you got it. but maybe you should create more than one product.template. i am not sure if you should use the variant thing
2018-01-17 14:25 <LordVan> Timitos, not sure about that either (yet) just installed that module too ^^
2018-01-17 14:25 <LordVan> took me a minute to figure out what it was called in the german UI ^^
2018-01-17 14:25 <Timitos> i am always open to improve the german translation. lets discuss that on #tryton.de
2018-01-17 14:26 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2018-01-17 14:26 <pokoli> LordVan: For example, you can use diferent variants if the Metal Sheet have diferent densities and you need to know the quantity of each density
2018-01-17 14:26 <pokoli> LordVan: otherwise one variant per template is enought
2018-01-17 14:27 <LordVan> pokoli, well more different quality that matters (steel, stainless steel, .. ) ;)
2018-01-17 14:27 <LordVan> just not sure if there are any advantages to having one article + variants or more articles with 1 variant each
2018-01-17 14:30 <Timitos> most of the product fields are on the template. so if there is a difference in this fields you will need to create more than one template and i think it will be like that
2018-01-17 14:36 <LordVan> all sheet metal have the same fields and/or attributes so that would be ok
2018-01-17 14:38 <pokoli> LordVan: indeed with product_attribute modules, you can define on the template a set of fields, and define on each variant the value of this fields
2018-01-17 14:38 <LordVan> pokoli, that is how i was planning to enter our products ;)
2018-01-17 14:50 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2018-01-17 14:58 -!- rpit(~rpit@ip-109-40-1-123.web.vodafone.de) has joined #tryton
2018-01-17 15:06 <mrichez> hi, what is the best way to change a field not displayed on the client when another displayed field is updated ?
2018-01-17 15:08 <mrichez> supersede write method ?
2018-01-17 15:15 <cedk> mrichez: should it not be a Function field then
2018-01-17 15:16 <mrichez> cedk: indeed :-)
2018-01-17 15:24 <mrichez> cedk: and no... this field is updated by a cron...
2018-01-17 15:26 <pokoli> mrichez: If one field directly depends on the value of another it's better to make it a function field. So it's always updated
2018-01-17 15:26 <pokoli> mrichez: otherwise, you can override write and create to recompute the value
2018-01-17 15:27 <pokoli> mrichez: here you have an example: http://hg.tryton.org/modules/timesheet_cost/file/fa5c7961c6f8/timesheet.py#l56
2018-01-17 15:27 <mrichez> pokoli: indeed but this field is also updated by another condition linked to product quantity (so a function field on product quantity is not a good solution)
2018-01-17 15:28 <cedk> there is the case of pre-formatted data like http://hg.tryton.org/modules/party/file/default/contact_mechanism.py#l221
2018-01-17 15:28 <cedk> mrichez: but you can compute it using also this condition
2018-01-17 15:30 <pokoli> mrichez: computing product quantity is quite optimized If you are worried about performance
2018-01-17 15:31 <mrichez> cedk: indeed but i'll display view with this field, it will compute stock quantities for all products (and 'im computing quantities for the whole warehouse)
2018-01-17 15:32 <mrichez> cedk: i will try both solutions... function field
2018-01-17 15:33 <mrichez> pokoli: and override write
2018-01-17 15:33 <pokoli> mrichez: personally I will go with a function that accepts a list of records first :)
2018-01-17 15:33 <mrichez> thanks for help!
2018-01-17 15:34 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton
2018-01-17 15:35 <mrichez> pokoli: what do you mean
2018-01-17 15:35 <mrichez> ?
2018-01-17 15:36 <pokoli> mrichez: the classmethod explained in the docs: http://doc.tryton.org/4.6/trytond/doc/ref/models/fields.html?highlight=function#function
2018-01-17 15:37 <mrichez> pokoli: ok thanks
2018-01-17 15:59 -!- catonano(~user@151.50.129.145) has joined #tryton
2018-01-17 16:08 -!- thaneor(~ldlc6@r179-24-113-71.dialup.adsl.anteldata.net.uy) has joined #tryton
2018-01-17 16:14 <LordVan> ACTION reads http://tryton-documentation.readthedocs.io/en/latest/developer_guide/example_library_1.html
2018-01-17 16:14 <LordVan> ;)
2018-01-17 16:14 <LordVan> interesting
2018-01-17 16:15 <pokoli> LordVan: just note that this guide is a little bit outdated
2018-01-17 16:15 -!- mariomop(~quassel@181.93.205.215) has joined #tryton
2018-01-17 16:15 <pokoli> LordVan: it's for 3.2 series which are deprecated
2018-01-17 16:15 <LordVan> ah
2018-01-17 16:16 <LordVan> it said latest so i was hoping it was up2date
2018-01-17 16:16 <LordVan> is the example there still going to work? or is there anything i need to look out for?
2018-01-17 16:18 <pokoli> LordVan: it's going to work if you remove the string attribute from view's xmls
2018-01-17 16:18 <pokoli> LordVan: it's a pitty because nobody is maintaining this guide
2018-01-17 16:19 <LordVan> ok i haven't gotten that far down yet, but i will try to remmeber for testing
2018-01-17 16:19 <LordVan> ah too bad
2018-01-17 16:19 <pokoli> LordVan: If you want to follow my workshop it's updated for 4.4
2018-01-17 16:19 <LordVan> but if that is the only thing maybe put a note in there above it just saying that for version > whichever version it is one needs to omit that attribute
2018-01-17 16:19 <pokoli> LordVan: https://bitbucket.org/pokoli/tryton_workshop
2018-01-17 16:19 <LordVan> ah nice
2018-01-17 16:20 <LordVan> i assume that it would be ok on 4.6 too?
2018-01-17 16:20 <pokoli> LordVan: just clone the repository and follow the instructions on README
2018-01-17 16:20 <LordVan> thanks ;)
2018-01-17 16:20 <pokoli> LordVan: this workshop explains how to install tryton and client
2018-01-17 16:21 <LordVan> i might just skip that part since i have it running ^^
2018-01-17 16:21 <pokoli> LordVan: if you follow the commands explained it will install the 4.4 version, so everything will work as expected
2018-01-17 16:22 <LordVan> ah yes, but i want to try to write a module for 4.6 anyway ^^ if it doesn'T work i can still do that of course
2018-01-17 16:22 <LordVan> wnat me to let you know if i run into trouble with 4.6?
2018-01-17 16:23 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has left #tryton
2018-01-17 16:24 <pokoli> LordVan: yes please
2018-01-17 16:24 <LordVan> ok will do ;)
2018-01-17 16:29 <LordVan> gtg now .. cya
2018-01-17 16:32 -!- rpit(~rpit@dslb-084-062-253-182.084.062.pools.vodafone-ip.de) has joined #tryton
2018-01-17 16:49 <artem> chat
2018-01-17 16:52 <pokoli> artem: with who do you want to chat? xD
2018-01-17 16:53 <artem> @pokoli ah sorry, just joined today the IRC and wanted to test how it works :)
2018-01-17 16:54 <pokoli> artem: don't worry :)
2018-01-17 16:54 <pokoli> artem: most of the IRC clients will highlight the user without using the @ prefix :)
2018-01-17 17:50 -!- JanGB(~jan@ipservice-092-216-127-053.092.216.pools.vodafone-ip.de) has joined #tryton
2018-01-17 18:14 -!- catonano(~user@151.50.129.145) has joined #tryton
2018-01-17 18:22 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton
2018-01-17 18:35 -!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton
2018-01-17 18:45 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2018-01-17 19:00 -!- swayf(~swayf@host-93-104-202-98.customer.m-online.net) has joined #tryton
2018-01-17 19:10 -!- rpit(~rpit@p5B22B745.dip0.t-ipconnect.de) has joined #tryton
2018-01-17 19:35 -!- _2cadz(~2cadz@80.215.116.146) has joined #tryton
2018-01-17 20:45 -!- zmijunkie(~Adium@200116b80ab9b900cd1a87a43021e106.dip.versatel-1u1.de) has joined #tryton
2018-01-17 21:07 -!- lukio(~lukio@186.143.198.104) has joined #tryton
2018-01-17 21:17 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2018-01-17 21:36 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-01-17 21:45 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton
2018-01-17 21:46 <andrespoliti> how can i get the list of ids of the selected records in a one2many field of a wizard view?
2018-01-17 21:50 -!- swayf(~swayf@ipbcc14f49.dynamic.kabel-deutschland.de) has joined #tryton
2018-01-17 22:01 -!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton
2018-01-17 22:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-01-17 23:00 -!- csotelo(~csotelo@181.67.2.34) has joined #tryton
2018-01-17 23:17 -!- NeonKing(~Neonking@176.179.38.86) has joined #tryton

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