I think is impossible know action wizard id. I don't find about relation
ir.session.wizard to ir.action.wizard. Only I know Tryton search wizard by
name, same name as class. Only one class name for differnts wizards isn't
available.

Well, we redesign our concept and we was creating a class "general" and
another class wizard inherit this class.

For example:

class ExampleGenerateTemplateEmail(GenerateTemplateEmail):
    "Example Wizard to Generate Email from template"
    _name = "electronic_mail_wizard.example"

    def default_start(self, session, fields):
        default = self.render_fields(self._name)
        return default

    def transition_send(self, session):
        self.render_and_send(session)
        return 'end'

ExampleGenerateTemplateEmail()

See you.

-- 
tryton-dev@googlegroups.com mailing list

Reply via email to