Field List depending another field list result

I have a module working well but want to beauty a lot some objects.


BRANDS


rowid
ref
label
xx…


MODELS


rowid
ref
label
fk_brand (integer:Brands:taller/class/brands.class.php) *** I don’t know how dolibarr do it but i think is in function showInputField() of htdocs/core/class/commonobject.class.php file


VEHICLES
-----------------
rowid
ref
label
fk_brand (integer:Brands:taller/class/brands.class.php)
fk_model (integer:Models:taller/class/models.class.php)
xx…

I get the field list OK in VEHICLES and MODELS forms: view/list/create but for VEHICLES, I want to list in fk_model field, only the models related with brand selected before in fk_brand field. How to do it? I can’t find documentation about

I am working on Module Builder of Dolibarr 9.0.3