On 24/10/11 18:53 -0700, Mohammad wrote:
> Hi,
> 
> I put a button and a one2many field.
> 
> By pressing this button i want to add few specific records to this
> one2many field.
> 
> It is possible, But the problem is that when users click on the button
> nothing happens, Then they have to save the record again , And also
> they have to press the refresh button !
> 
> Then the result is available.
> 
> Is there any other ways to make this button more user friendly. e.g
> when user click on the button, Then it forces the model to be saved
> and refresh the button.

Normally, it is already the cases (see [1])

> or maybe we should go for on_change method to make other record to be
> based on something (not a button, maybe a simple check box which is
> functionally doing a button's job :) )

It is always better to work as much as possible without saving the record.
So on_change way sounds better.


[1]
http://hg.tryton.org/tryton/file/a279f55ac598/tryton/gui/window/view_form/view/form_gtk/parser.py#l46

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpQwP2p67jzM.pgp
Description: PGP signature

Reply via email to