Hi all, I am having a similar problem with bank accounts and sepa mandates.
I have a model on which the user selects a bank account, and a mandate to use (there may be multiple valid mandates, so the decision cannot be automated). I would like that when the user changes the bank account, the mandate be set (if one matching exists), or a default one created. Is there any other way to do that in a on_change ? Right now I am considering adding a function O2M field with a setter, or even creating the mandate in a separate transaction, but I would rather avoid having to. IMO, making it possible to create new instances in on_changes for M2O fields does not seem so bad, as it is something the user may want to do, so the on_change methods should be able to as well. Thanks, Jean Cavallo *Coopengo*
