fix validation of a cost estimate
do not override function field for purchase line

It does not seem to make much difference from the original one in
logistic_requisition.
remove onchange agreement

The agreement field should already have a domain: no need to check with
an onchange that a consistent choice is made.
lint