On 08/02/12 11:49 +0100, leo wrote:
> On 08/02/2012 11:28, Cédric Krier wrote:
> ><record model="ir.ui.view" id="Edition_form">
> ><field name="model">train.Edition</field>
> ><field name="type">form</field>
> ><field name="arch" type="xml">
> ><![CDATA[
> ><form string="Edition" col="2">
> >                             ....................
> >*<button string="generate calendar" type="action"
> >name="LessonGenerationWizard_wizard"/>*
> >It must be:
> >
> >     <button string="Generate Calendar" type="action"
> >         name="%(LessonGenerationWizard_wizard)d"/>
> >
> >I know it is strange notation but I'm working on an idea to improve the
> >button definitions (I will post later on it).
> >
> strange it is but it works! now i have the working button into model
> B form view, so i can access the wizard even into the model A
> one2many field. There is only one other problem: the wizard
> generates records for a model C that has a many2one relation to
> model B. if i fire the wizard starting from model A the model C
> records are correctly generated but i don't see them imediately and
> i have to re-open model B record. I try tro explain:
> 
> model B list view -> model B record form view -> button wizard ->
> model C records generation -> displayed into model B one2many field
> to model C
> 
> model A list view -> model A record form view -> one2many field to
> model B -> model B record form view -> button wizard -> model C
> records generation -> NOT displayed into model B one2many field to
> model C
> 
> it seems like in the second case model B one2many field to model C
> is not 'refreshed', is there a way to force it?

No this is still linked to the same issue.
Indeed I think you should use a relate instead of a One2Many.

-- 
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: pgpF9LwGWcpkr.pgp
Description: PGP signature

Reply via email to