I got an interesting question about the list view in the Tryton client. We have a list of machines and sorted them based on their state (same as the list from sale or purchase). The question is now:
Is it possible to show and hide columns / fields based on the state?
Example:
columns in state ‘draft’:
machine | list_price | sale_date
When the user clicks on the tab “in use”, the location is relevant because the machine is in use. When the machine is in “draft” it is just created so location does not matter because it’s empty.
Is it possible the hide location when the user clicks on the tab “draft”? For example in the tree XML add something like:
No it is not possible because there is not guarantee that the state is always the same for all the records.
You can only do that by applying a domain with equality on the field.