On 08/02/12 10:57 +0100, leo wrote: > On 08/02/2012 10:40, Cédric Krier wrote: > >>so there is no currently solution? > >No, until at least https://bugs.tryton.org/issue1809 is fixed. > ok, i'll hold on > >>what about adding a button to the B model form view? I tried with > >> > >><button string="generate calendar" type="action" name="[action_id]"/> > >> > >>giving to [action_id] both the ir.action.wizard record id and the > >>ir.action.keyword id attribute values but in both cases i get the > >>error > >"name" must be the id of the action so remove "[]" > yes, the [] was just a way to make clear that i was inserting the id > value into the attribute (bad idea evidently...). real code snippets > are: > > <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).
--
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/
pgpo6XxbS9l05.pgp
Description: PGP signature
