On 02 Mar 12:42, Jean C wrote:
> 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),

This can be done.

> 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*.

> 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.

It will never be part of Tryton. It is the best way to implement
monstrous side-effect.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to