chat.freenode.net #tryton log beginning Fri Dec 28 00:00:01 CET 2018 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:53 | |
-!- fsanchez(~fsanchez@201.240.5.14) has joined #tryton | 00:09 | |
-!- csotelo_(~csotelo@190.235.115.160) has joined #tryton | 00:46 | |
-!- csotelo_(~csotelo@190.235.115.160) has joined #tryton | 01:59 | |
-!- csotelo(~csotelo@190.235.115.160) has joined #tryton | 03:24 | |
-!- rpit(~rpit@p200300C88F2690009976CA5A76786C65.dip0.t-ipconnect.de) has joined #tryton | 06:37 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 07:02 | |
-!- thaneor1(~lenovo3@r179-25-69-35.dialup.adsl.anteldata.net.uy) has joined #tryton | 07:20 | |
jcm | hi, I encounter two pb in migrating from 4.8 to 5.0: errors in res.user while db migration and not being able to synchronize records as recommanded on discuss | 07:43 |
---|---|---|
jcm | the error in migrating: 87601 140735812551552 [2018-12-27 18:10:27,420] ERROR trytond.convert Could not delete id: 10 of model res.user | 07:43 |
jcm | the synchro thing: https://discuss.tryton.org/t/migration-from-4-8-to-5-0/596 | 07:44 |
jcm | [MANUAL] After update, synchronize records from Administration > Models > Models > Data | 07:44 |
jcm | as an admin, I get the exception ('UserError', ("Vous n'êtes pas autorisé à modifier cet enregistrement.", 'Cet enregistrement fait partie de la configuration de base.')) | 07:46 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:44 | |
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton | 08:46 | |
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton | 09:25 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 09:53 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has left #tryton | 09:53 | |
-!- thaneor(~lenovo3@r179-25-69-35.dialup.adsl.anteldata.net.uy) has joined #tryton | 10:38 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 13:08 | |
LordVan | hi | 13:15 |
LordVan | i was wondering .. has anyone made a module to extend timesheet to include a start time too? | 13:16 |
LordVan | i mean it should be easy | 13:21 |
cedk | LordVan: timesheet needs a duration | 13:22 |
LordVan | yes i know i meant about adding a start time to it | 13:22 |
LordVan | our current timesheets (spreadsheet) are writte ans "from - to" (morning) and "from .. to" (afternoon) then added up | 13:23 |
LordVan | so if I don't want to change that completely i'd need to add a start time to it too | 13:23 |
cedk | LordVan: it is usually wrong because you do not work always in a row | 13:24 |
LordVan | cedk, yes i know and i don't intend to keep the "only 2 entries per day" (one for morning and one for afternoon) but would still need to keep the start/end time (or start time and duration whichever is fine) | 13:25 |
cedk | LordVan: for what purpose? | 13:26 |
LordVan | well mostly cuz that'show it's been until now and so we know who worked when (most start at the same times every day, but not always) -- there still are per-project/order hours anyway ofcourse, but that is seperate | 13:27 |
LordVan | basically a requirement for the report generation | 13:28 |
cedk | LordVan: I think you are mixing timesheet and attendance | 13:28 |
LordVan | well it is what people get paid by | 13:28 |
LordVan | basically the monthly hour lists that we are required to have by law,.. | 13:29 |
LordVan | that doesn't need more details than how many hours per day afaik (but so far we always had start and end times for morning and afternoon | 13:30 |
LordVan | but yeah i guess attendance would describe it better i suppose | 13:30 |
LordVan | cedk, would it be "wrong" (as in intended purpose) to use the timesheet module for attendance/monthly hours sheets? | 13:32 |
cedk | LordVan: I think so | 13:35 |
cedk | at least it will be great to have attendance in standard but decoupled from timesheet | 13:35 |
LordVan | hmm i wonder how hard it would be to duplicate timesheet code to make an attendance module .. i think there are enough similarities there to do it that way instead of starting from scratch | 13:36 |
cedk | but of course there should be some check like timesheet duration can not be greater than attendance | 13:36 |
LordVan | i am not sure i understand "timesheet duration" usefulness | 13:36 |
cedk | LordVan: I have seen it in Odoo and that become a real mess because the needs are different | 13:37 |
LordVan | yeahi mean though it should be possible to use just attendance and no timesheet at all | 13:37 |
cedk | LordVan: I can book for today a sum of 7h on timesheet and put an attendance of 8h | 13:37 |
cedk | but the inverse shows there is something wrong | 13:37 |
LordVan | yes since you have various other tasks that might not be put on any specific timesheet | 13:38 |
LordVan | but in that case .. wouldn't you want a start time for the timesheet too to make sure it is within attendance? | 13:38 |
LordVan | hm | 13:39 |
cedk | LordVan: what is the purpose to know more precisly than the day when a tasks have been done? | 13:39 |
LordVan | cedk, probalby none tbh | 13:39 |
LordVan | this would just be an artifact of the old spreadsheets | 13:39 |
cedk | also attendance does not have to say what the employee did, it just record when he came and when he left | 13:40 |
LordVan | yes of course | 13:40 |
LordVan | that is why timesheet is in some way overkill for attendance | 13:40 |
LordVan | btw can timesheet be attached to an order and/or project? | 13:41 |
LordVan | i did not see anything like that but only started looking into it yesterdqy | 13:41 |
LordVan | ah i see there is production_work_timesheet | 13:42 |
cedk | LordVan: timesheet is designed to be attached to anything | 13:42 |
LordVan | nice | 13:43 |
cedk | only project for now allow it | 13:43 |
LordVan | yes i just fond that | 13:43 |
LordVan | i'd really want to be able to attach it to maybe an order direclty | 13:43 |
LordVan | but anyway | 13:43 |
LordVan | that is not needed right now .. | 13:43 |
LordVan | do you think it is easier to start from scratch to write an attendance module, or use timesheet as base? | 13:44 |
cedk | LordVan: for what purpose? | 13:45 |
LordVan | i meant if i wanted to make an attendance module | 13:45 |
LordVan | or is there one and i missed it? | 13:45 |
cedk | LordVan: there is no attendance module for now | 13:46 |
LordVan | ok | 13:47 |
cedk | the best starting point is to write a blueprint: https://discuss.tryton.org/c/feature | 13:47 |
LordVan | hm probably would be - at least if it was something that might be included in standard tryton | 13:53 |
csotelo | Hi all, I have a warning on a module install """WARNING trytond.convert Could not delete id 319 of model country.district because model no longer exists""" is on a local module ( party_pe ) is by a change done on subdivisions, any suggest? | 13:59 |
cedk | csotelo: well if you have removed the Model, Tryton can not delete records that was loaded by XML. | 14:07 |
csotelo | cedk, right! thanks! | 14:11 |
jcm | hi cedk! I get this error in migrating 4.8->5.0: 87601 140735812551552 [2018-12-27 18:10:27,420] ERROR trytond.convert Could not delete id: 10 of model res.user | 14:18 |
nicoe | jcm: this is https://bugs.tryton.org/issue7771 | 14:18 |
jcm | nicoe: thks. Should I correct the db by hand? the user is "Cron Process Purchase" | 14:21 |
nicoe | jcm: The user has been inactivated (you can check it with a SQL query) | 14:22 |
jcm | nicoe: yes, saw it. So it's ok? strange to have errors in migration to be ignored... | 14:23 |
nicoe | jcm: yes it's OK | 14:23 |
jcm | shouldn't we mention this on https://discuss.tryton.org/t/migration-from-4-8-to-5-0/596 ? | 14:24 |
nicoe | Given that we already had two or three times the remark, yes I think it is worth it | 14:25 |
jcm | as recommanded on the discuss migration page, I tried to "synchronize records from Administration > Models > Models > Data" but most Synchronize buttons lead to a "no right to do this" though I'm admin | 14:25 |
LordVan | cedk, i am having a strange refresh-bug: when i'm at article -> category .. I created a new category and then started creating sub-categories .. but until i save the "parent" category the subcategory list shows empty lines | 14:25 |
LordVan | but if i click on them it shows the subcategories i made | 14:25 |
LordVan | - and if i edit one it won'T update the subcategory list utnil the parent is saved again | 14:26 |
nicoe | jcm: Do you have something else that might not give the rights to the admin (record rules or whatever) ? | 14:40 |
jcm | nicoe: I don't think so | 14:44 |
jcm | I mean, none that I deliberately set on | 14:45 |
LordVan | hmm http://docs.tryton.org/projects/modules-product/en/latest/ says product extends product template with "Code and Description" I assume it means that a variant has code+description .. but a product has description already too? | 14:50 |
jcm | LordVan: to create a single product you create a single variant with code and descr | 14:52 |
LordVan | yes | 14:52 |
LordVan | jcm, but there is already a description field in the product too? | 14:52 |
LordVan | which is what i find confusing now in the docs | 14:53 |
LordVan | the Code field is only in the variant but description is already on the product anyway | 14:53 |
jcm | class Product has Variant as UI name, class Template has Product ui name, only the Variant has a description imho | 14:55 |
LordVan | well i have a product open in the client right now and it does have a description .. | 14:56 |
LordVan | talking about 5.0 btw | 14:56 |
LordVan | so it seems like the docs are not up2date for the 5.0 product module | 14:57 |
LordVan | also | 14:57 |
LordVan | product.py:207: description = fields.Text("Description", translate=True, states=STATES, | 14:57 |
LordVan | ah wait nm | 14:57 |
LordVan | but still in the UI it shows description on the product not just on variatn .. hm | 14:57 |
jcm | LordVan: 5.0 here too, description is in a ManyTo One widget; product.py:207 is the Variant in the ui... | 14:58 |
LordVan | jcm, yes i noticed my mistake about that | 14:58 |
LordVan | ah so it shows the description of all the variants there | 14:58 |
LordVan | ok that explains why i was confused | 14:58 |
LordVan | thanks | 14:58 |
LordVan | though really it would be easier to understand (especially for end-users) to rename product -> product template and variatn -> product in the UI .. | 14:59 |
LordVan | but I think i can do that with translation somehow can't I? | 14:59 |
jcm | LordVan: yes, custom module, locale > override > en.po | 15:00 |
LordVan | wasn't there something in the UI too? | 15:00 |
LordVan | *goes and looks* | 15:00 |
LordVan | btw considering going to FOSDEM in February .. anyone going? cedk? | 15:01 |
cedk | LordVan: yes probably as usual | 15:01 |
LordVan | i hope to be able to manage it this year | 15:02 |
LordVan | cedk, still owe you a coffee or beer(s) for your help ^^ | 15:11 |
LordVan | gotta see if there are any cheap rooms still available.. | 15:12 |
cedk | I will probably do some little volunteer work for the Python dev room | 15:12 |
LordVan | :) | 15:14 |
-!- csotelo(~csotelo@190.235.115.160) has joined #tryton | 16:30 | |
csotelo | Hi all, I have found a wird error on my update custom module update does not appear on before "assert cls not in mpool, cls" | 16:36 |
jcm | how can I debug sale_shipment_cost + carrier_weight which finds no fitting carrier after migrating to 5.0? | 16:56 |
jcm | I checked that carrier products have an accounting category | 16:56 |
LordVan | is there a way to create a BOM for a production without adding a product for each part? (meaning i have small parts, that cannot get ordered seperately easily cuz they aresoldered together so it would make the list huge to add them all as product) | 16:58 |
-!- robertohueso(~robertohu@185.67.107.94) has joined #tryton | 17:02 | |
robertohueso | Hi :) I'd like to ask a question | 17:02 |
robertohueso | Is there any way that I can generate price tags with barcodes in Tryton? | 17:03 |
LordVan | robertohueso, no clue if it exists already somewhre but it should be easy with https://pypi.org/project/python-barcode/ | 17:06 |
-!- lucascastro(~lucascast@177-185-139-231.isotelco.net.br) has joined #tryton | 17:12 | |
LordVan | hmm is there a way to duplicate a product & product template so i can then only change the name? (i need 74002-A01-0[1-9] for example) | 17:14 |
-!- reipes(~reipes@host182-105-dynamic.50-79-r.retail.telecomitalia.it) has joined #tryton | 17:43 | |
robertohueso | LordVan: Thanks! :D | 17:55 |
-!- thaneor1(~lenovo3@179.26.228.98) has joined #tryton | 19:23 | |
-!- reipes(~reipes@146-241-2-234.dyn.eolo.it) has joined #tryton | 20:20 | |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 21:01 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!