IRC logs of #tryton for Sunday, 2021-02-28

chat.freenode.net #tryton log beginning Sun Feb 28 12:00:01 AM CET 2021
-!- srgdts(~srgdts@unaffiliated/srgdts) has joined #tryton02:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:00
-!- thaneor(~ldlc6@r167-61-113-211.dialup.adsl.anteldata.net.uy) has joined #tryton09:14
-!- thaneor1(~acer8@r167-61-113-211.dialup.adsl.anteldata.net.uy) has joined #tryton09:14
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:58
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton10:04
-!- lucas_(~lucascast@177.185.133.170) has joined #tryton13:26
-!- rpit(~rpit@p200300c88f0235001c42215a17f33f55.dip0.t-ipconnect.de) has joined #tryton14:17
-!- udono(~udono@157-058-210-188.ip-addr.inexio.net) has joined #tryton15:08
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton16:10
LordVanhi16:15
LordVani got a question17:50
LordVanI want to move the warehouse label/field from the sale_form to somewhere else17:51
LordVanwhat would be the correct way to do this?17:51
LordVanor rahter how can i remove that from the form - i know how to add elsewhere17:51
Hirschbeutelreplace where you normally put after, before17:52
Hirschbeuteland than nothing in the node17:52
Hirschbeutel<xpath expr="your/expression/to/find/warehouse"  position="replace"></xpath>17:54
LordVanso <xpath expr="/form/notebook/_page/field[@name='warehouse']" position="replace" />17:55
LordVanah yes17:55
LordVancool easier than i had thought. thanks i shall test nright now17:55
Hirschbeuteltest, 1, 2, 317:55
LordVanXD17:56
LordVananyway that work fine thanks17:56
LordVani assume i just change field to label to remove that too17:56
LordVanmy XML + XPATH + FOP times many years ago finally paying off (learning xpath)17:56
LordVanXD17:56
Hirschbeutelif you change field to label the field will reappear :D18:00
LordVannot if i copy it first18:00
Hirschbeuteljoking18:00
LordVani know18:01
LordVanbtw18:01
LordVanI plan to make a module for "materials" (as in production / sale materials) .. is that something that could be interesting for tryton in genral? -- effectively i am modeling it after the country module with just different data fields of course18:02
LordVani am just unsure how useful it would be for people in general18:02
LordVanin my case it will contain different types of metal,.. to be referenced from sale_line and later maybe production18:03
Hirschbeutelif it is production there is  BOM for that18:03
LordVani need it in sale_line too18:03
LordVannot using production module for now18:03
LordVan(and if I use it int he future is still uncertain)18:03
HirschbeutelI have bind it to project (cedk does not like that) - on the project I book used material18:03
Hirschbeuteland there is a blueprint for services - one moment18:04
Hirschbeutelhttps://discuss.tryton.org/t/new-invoicing-method-when-selling-both-goods-and-services/345/1018:05
Hirschbeutelyou are selling a repair service with some parts if I stalked you right18:06
LordVannah18:25
LordVanproduction mostly18:26
LordVanbut also repair18:26
LordVanthat said i already need the material added to sale_line when the sale is created - to create production documents18:27
LordVanwhen you wonder why your new fields on SaleLine are not found18:44
LordVanonly to realize .. that class is not registered in __init__.py18:44
HirschbeutelI also register production/service information on sale lines and pass them to a production document - but it will be hard, or make this generic ...18:47
LordVanthe thing is for me using production for every order is approximately 500% overkill18:47
LordVanso18:47
LordVani just add extra fields there18:47
LordVanI *might* later on fill in those fields from production for some (repeated) articles18:48
LordVanbut for now it is just pointless as the administrative extra work is worth more than some parts would cost lol18:48
LordVanwork time i mean18:48
Hirschbeutelyes -we are doing like this. predefined processes versus information recorded on sales18:49
Hirschbeutelbut there is a constraint to not confirm a sale before before requirements fullfilled18:52
Hirschbeutelpossible better to use sale_opportunity for that18:52
Hirschbeutelbut than you need the same constraints to convert it to a sale and a production document18:53
Hirschbeuteland link them and update the sale if something changed in production process - its not easy to code this for variable processes18:55
LordVani looked at sale_opportunity18:56
LordVanbut18:56
LordVani think it would only make my changes/additoins more spread out and complicated tbh18:56
Hirschbeutelyes - this is a possible issue with this - depends on company size I think18:57
LordVansmall19:18
LordVanand apart from generating the docs all of the production process is documented on paper19:18
LordVanso19:18
LordVan..19:18
LordVanhmm19:18
LordVanfor metal sheet thickness (which can be 1.00 1.25 1.2 ,.. basically a decimal with a precision of 2 ) is it beter to use float or numeric?19:19
LordVanI'm leaning towards Numeric, but unsure which is actually better19:19
Hirschbeuteldepends of what calculations precision you need19:20
LordVanno calculations at all19:20
LordVanit is just to identify the material thickness19:21
Hirschbeutelthen a float is good enough19:21
LordVanat most at some point i might calculate weight but i doubt anytime soon19:21
LordVani thought that too but wasn't sure if there are any notable differences otherwise19:21
Hirschbeutelyes - but with floats as well19:21
Hirschbeutelits a rounding precision isssue - monetary should always use numeric19:22
LordVanor i could use an integer and just shift the comma19:22
Hirschbeutelno - why19:22
LordVanint is faster than float lol19:22
LordVani don't care if i (internally) store the thickness in  mm or mm * 10^-219:23
Hirschbeutelif you are vokswagen this could matter19:23
LordVanlol nope19:23
LordVani am just "old style" i guess who prefers to use int over float19:23
LordVanassembler /C / .. times XD19:23
LordVanon 80286,..19:23
LordVanor microcontrollers19:23
LordVansometimes my thinking is still influenced by programming microcontrollers in assembler .. there i would definitely opt for using int > float anytime19:25
LordVanbut you are right i'd just make my job more difficult in the end for no noticeable gain19:25
Hirschbeuteland you will use int for a float :)19:26
LordVani just notices fields.Float does have a digits parameter so all good ;)19:28
-!- mathesis(~ja1000@187.148.60.186) has joined #tryton19:57
-!- yangoon(~mathiasb@p5dd08abd.dip0.t-ipconnect.de) has joined #tryton21:10
-!- thaneor2(~ldlc6@r167-61-39-252.dialup.adsl.anteldata.net.uy) has joined #tryton21:16
-!- thaneor3(~acer8@r167-61-39-252.dialup.adsl.anteldata.net.uy) has joined #tryton21:16
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:42

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