2015-03-02 13:19 GMT+01:00 Cédric Krier <[email protected]>:

> > I would like that when the user changes the bank account, the mandate
> > be set (if one matching exists),
>
> This can be done.
>

And it is.

> or a default one created.
>
> This has to be managed in the create method.
> But I find it is a very bad design choice to create stuffs *automatically*.


I know that. That's why I feel like something is missing. The problem with
using the create method is that it does not give the user a chance to
modify the mandate before saving.

So currently my solutions are :
  - auto-create a mandate on every bank account / party relation
  - Use some twisted O2M Function field with a setter to be able to
create the mandate via on_change.

I like none of those, so that's why I would like to discuss another way
to do what I want to.

Jean Cavallo
*Coopengo*

Reply via email to