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é

[Dolibarr-dev] computed values in extrafields

2019-07-11 Par sujet Christophe Battarel
Hello, I am trying to use computed values in extrafields but cannot understand how it works : example : $object->id in a product extrafield ! i have done some investigations in the code and here is where i am : there is two places where  ShowOutputField is coded : commonobject.class.php

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Christophe Battarel
do you have an example ? Le 11/07/2019 à 12:40, Sasa Ostrouska a écrit : On Thu, Jul 11, 2019 at 12:42 PM Christophe Battarel wrote: i should be more accurate : 1) i have a fork on github based on dolibarr github repo 2) i have a local repo linked with my fork 3) i often do git pull from

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Christophe Battarel
i answer myself, it can help others : in my case, i have two remotes origin (which is my fork on github) and dolibarr (official dolibarr repo). in order to retrieve a branch, let's take 10.0, you have to : 1) git fetch dolibarr 2) git checkout -t dolibarr/10.0 that's all ! Le 11/07/2019

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

[Dolibarr-dev] simple git question

2019-07-11 Par sujet Christophe Battarel
hello again, a more easy question but i am struggling with it often and did not find the answer on the net : i have a local git repo based on my github fork; how can i pull new created branch (10.0 for instance) without putting the mess in my repo ? Best regards Christophe

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Jean Traullé
publickey - Description: application/pgp-key Le 11 juil. 2019 à 11:13, Christophe Battarel a écrit : hello again,a more easy question but i am struggling with it often and did not find the answer on the net :i have a local git repo based on

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Christophe Battarel
i should be more accurate : 1) i have a fork on github based on dolibarr github repo 2) i have a local repo linked with my fork 3) i often do git pull from dolibarr (not my fork) github repo to get latest code, then i push on my github fork 4) this way i can make commit on my local repo,

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

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Sasa Ostrouska
On Thu, Jul 11, 2019 at 12:42 PM Christophe Battarel wrote: > > i should be more accurate : > > 1) i have a fork on github based on dolibarr github repo > > 2) i have a local repo linked with my fork > > 3) i often do git pull from dolibarr (not my fork) github repo to get latest > code, then i

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Yves Brungard
Bonjour, J'ai ça en stock: https://help.github.com/articles/syncing-a-fork/ Amicalement Yves Le 11/07/2019 à 11:13, Christophe Battarel a écrit : hello again, a more easy question but i am struggling with it often and did not find the answer on the net : i have a local git repo based on my

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
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

Re: [Dolibarr-dev] 150 PR waiting

2019-07-11 Par sujet Mickaël PENHARD
Hi, Like my other answer on your previous question « [Dolibarr-dev] computed values in extrafields » : https://github.com/Dolibarr/dolibarr/issues/10054 But yes make this open source projet, really open will be great, but doesn't seem like possible as far as I can see, since I try to open the

[Dolibarr-dev] 150 PR waiting

2019-07-11 Par sujet Christophe Battarel
There are 150 pending opened pull requests; how can we solve this problem ? it's kind of lottery when you submit a PR, sometimes it is merged quickly, sometimes it remains open, sometimes you have a comment and it stops here even if you do what is in the comment... it's pretty tough to be

Re: [Dolibarr-dev] simple git question

2019-07-11 Par sujet Sasa Ostrouska
On Thu, Jul 11, 2019 at 4:30 PM Christophe Battarel wrote: > > i answer myself, it can help others : > > in my case, i have two remotes origin (which is my fork on github) and > dolibarr (official dolibarr repo). > > in order to retrieve a branch, let's take 10.0, you have to : > > 1) git fetch