Re: [Dolibarr-dev] computed values in extrafields

2019-07-11 Par sujet Christophe Battarel
thanks to all. there is in fact several problems : 1) the showOutputField (and showInputField) function is present twice (in extrafields.class.php and in commonobject.class.php) 2) some code was removed in extrafields.class.php : https://github.com/Dolibarr/dolibarr/pull/10376 (by @atm-maxim

Re: [Dolibarr-dev] computed values in extrafields

2019-07-11 Par sujet Mickaël PENHARD
Maybe random fix / with a random merge ? https://github.com/Dolibarr/dolibarr/pull/10376 https://github.com/Dolibarr/dolibarr/commit/c0b0d5484cd002b1cb559e9e1a0122df8af0987f The problem seem's to be because extrafield usage is not consistante, depend on where it is in the code : - sometimes di

Re: [Dolibarr-dev] computed values in extrafields

2019-07-11 Par sujet Maxime Kohlhaas
No idea why it's in 2 places. I think I saw a pull request from someone who wanted to store the result of the computation. Maybe that's why the code isn't there in develop. Bien cordialement, -- *Maxime Kohlhaas* | Consultant associé ---

Re: [Dolibarr-dev] computed values in extrafields

2019-07-11 Par sujet Christophe Battarel
Hi Maxime, Thanks for this quick answer ! unfortunately the following code is present in 9.0 but not in develop in extrafields.class.php :         // If field is a computed field, value must become result of compute         if ($computed)         {             // Make the eval of compute st

Re: [Dolibarr-dev] computed values in extrafields

2019-07-11 Par sujet Maxime Kohlhaas
Hi Christophe, On my side I tested with a simple formula : [image: image.png] And on the product card and in the product list I have this field calculated. Test done in 9.0 Bien cordialement, -- *Maxime Kohlhaas* | Consultant associé -