How you define the max capacity of a location? Based on the volume or based on what? I think you should clarify that in order to have a proper solution for your problem.
No, there is not way to limit the capacity of a location on tryton standard and I’m not aware (it does not mean it does not exist) that any third party module that adds support for limiting the locations that can be moved to a location.
Having said that, it does not seem like an easy problem to solve.
i guess the problem is to avoid wrong inputs or mis-configuration.
If it is physically impossible, it cannot happen.
Nevertheless, my opinion is that it would be nice to have a solution to check rules on inputs, error prone inputs in particular, and show warning messages when they are not respected.
Is there something for that already, or it is something we could investigate a bit more ?
It is always possible to create dynamic restriction on the location of a stock move using a domain.
But the same way we allow negative quantity, we should not forbid user to enter what he actually did even if for the system it seems wrong.
Also it could be possible to add warning when a stock move seems suspicious. But I do not think there are any standard criteria for such move.
I didn’t mean to make Tryton more restrictive.
My idea is to allow a user to set rules on a field as input control rules and/or default values, depending on specific business cases. Far from any standard by definition, but so useful to fit business requirements.
It may already exist somehow, but it seems that it requires some coding. Am I wrong ?
Indeed.
It is not a matter of a user or a developer. I think the difference is whether rules are recorded in database or hard-coded in a specific module. Isn’t it ?