[FIX] stock: state change tracking
[FIX] stock: state change tracking

The `stock.picking`.`state` field is set
to track the change of values
(`track_visibility='onchange'`)

It's supposed to write the state changes
within the picking thread.

It does not work properly for function fields,
as the onchange tracking is designed to work
only with direct user changes, direct
`write` operations on the record, while,
here, the state value changes according to the
picking moves changes, for instance.

To solve this, the tracking changes have to be
hooked within the `create` & `write` methods
of the model on which this function depends on.

Therefore, from now, when changes are
performed in the moves, on the fields that
could lead to the picking state change, we
force the tracking of the picking state.

In addition, we had the `mail_notrack` key
in the context when creating back orders,
to avoid displaying the back and forths
in the state
e.g. when transferring 9 units on 10, the
changes were displayed as below:
Draft -> Waiting availability
Waiting Availability -> Ready to Transfer
Ready to Transfer -> Draft
Draft -> Partially available
Partially Available -> Waiting availability
Waiting Availability -> Transferred

opw-666317

grap/OpenUpgrade,datenbetrieb/odoo,datenbetrieb/odoo,factorlibre/OCB,synconics/odoo,markeTIC/OCB,MarcosCommunity/odoo,Endika/OpenUpgrade,Nowheresly/odoo,Adel-Magebinary/odoo,shingonoide/odoo,makinacorpus/odoo,leorochael/odoo,factorlibre/OCB,odootr/odoo,funkring/fdoo,provaleks/o8,markeTIC/OCB,OpenUpgrade/OpenUpgrade,provaleks/o8,sergio-incaser/odoo,provaleks/o8,BT-rmartin/odoo,storm-computers/odoo,mustafat/odoo-1,sergio-incaser/odoo,microcom/odoo,BT-ojossen/odoo,stephen144/odoo,ehirt/odoo,rubencabrera/odoo,Noviat/odoo,glovebx/odoo,eino-makitalo/odoo,spadae22/odoo,mustafat/odoo-1,glovebx/odoo,diagramsoftware/odoo,tvibliani/odoo,makinacorpus/odoo,Nowheresly/odoo,datenbetrieb/odoo,BT-rmartin/odoo,spadae22/odoo,rubencabrera/odoo,alexcuellar/odoo,Endika/odoo,ehirt/odoo,provaleks/o8,CatsAndDogsbvba/odoo,Adel-Magebinary/odoo,Daniel-CA/odoo,rubencabrera/odoo,Endika/OpenUpgrade,datenbetrieb/odoo,odootr/odoo,jfpla/odoo,MarcosCommunity/odoo,alexcuellar/odoo,markeTIC/OCB,CatsAndDogsbvba/odoo,jiangzhixiao/odoo,ygol/odoo,eino-makitalo/odoo,markeTIC/OCB,OpenUpgrade/OpenUpgrade,stephen144/odoo,vnsofthe/odoo,ehirt/odoo,makinacorpus/odoo,glovebx/odoo,Endika/odoo,sysadminmatmoz/OCB,mustafat/odoo-1,funkring/fdoo,CatsAndDogsbvba/odoo,grap/OpenUpgrade,funkring/fdoo,tvibliani/odoo,diagramsoftware/odoo,CatsAndDogsbvba/odoo,Noviat/odoo,funkring/fdoo,odootr/odoo,ygol/odoo,Noviat/odoo,NeovaHealth/odoo,diagramsoftware/odoo,funkring/fdoo,eino-makitalo/odoo,laslabs/odoo,ehirt/odoo,alexcuellar/odoo,MarcosCommunity/odoo,dfang/odoo,alexcuellar/odoo,laslabs/odoo,stephen144/odoo,OpenUpgrade/OpenUpgrade,stephen144/odoo,bplancher/odoo,laslabs/odoo,makinacorpus/odoo,eino-makitalo/odoo,storm-computers/odoo,MarcosCommunity/odoo,ehirt/odoo,ygol/odoo,NeovaHealth/odoo,tvibliani/odoo,stephen144/odoo,vnsofthe/odoo,storm-computers/odoo,hassoon3/odoo,synconics/odoo,sergio-incaser/odoo,shingonoide/odoo,Endika/OpenUpgrade,BT-rmartin/odoo,MarcosCommunity/odoo,Daniel-CA/odoo,synconics/odoo,vnsofthe/odoo,eino-makitalo/odoo,NeovaHealth/odoo,sysadminmatmoz/OCB,ygol/odoo,sysadminmatmoz/OCB,MarcosCommunity/odoo,dfang/odoo,diagramsoftware/odoo,microcom/odoo,OpenUpgrade/OpenUpgrade,ygol/odoo,makinacorpus/odoo,datenbetrieb/odoo,stephen144/odoo,Noviat/odoo,factorlibre/OCB,grap/OpenUpgrade,ygol/odoo,Endika/odoo,mustafat/odoo-1,Endika/odoo,Nowheresly/odoo,synconics/odoo,jiangzhixiao/odoo,spadae22/odoo,tvibliani/odoo,bplancher/odoo,hassoon3/odoo,eino-makitalo/odoo,ehirt/odoo,tvibliani/odoo,Daniel-CA/odoo,Nowheresly/odoo,hip-odoo/odoo,storm-computers/odoo,odootr/odoo,BT-ojossen/odoo,synconics/odoo,Elico-Corp/odoo_OCB,hip-odoo/odoo,dfang/odoo,factorlibre/OCB,NeovaHealth/odoo,Elico-Corp/odoo_OCB,factorlibre/OCB,odootr/odoo,jfpla/odoo,Elico-Corp/odoo_OCB,ehirt/odoo,leorochael/odoo,sergio-incaser/odoo,sergio-incaser/odoo,markeTIC/OCB,mustafat/odoo-1,Adel-Magebinary/odoo,NeovaHealth/odoo,leorochael/odoo,datenbetrieb/odoo,Adel-Magebinary/odoo,grap/OpenUpgrade,shingonoide/odoo,spadae22/odoo,jiangzhixiao/odoo,dfang/odoo,CatsAndDogsbvba/odoo,tvibliani/odoo,jiangzhixiao/odoo,eino-makitalo/odoo,Endika/OpenUpgrade,microcom/odoo,jfpla/odoo,hip-odoo/odoo,hassoon3/odoo,Elico-Corp/odoo_OCB,jiangzhixiao/odoo,BT-rmartin/odoo,provaleks/o8,makinacorpus/odoo,Daniel-CA/odoo,diagramsoftware/odoo,jfpla/odoo,MarcosCommunity/odoo,provaleks/o8,glovebx/odoo,microcom/odoo,Noviat/odoo,OpenUpgrade/OpenUpgrade,spadae22/odoo,jiangzhixiao/odoo,microcom/odoo,storm-computers/odoo,mustafat/odoo-1,hassoon3/odoo,laslabs/odoo,leorochael/odoo,vnsofthe/odoo,hip-odoo/odoo,factorlibre/OCB,microcom/odoo,Endika/OpenUpgrade,vnsofthe/odoo,Daniel-CA/odoo,factorlibre/OCB,shingonoide/odoo,leorochael/odoo,Endika/OpenUpgrade,spadae22/odoo,BT-rmartin/odoo,funkring/fdoo,sysadminmatmoz/OCB,Daniel-CA/odoo,diagramsoftware/odoo,CatsAndDogsbvba/odoo,Noviat/odoo,bplancher/odoo,BT-ojossen/odoo,bplancher/odoo,leorochael/odoo,Adel-Magebinary/odoo,alexcuellar/odoo,rubencabrera/odoo,sergio-incaser/odoo,Adel-Magebinary/odoo,shingonoide/odoo,BT-ojossen/odoo,markeTIC/OCB,synconics/odoo,glovebx/odoo,rubencabrera/odoo,NeovaHealth/odoo,bplancher/odoo,vnsofthe/odoo,OpenUpgrade/OpenUpgrade,storm-computers/odoo,Elico-Corp/odoo_OCB,shingonoide/odoo,rubencabrera/odoo,hassoon3/odoo,jfpla/odoo,jfpla/odoo,Endika/OpenUpgrade,Nowheresly/odoo,sysadminmatmoz/OCB,alexcuellar/odoo,dfang/odoo,Nowheresly/odoo,BT-rmartin/odoo,BT-ojossen/odoo,vnsofthe/odoo,provaleks/o8,Endika/odoo,datenbetrieb/odoo,mustafat/odoo-1,markeTIC/OCB,bplancher/odoo,BT-rmartin/odoo,Endika/odoo,CatsAndDogsbvba/odoo,glovebx/odoo,ygol/odoo,odootr/odoo,MarcosCommunity/odoo,BT-ojossen/odoo,Noviat/odoo,sysadminmatmoz/OCB,hip-odoo/odoo,leorochael/odoo,glovebx/odoo,Nowheresly/odoo,grap/OpenUpgrade,jfpla/odoo,jiangzhixiao/odoo,tvibliani/odoo,grap/OpenUpgrade,Daniel-CA/odoo,diagramsoftware/odoo,laslabs/odoo,Elico-Corp/odoo_OCB,spadae22/odoo,makinacorpus/odoo,hassoon3/odoo,dfang/odoo,funkring/fdoo,synconics/odoo,laslabs/odoo,grap/OpenUpgrade,OpenUpgrade/OpenUpgrade,sysadminmatmoz/OCB,alexcuellar/odoo,Adel-Magebinary/odoo,hip-odoo/odoo,odootr/odoo,shingonoide/odoo,BT-ojossen/odoo,Endika/odoo,NeovaHealth/odoo,rubencabrera/odoo