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"/>*
....................
</form>
]]>
</field>
</record>
....................
<!--lesson generation wizard-->
<record model="ir.action.wizard" id="*LessonGenerationWizard_wizard*">
<field name="name">Generate Lessons Calendar</field>
<field name="wiz_name">train.LessonGenerationWizard</field>
</record>
<!--lesson generation wizard launcher-->
<record model="ir.action.keyword"
id="LessonGenerationWizard_wizard_keyword1">
<field name="action" ref="LessonGenerationWizard_wizard"/>
<field name="keyword">form_action</field>
<field name="model">train.Edition,-1</field>
</record>
i tried with both LessonGenerationWizard_wizard and
LessonGenerationWizard_wizard_keyword1, same error.
Should it work?
thanks
--
[email protected] mailing list