Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • view for the wizard. in Odoo9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 390
    Comment on it

    View for wizard is used to show the value in current database, add buttons to the wizard and implement the corresponding method for adding the attendees to the given session.
    For example you can see below code.

          <field name="attendee&#95;ids">
                        <button name="subscribe" type="object" string="Subscribe" class="oe&#95;highlight">
                        </button><button special="cancel" string="Cancel">


    session_id = fields.Many2one('openacademy.session',
            string="Session", required=True, default=_default_session)
        attendee_ids = fields.Many2many('res.partner', string="Attendees")
    def subscribe(self):
        self.session_id.attendee_ids |= self.attendee_ids
        return {}

    Note-Modify the wizard model so that attendees can be registered to multiple sessions.

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: