In this video we will present some of the dynamical features of the many2one fields
And the undo feature of the X2many's
But let's login first !
We will use the party.address object to demonstrate those features.
Let's create a new party ...
The subdivision and the country fields are many2one's displayed with selection widgets
The subdivision field has a domain in relation with the country
Thus the number of subdivisions currently available is zero
But there is a lot of country to choose from ...
So we create our new party ...
of course the Michael Scott Paper Company !
Once the 'Country' field has a value we can infer the available subdivisions
The american states !
Let's add some other adresses ...
This time on Seattle Road
But still in Scranton ...
There is also a belgian branch in Bruxelles ...
We can only choose amongst the belgian provinces ...
Now we will see howto the undelete button of the X2many's work
Let's switch to the list view of the widget ...
As you may know the corporate building has been sold ...
We should delete it !
Note how the line is now greyed and striked ...
If we did a mistake then pressing the undelete button will reset the line to its previous state
Of course this functionnality also work on many2many's !
Thank you for watching !