I’m strongly against to implement such weak logic in Tryton.
The troubles of matching with the wrong party is immense.
The simplest way is to create a statement rule.
But it may be better to have a “special” kind of rule that is able to search in the past relation made by the user between raw data and target. This would avoid to create too much rules.
(see Improve statement rule party matching - #7 by ced).